Package com.jsevy.jdxf
Class DXFBlock
- java.lang.Object
-
- com.jsevy.jdxf.DXFDatabaseObject
-
- com.jsevy.jdxf.DXFEntity
-
- com.jsevy.jdxf.DXFBlock
-
-
Field Summary
-
Fields inherited from class com.jsevy.jdxf.DXFDatabaseObject
LINEWEIGHT_BYBLOCK, LINEWEIGHT_BYLAYER
-
-
Constructor Summary
Constructors Constructor Description DXFBlock(java.awt.Shape shape, java.util.Vector<java.util.Vector<DXFGraphicalEntity>> boundaries)
Create a BLOCK table record object from the given Java Shape object using the supplied boundaries as the block's entities.DXFBlock(java.lang.String name)
Create a BLOCK table record object with specified name.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
toDXFString()
Implementation of DXFObject interface method; creates DXF text representing the object.-
Methods inherited from class com.jsevy.jdxf.DXFEntity
getDXFHatchInfo, setPrecisionDigits
-
Methods inherited from class com.jsevy.jdxf.DXFDatabaseObject
getDXFLineWeight, getHandle, getHandleCount
-
-
-
-
Constructor Detail
-
DXFBlock
public DXFBlock(java.lang.String name)
Create a BLOCK table record object with specified name.- Parameters:
name
- name of table record
-
DXFBlock
public DXFBlock(java.awt.Shape shape, java.util.Vector<java.util.Vector<DXFGraphicalEntity>> boundaries)
Create a BLOCK table record object from the given Java Shape object using the supplied boundaries as the block's entities. The Shape is used to compare Blocks to see if they're equivalent.- Parameters:
shape
- Java Shape from which the block is createdboundaries
- DXF entities representing the block; derived from the Shape
-
-
Method Detail
-
toDXFString
public java.lang.String toDXFString()
Implementation of DXFObject interface method; creates DXF text representing the object. Note that this must be followed by a DXFBlockEnd object- Specified by:
toDXFString
in interfaceDXFObject
- Overrides:
toDXFString
in classDXFEntity
-
-