org.kabeja.dxf
Class DXFPoint

java.lang.Object
  extended by org.kabeja.dxf.DXFEntity
      extended by org.kabeja.dxf.DXFPoint
Direct Known Subclasses:
DXFVertex

public class DXFPoint
extends DXFEntity

Author:
Field Summary
protected  Point p
           
 
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
DXFPoint()
           
DXFPoint(double x, double y, double z)
           
DXFPoint(Point p)
           
 
Method Summary
 Bounds getBounds()
           
 double getLength()
          Returns the length of the entity or 0 if the entity has no length
 Point getPoint()
           
 java.lang.String getType()
           
 double getX()
           
 double getY()
           
 double getZ()
           
 void setPoint(Point p)
           
 void setX(double x)
           
 void setY(double y)
           
 void setZ(double z)
           
 
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

p

protected Point p
Constructor Detail

DXFPoint

public DXFPoint()

DXFPoint

public DXFPoint(double x,
                double y,
                double z)

DXFPoint

public DXFPoint(Point p)
Method Detail

getX

public double getX()
Returns:
Returns the x.

setX

public void setX(double x)
Parameters:
x - The x to set.

getY

public double getY()
Returns:
Returns the y.

setY

public void setY(double y)
Parameters:
y - The y to set.

getZ

public double getZ()
Returns:
Returns the z.

setZ

public void setZ(double z)
Parameters:
z - The z to set.

getBounds

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

getType

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

getPoint

public Point getPoint()

setPoint

public void setPoint(Point p)

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: