org.kabeja.dxf
Class DXFLayer

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

public class DXFLayer
extends java.lang.Object

Author:
Constructor Summary
DXFLayer()
           
 
Method Summary
 void addDXFEntity(DXFEntity entity)
           
 Bounds getBounds()
           
 Bounds getBounds(boolean onModelspace)
          Get the bounds for the given filter flag.
 int getColor()
           
 DXFDocument getDXFDocument()
           
 java.util.List getDXFEntities(java.lang.String type)
          Returns the list of the DXFenetities of the Type or null.
 DXFEntity getDXFEntityByID(java.lang.String id)
          Gets the
 java.util.Iterator getDXFEntityTypeIterator()
           
 int getFlags()
           
 java.lang.String getLineType()
           
 int getLineWeight()
           
 java.lang.String getName()
           
 java.lang.String getPlotStyle()
           
 boolean hasDXFEntities(java.lang.String type)
           
 boolean isFrozen()
           
 boolean isVisible()
           
 void removeDXFEntity(DXFEntity entity)
           
 void setColor(int color)
           
 void setDXFDocument(DXFDocument doc)
           
 void setFlags(int flags)
           
 void setLineType(java.lang.String ltype)
           
 void setLineWeight(int lineWeight)
           
 void setName(java.lang.String name)
           
 void setPlotStyle(java.lang.String plotStyle)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DXFLayer

public DXFLayer()
Method Detail

getName

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

setName

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

addDXFEntity

public void addDXFEntity(DXFEntity entity)

removeDXFEntity

public void removeDXFEntity(DXFEntity entity)

setDXFDocument

public void setDXFDocument(DXFDocument doc)

getDXFDocument

public DXFDocument getDXFDocument()

getBounds

public Bounds getBounds()

getBounds

public Bounds getBounds(boolean onModelspace)
Get the bounds for the given filter flag. If true the bounds contains only entity bounds which are on model space. Else returns the bounds which contains the entity bounds which are on paperspace.

Parameters:
onModelspace -
Returns:

getDXFEntities

public java.util.List getDXFEntities(java.lang.String type)
Returns the list of the DXFenetities of the Type or null.

Parameters:
type -
Returns:
List or null

hasDXFEntities

public boolean hasDXFEntities(java.lang.String type)

getDXFEntityTypeIterator

public java.util.Iterator getDXFEntityTypeIterator()
Returns:
a iterator over all entity types of this layer

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

getColor

public int getColor()

setColor

public void setColor(int color)

setLineType

public void setLineType(java.lang.String ltype)

getLineType

public java.lang.String getLineType()

getFlags

public int getFlags()
Returns:
Returns the flags.

setFlags

public void setFlags(int flags)
Parameters:
flags - The flags to set.

isVisible

public boolean isVisible()

isFrozen

public boolean isFrozen()

getLineWeight

public int getLineWeight()

setLineWeight

public void setLineWeight(int lineWeight)

getPlotStyle

public java.lang.String getPlotStyle()

setPlotStyle

public void setPlotStyle(java.lang.String plotStyle)