org.kabeja.dxf
Class DXFLine

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

public class DXFLine
extends DXFEntity

Author:
Field Summary
 
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
DXFLine()
           
 
Method Summary
 Bounds getBounds()
           
 Point getEndPoint()
           
 double getLength()
          Returns the length of the entity or 0 if the entity has no length
 Point getStartPoint()
           
 java.lang.String getType()
           
 void setEndPoint(Point end)
           
 void setProperty(int groupcode, java.lang.String value)
           
 void setStartPoint(Point start)
           
 
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
 

Constructor Detail

DXFLine

public DXFLine()
Method Detail

setProperty

public void setProperty(int groupcode,
                        java.lang.String value)

setStartPoint

public void setStartPoint(Point start)

getEndPoint

public Point getEndPoint()
Returns:
Returns the end.

setEndPoint

public void setEndPoint(Point end)
Parameters:
end - The end to set.

getStartPoint

public Point getStartPoint()
Returns:
Returns the start.

getBounds

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

getType

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

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: