Package com.jsevy.jdxf
Class DXFLinetype
- java.lang.Object
-
- com.jsevy.jdxf.DXFDatabaseObject
-
- com.jsevy.jdxf.DXFTableRecord
-
- com.jsevy.jdxf.DXFLinetype
-
- All Implemented Interfaces:
DXFObject
public class DXFLinetype extends DXFTableRecord
Class representing a linetype for use in LTYPE table.- Author:
- jsevy
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
LINETYPENAME_BYBLOCK
static java.lang.String
LINETYPENAME_BYLAYER
-
Fields inherited from class com.jsevy.jdxf.DXFDatabaseObject
LINEWEIGHT_BYBLOCK, LINEWEIGHT_BYLAYER
-
-
Constructor Summary
Constructors Constructor Description DXFLinetype(java.lang.String name, java.awt.Graphics2D graphics)
Create a new linetype with specified name and dash pattern
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object otherLinetype)
Equals method for use in determining if a Linetype is already present; overrides Object equals methodjava.lang.String
getName()
static java.lang.String
getNextName()
void
setName(java.lang.String newName)
java.lang.String
toDXFString()
Implementation of DXFObject interface method; creates DXF text representing the object.-
Methods inherited from class com.jsevy.jdxf.DXFDatabaseObject
getDXFLineWeight, getHandle, getHandleCount
-
-
-
-
Field Detail
-
LINETYPENAME_BYBLOCK
public static final java.lang.String LINETYPENAME_BYBLOCK
- See Also:
- Constant Field Values
-
LINETYPENAME_BYLAYER
public static final java.lang.String LINETYPENAME_BYLAYER
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
DXFLinetype
public DXFLinetype(java.lang.String name, java.awt.Graphics2D graphics)
Create a new linetype with specified name and dash pattern- Parameters:
name
- Name of this line type table recordgraphics
- Graphics instance, used to get BasicStroke indicating pattern and sizes of spaces, dots and dashes
-
-
Method Detail
-
getName
public java.lang.String getName()
-
setName
public void setName(java.lang.String newName)
-
equals
public boolean equals(java.lang.Object otherLinetype)
Equals method for use in determining if a Linetype is already present; overrides Object equals method- Overrides:
equals
in classjava.lang.Object
- Parameters:
otherLinetype
- Another linetype- Returns:
- True if the associated linetype dash arrays are equal
-
toDXFString
public java.lang.String toDXFString()
Implementation of DXFObject interface method; creates DXF text representing the object.- Specified by:
toDXFString
in interfaceDXFObject
- Overrides:
toDXFString
in classDXFTableRecord
-
getNextName
public static java.lang.String getNextName()
-
-