org.kabeja.dxf
Class DXFLeader

java.lang.Object
  extended by org.kabeja.dxf.DXFEntity
      extended by org.kabeja.dxf.DXFLeader

public class DXFLeader
extends DXFEntity

Author:
Field Summary
protected  boolean arrowEnabled
           
protected  double arrowHeadSize
           
protected  java.util.List coordinates
           
protected  int creationType
           
protected  boolean hookline
           
protected  int hooklineDirecton
           
protected  Point horizontalDirection
           
protected  Point lastOffsetInsertion
           
protected  Point lastOffsetText
           
protected  int pathType
           
protected  double scaleFactor
           
protected  java.lang.String styleName
           
protected  double textGap
           
protected  double textHeight
           
protected  java.lang.String textID
           
protected  double textWidth
           
 
Fields inherited from class org.kabeja.dxf.DXFEntity
block, color, colorRGB, doc, extrusion, flags, id, layerID, lineType, linetypeScaleFactor, lineWeight, modelSpace, thickness, transparency, visibile
 
Constructor Summary
DXFLeader()
           
 
Method Summary
 void addCoordinate(Point vertex)
           
 double getArrowHeadSize()
           
 Bounds getBounds()
           
 Point getCoordinateAt(int index)
           
 int getCoordinateCount()
           
 java.util.Iterator getCoordinateIterator()
           
 int getCreationType()
           
 int getHooklineDirecton()
           
 Point getHorizontalDirection()
           
 Point getLastOffsetInsertion()
           
 Point getLastOffsetText()
           
 double getLength()
          Returns the length of the entity or 0 if the entity has no length
 int getPathType()
           
 double getScaleFactor()
           
 java.lang.String getStyleNameID()
           
 double getTextGap()
           
 double getTextHeight()
           
 java.lang.String getTextID()
           
 double getTextWidth()
           
 java.lang.String getType()
           
 boolean isArrowEnabled()
           
 boolean isHookline()
           
 boolean isSplinePath()
           
 void setArrowEnabled(boolean arrowEnabled)
           
 void setArrowHeadSize(double arrowHeadSize)
           
 void setCreationType(int creationType)
           
 void setHookline(boolean hookline)
           
 void setHooklineDirecton(int hooklineDirecton)
           
 void setHorizontalDirection(Point horizontalDirection)
           
 void setLastOffsetInsertion(Point lastOffsetInsertion)
           
 void setLastOffsetText(Point lastOffsetText)
           
 void setPathType(int pathType)
           
 void setScaleFactor(double scaleFactor)
           
 void setStyleNameID(java.lang.String styleName)
           
 void setTextGap(double textGap)
           
 void setTextHeight(double textHeight)
           
 void setTextID(java.lang.String textID)
           
 void setTextWidth(double textWidth)
           
 
Methods inherited from class org.kabeja.dxf.DXFEntity
getColor, getColorRGB, getDXFDocument, getExtrusion, getFlags, getID, getLayerName, getLineType, getLinetypeScaleFactor, getLineWeight, getThickness, getTransparency, isBlockEntity, isModelSpace, isOmitLineType, isVisibile, setBlockEntity, setColor, setColorRGB, setDXFDocument, setExtrusion, setExtrusionX, setExtrusionY, setExtrusionZ, setFlags, setID, setLayerName, setLineType, setLinetypeScaleFactor, setLineWeight, setModelSpace, setThickness, setTransparency, setVisibile
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

styleName

protected java.lang.String styleName

arrowHeadSize

protected double arrowHeadSize

textGap

protected double textGap

scaleFactor

protected double scaleFactor

textWidth

protected double textWidth

textHeight

protected double textHeight

coordinates

protected java.util.List coordinates

pathType

protected int pathType

creationType

protected int creationType

hooklineDirecton

protected int hooklineDirecton

hookline

protected boolean hookline

horizontalDirection

protected Point horizontalDirection

lastOffsetText

protected Point lastOffsetText

lastOffsetInsertion

protected Point lastOffsetInsertion

