Package org.gvsig.dwg.lib
Class DwgObjectFactory
java.lang.Object
org.gvsig.dwg.lib.DwgObjectFactory
Factory that creates dwg entities from its code (int value).
Some DWG entities dont have a fixed "type code". Instead, their type
is specified in the CLASSES section of the dwg file.
It's a singleton
-
Method Summary
Modifier and TypeMethodDescriptioncreate(byte kind, int index) Creates a DWG object for DWG 12 files.create(int type, int index) Creates a Dwg object instance from its type.Creates a DwgObject from its DXF name.static final DwgObjectFactory
-
Method Details
-
getInstance
-
create
Creates a Dwg object instance from its type. This method is used for DWG 13, 14, 2000 and 2004 files. -
create
Creates a DwgObject from its DXF name. This method is used to create entities without a fixed dwg code type (entities whose type is > 500) This method is used for DWG 13, 14 and 2000 files. -
create
Creates a DWG object for DWG 12 files.
-