|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.kabeja.dxf.DXFDocument
public class DXFDocument
Field Summary | |
---|---|
static double |
DEFAULT_MARGIN
|
static java.lang.String |
PROPERTY_ENCODING
|
Constructor Summary | |
---|---|
DXFDocument()
|
Method Summary | |
---|---|
void |
addDXFBlock(DXFBlock block)
|
void |
addDXFDimensionStyle(DXFDimensionStyle style)
|
void |
addDXFEntity(DXFEntity entity)
|
void |
addDXFHatchPattern(DXFHatchPattern pattern)
Adds a DXFHatchPattern to the document. |
void |
addDXFLayer(DXFLayer layer)
|
void |
addDXFLineType(DXFLineType ltype)
|
void |
addDXFObject(DXFObject obj)
|
void |
addDXFView(DXFView view)
|
void |
addDXFViewport(DXFViewport viewport)
|
void |
addDXStyle(DXFStyle style)
|
boolean |
containsDXFLayer(java.lang.String layerName)
Returns true if the document contains the specified layer. |
Bounds |
getBounds()
Returns the bounds of this document |
Bounds |
getBounds(boolean onModelspace)
Returns the bounds of this document |
DXFBlock |
getDXFBlock(java.lang.String name)
|
java.util.Iterator |
getDXFBlockIterator()
|
DXFDimensionStyle |
getDXFDimensionStyle(java.lang.String name)
|
java.util.Iterator |
getDXFDimensionStyleIterator()
|
DXFEntity |
getDXFEntityByID(java.lang.String id)
Gets the |
DXFHatchPattern |
getDXFHatchPattern(java.lang.String id)
|
java.util.Iterator |
getDXFHatchPatternIterator()
|
DXFHeader |
getDXFHeader()
|
DXFLayer |
getDXFLayer(java.lang.String key)
Returns the specified layer. |
java.util.Iterator |
getDXFLayerIterator()
|
DXFLineType |
getDXFLineType(java.lang.String name)
|
java.util.Iterator |
getDXFLineTypeIterator()
|
DXFObject |
getDXFObjectByID(java.lang.String id)
|
java.util.List |
getDXFObjectsByType(java.lang.String type)
|
DXFStyle |
getDXFStyle(java.lang.String name)
|
java.util.Iterator |
getDXFStyleIterator()
|
java.util.Iterator |
getDXFViewIterator()
|
java.util.Iterator |
getDXFViewportIterator()
|
double |
getHeight()
Deprecated. use getBounds().getHeight() instead |
java.lang.String |
getProperty(java.lang.String key)
|
DXFDictionary |
getRootDXFDictionary()
Returns the root dictionary. |
double |
getWidth()
Deprecated. use getBounds().getWidth() instead |
boolean |
hasProperty(java.lang.String key)
|
void |
removeDXFLayer(java.lang.String id)
|
void |
removeDXFViewport(DXFViewport viewport)
|
void |
removeDXFViewport(int index)
|
void |
setDXFHeader(DXFHeader header)
|
void |
setProperty(java.lang.String key,
java.lang.String value)
|
void |
setRootDXFDictionary(DXFDictionary root)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static java.lang.String PROPERTY_ENCODING
public static final double DEFAULT_MARGIN
Constructor Detail |
---|
public DXFDocument()
Method Detail |
---|
public void addDXFLayer(DXFLayer layer)
public DXFLayer getDXFLayer(java.lang.String key)
key
- The layer id
public boolean containsDXFLayer(java.lang.String layerName)
layerName
- the layer name
public java.util.Iterator getDXFLayerIterator()
public void addDXFLineType(DXFLineType ltype)
public DXFLineType getDXFLineType(java.lang.String name)
public java.util.Iterator getDXFLineTypeIterator()
public void addDXFEntity(DXFEntity entity)
public void addDXFBlock(DXFBlock block)
public DXFBlock getDXFBlock(java.lang.String name)
public java.util.Iterator getDXFBlockIterator()
public void setProperty(java.lang.String key, java.lang.String value)
public java.lang.String getProperty(java.lang.String key)
public boolean hasProperty(java.lang.String key)
public Bounds getBounds()
public Bounds getBounds(boolean onModelspace)
public double getHeight()
public double getWidth()
public DXFHeader getDXFHeader()
public void setDXFHeader(DXFHeader header)
public void addDXFDimensionStyle(DXFDimensionStyle style)
public DXFDimensionStyle getDXFDimensionStyle(java.lang.String name)
public java.util.Iterator getDXFDimensionStyleIterator()
public void addDXStyle(DXFStyle style)
public DXFStyle getDXFStyle(java.lang.String name)
public java.util.Iterator getDXFStyleIterator()
public void removeDXFLayer(java.lang.String id)
public void addDXFViewport(DXFViewport viewport)
public java.util.Iterator getDXFViewportIterator()
public void removeDXFViewport(DXFViewport viewport)
public void removeDXFViewport(int index)
public void addDXFView(DXFView view)
public java.util.Iterator getDXFViewIterator()
public void addDXFObject(DXFObject obj)
public DXFDictionary getRootDXFDictionary()
public void setRootDXFDictionary(DXFDictionary root)
public java.util.List getDXFObjectsByType(java.lang.String type)
public DXFObject getDXFObjectByID(java.lang.String id)
id,
- the ID of the object
public DXFEntity getDXFEntityByID(java.lang.String id)
id
- of the
with the specified ID.
,
DXFEntity
,
with the specified ID or null if there is no
,
with the specified ID
public void addDXFHatchPattern(DXFHatchPattern pattern)
pattern
- public java.util.Iterator getDXFHatchPatternIterator()
public DXFHatchPattern getDXFHatchPattern(java.lang.String id)
ID
- of the pattern (also called pattern name)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |