org.kabeja.dxf
Class DXFRay

java.lang.Object
  extended by org.kabeja.dxf.DXFEntity
      extended by org.kabeja.dxf.DXFRay
Direct Known Subclasses:
DXFXLine

public class DXFRay
extends DXFEntity

Author:
Field Summary
protected  Point basePoint
           
protected  Vector direction
           
 
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
DXFRay()
           
 
Method Summary
 Point getBasePoint()
           
 Bounds getBounds()
           
 Vector getDirection()
           
 double getLength()
          Returns the length of the entity or 0 if the entity has no length
 java.lang.String getType()
           
 void setBasePoint(Point basePoint)
           
 void setDirection(Vector direction)
           
 
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

basePoint

protected Point basePoint

direction

protected Vector direction
Constructor Detail

DXFRay

public DXFRay()
Method Detail

getBounds

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

getType

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

getBasePoint

public Point getBasePoint()
Returns:
Returns the basePoint.

setBasePoint

public void setBasePoint(Point basePoint)
Parameters:
basePoint - The basePoint to set.

getDirection

public Vector getDirection()
Returns:
Returns the direction.

setDirection

public void setDirection(Vector direction)
Parameters:
direction - The direction to set.

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: