Package com.jsevy.jdxf
Class DXFLayer
- java.lang.Object
-
- com.jsevy.jdxf.DXFDatabaseObject
-
- com.jsevy.jdxf.DXFTableRecord
-
- com.jsevy.jdxf.DXFLayer
-
- All Implemented Interfaces:
DXFObject
public class DXFLayer extends DXFTableRecord
Class representing a layer for use in LAYER table.- Author:
- jsevy
-
-
Field Summary
-
Fields inherited from class com.jsevy.jdxf.DXFDatabaseObject
LINEWEIGHT_BYBLOCK, LINEWEIGHT_BYLAYER
-
-
Constructor Summary
Constructors Constructor Description DXFLayer(java.lang.String name, DXFGraphics graphics)
Create a LAYER table record object with specified name.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object otherLayer)
Equals method for use in determining if a Layer is already present; overrides Object equals methodjava.lang.String
getName()
Get the name of the layer, for use when generating DXF for entitiesjava.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
-
-
-
-
Constructor Detail
-
DXFLayer
public DXFLayer(java.lang.String name, DXFGraphics graphics)
Create a LAYER table record object with specified name.- Parameters:
name
- name of table record
-
-
Method Detail
-
getName
public java.lang.String getName()
Get the name of the layer, for use when generating DXF for entities- Returns:
- The name of the layer
-
equals
public boolean equals(java.lang.Object otherLayer)
Equals method for use in determining if a Layer is already present; overrides Object equals method- Overrides:
equals
in classjava.lang.Object
- Parameters:
otherLayer
- Another layer- Returns:
- True if the associated layer names 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
-
-