Class DXFDatabaseObject

  • All Implemented Interfaces:
    DXFObject
    Direct Known Subclasses:
    DXFEntity, DXFTableRecord

    public class DXFDatabaseObject
    extends Object
    implements DXFObject
    Interface for all DXF database objects, including graphical entities. Each subclass will define a method to generate its corresponding DXF text for use in a DXF file, including the database subclass marker, and should call this superclass method to insert the database handle.
    • Field Detail

      • handle

        protected int handle
    • Constructor Detail

      • DXFDatabaseObject

        public DXFDatabaseObject()
    • Method Detail

      • toDXFString

        public String toDXFString()
        Implement DXFObject method; just print out group code and value of handle.
        Specified by:
        toDXFString in interface DXFObject
      • getHandle

        public int getHandle()
        Return handle for this object
        Returns:
        Handle for object
      • getHandleCount

        public static int getHandleCount()
        Return current handle count so can know what ones have been used
        Returns:
        Current handle count