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 int
handle
-
Constructor Summary
Constructors Constructor Description DXFDatabaseObject()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getHandle()
Return handle for this objectstatic int
getHandleCount()
Return current handle count so can know what ones have been usedString
toDXFString()
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:
toDXFString
in 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
-
-