org.kabeja.dxf
Class DXFBlock

java.lang.Object
  extended by org.kabeja.dxf.DXFBlock

public class DXFBlock
extends java.lang.Object

Author:
Field Summary
static java.lang.String TYPE
           
 
Constructor Summary
DXFBlock()
           
 
Method Summary
 void addDXFEntity(DXFEntity entity)
           
 Bounds getBounds()
           
 java.lang.String getDescription()
           
 DXFDocument getDXFDocument()
           
 java.util.Iterator getDXFEntitiesIterator()
           
 DXFEntity getDXFEntityByID(java.lang.String id)
          Gets the
 java.lang.String getLayerID()
           
 double getLength()
           
 java.lang.String getName()
           
 Point getReferencePoint()
           
 void setDescription(java.lang.String description)
           
 void setDXFDocument(DXFDocument doc)
           
 void setLayerID(java.lang.String layerID)
           
 void setName(java.lang.String name)
           
 void setReferencePoint(Point p)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TYPE

public static java.lang.String TYPE
Constructor Detail

DXFBlock

public DXFBlock()
Method Detail

getBounds

public Bounds getBounds()

getDescription

public java.lang.String getDescription()
Returns:
Returns the description.

setDescription

public void setDescription(java.lang.String description)
Parameters:
description - The description to set.

getReferencePoint

public Point getReferencePoint()
Returns:
Returns the p.

setReferencePoint

public void setReferencePoint(Point p)
Parameters:
p - The p to set.

addDXFEntity

public void addDXFEntity(DXFEntity entity)

getDXFEntitiesIterator

public java.util.Iterator getDXFEntitiesIterator()
Returns:
a iterator over all entities of this block

getLayerID

public java.lang.String getLayerID()
Returns:
Returns the layerID.

setLayerID

public void setLayerID(java.lang.String layerID)
Parameters:
layerID - The layerID to set.

getName

public java.lang.String getName()
Returns:
Returns the name.

setName

public void setName(java.lang.String name)
Parameters:
name - The name to set.

setDXFDocument

public void setDXFDocument(DXFDocument doc)
Parameters:
doc - The doc to set.

getDXFDocument

public DXFDocument getDXFDocument()
Returns:
the parent document

getLength

public double getLength()

getDXFEntityByID

public DXFEntity getDXFEntityByID(java.lang.String id)
Gets the

Parameters:
id - of the
Returns:
the
See Also:
with the specified ID., DXFEntity, with the specified ID or null if there is no, with the specified ID