arrowEnabled

protected boolean arrowEnabled

textID

protected java.lang.String textID
Constructor Detail

DXFLeader

public DXFLeader()
Method Detail

getTextID

public java.lang.String getTextID()
Returns:
Returns the textID.

setTextID

public void setTextID(java.lang.String textID)
Parameters:
textID - The textID to set.

getBounds

public Bounds getBounds()
Specified by:
getBounds in class DXFEntity

getType

public java.lang.String getType()
Specified by:
getType in class DXFEntity

getArrowHeadSize

public double getArrowHeadSize()
Returns:
Returns the arrowHeadSize.

setArrowHeadSize

public void setArrowHeadSize(double arrowHeadSize)
Parameters:
arrowHeadSize - The arrowHeadSize to set.

getCreationType

public int getCreationType()
Returns:
Returns the creationType.

setCreationType

public void setCreationType(int creationType)
Parameters:
creationType - The creationType to set.

isHookline

public boolean isHookline()
Returns:
Returns the hookline.

setHookline

public void setHookline(boolean hookline)
Parameters:
hookline - The hookline to set.

getHooklineDirecton

public int getHooklineDirecton()
Returns:
Returns the hooklineDirecton.

setHooklineDirecton

public void setHooklineDirecton(int hooklineDirecton)
Parameters:
hooklineDirecton - The hooklineDirecton to set.

getHorizontalDirection

public Point getHorizontalDirection()
Returns:
Returns the horizontalDirection.

setHorizontalDirection

public void setHorizontalDirection(Point horizontalDirection)
Parameters:
horizontalDirection - The horizontalDirection to set.

getLastOffsetInsertion

public Point getLastOffsetInsertion()
Returns:
Returns the lastOffsetInsertion.

setLastOffsetInsertion

public void setLastOffsetInsertion(Point lastOffsetInsertion)
Parameters:
lastOffsetInsertion - The lastOffsetInsertion to set.

getLastOffsetText

public Point getLastOffsetText()
Returns:
Returns the lastOffsetText.

setLastOffsetText

public void setLastOffsetText(Point lastOffsetText)
Parameters:
lastOffsetText - The lastOffsetText to set.

getPathType

public int getPathType()
Returns:
Returns the pathType.

setPathType

public void setPathType(int pathType)
Parameters:
pathType - The pathType to set.

getScaleFactor

public double getScaleFactor()
Returns:
Returns the scaleFactor.

setScaleFactor

public void setScaleFactor(double scaleFactor)
Parameters:
scaleFactor - The scaleFactor to set.

getStyleNameID

public java.lang.String getStyleNameID()
Returns:
Returns the styleName.

setStyleNameID

public void setStyleNameID(java.lang.String styleName)
Parameters:
styleName - The styleName to set.

getTextGap

public double getTextGap()
Returns:
Returns the textGap.

setTextGap

public void setTextGap(double textGap)
Parameters:
textGap - The textGap to set.

getTextHeight

public double getTextHeight()
Returns:
Returns the textHeight.

setTextHeight

public void setTextHeight(double textHeight)
Parameters:
textHeight - The textHeight to set.

getTextWidth

public double getTextWidth()
Returns:
Returns the textWidth.

setTextWidth

public void setTextWidth(double textWidth)
Parameters:
textWidth - The textWidth to set.

addCoordinate

public void addCoordinate(Point vertex)

getCoordinateCount

public int getCoordinateCount()

getCoordinateAt

public Point getCoordinateAt(int index)

getCoordinateIterator

public java.util.Iterator getCoordinateIterator()

isArrowEnabled

public boolean isArrowEnabled()
Returns:
Returns the arrowEnabled.

setArrowEnabled

public void setArrowEnabled(boolean arrowEnabled)
Parameters:
arrowEnabled - The arrowEnabled to set.

isSplinePath

public boolean isSplinePath()

getLength

public double getLength()
Description copied from class: DXFEntity
Returns the length of the entity or 0 if the entity has no length

Specified by:
getLength in class DXFEntity
Returns: