Package com.jsevy.jdxf
Class DXFDatabaseObject
- java.lang.Object
-
- com.jsevy.jdxf.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 Summary
Fields Modifier and Type Field Description protected inthandle
-
Constructor Summary
Constructors Constructor Description DXFDatabaseObject()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetHandle()Return handle for this objectstatic intgetHandleCount()Return current handle count so can know what ones have been usedStringtoDXFString()Implement DXFObject method; just print out group code and value of handle.
-
-
-
Method Detail
-
toDXFString
public String toDXFString()
Implement DXFObject method; just print out group code and value of handle.- Specified by:
toDXFStringin interfaceDXFObject
-
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
-
-