Class DwgObjectFactory

java.lang.Object
org.gvsig.dwg.lib.DwgObjectFactory

public class DwgObjectFactory extends Object
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 Details

    • getInstance

      public static final DwgObjectFactory getInstance()
    • create

      public DwgObject create(int type, int index)
      Creates a Dwg object instance from its type. This method is used for DWG 13, 14, 2000 and 2004 files.
    • create

      public DwgObject create(String dxfName, int index)
      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

      public DwgObject create(byte kind, int index)
      Creates a DWG object for DWG 12 files.