Package com.jsevy.jdxf
Class DXFDatabaseObject
- java.lang.Object
-
- com.jsevy.jdxf.DXFDatabaseObject
-
- All Implemented Interfaces:
DXFObject
- Direct Known Subclasses:
DXFEntity
,DXFTableRecord
,DXFXrecord
public class DXFDatabaseObject extends java.lang.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.- Author:
- jsevy
-
-
Field Summary
Fields Modifier and Type Field Description static int
LINEWEIGHT_BYBLOCK
static int
LINEWEIGHT_BYLAYER
-
Constructor Summary
Constructors Constructor Description DXFDatabaseObject()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getDXFLineWeight(double linewidth)
Utility to determine linewidth for DXF outputint
getHandle()
Return handle for this objectstatic int
getHandleCount()
Return current handle count so can know what ones have been usedjava.lang.String
toDXFString()
Implement DXFObject method; just print out group code and value of handle.
-
-
-
Field Detail
-
LINEWEIGHT_BYBLOCK
public static final int LINEWEIGHT_BYBLOCK
- See Also:
- Constant Field Values
-
LINEWEIGHT_BYLAYER
public static final int LINEWEIGHT_BYLAYER
- See Also:
- Constant Field Values
-
-
Method Detail
-
toDXFString
public java.lang.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
-
getDXFLineWeight
public int getDXFLineWeight(double linewidth)
Utility to determine linewidth for DXF output- Parameters:
linewidth
- Java line width specified in pixels at 72 pixels/inch- Returns:
- DXF line width specified in 1/100 of mm, with restricted range
-
-