org.kabeja.dxf
Class DXFShape

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

public class DXFShape
extends DXFEntity

Author:
Field Summary
protected  double height
           
protected  Point insertPoint
           
protected  java.lang.String name
           
protected  double obliqueAngle
           
protected  double rotation
           
protected  double scaleFactor
           
 
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
DXFShape()
           
 
Method Summary
 Bounds getBounds()
           
 double getHeight()
           
 Point getInsertPoint()
           
 double getLength()
          Returns the length of the entity or 0 if the entity has no length
 java.lang.String getName()
           
 double getObliqueAngle()
           
 double getRotation()
           
 double getScaleFactor()
           
 java.lang.String getType()
           
 void setHeight(double height)
           
 void setInsertPoint(Point insertPoint)
           
 void setName(java.lang.String name)
           
 void setObliqueAngle(double obliqueAngle)
           
 void setRotation(double rotation)
           
 void setScaleFactor(double scaleFactor)
           
 void toSAX(org.xml.sax.ContentHandler handler, java.util.Map svgContext, DXFEntity entity, TransformContext transformContext)
           
 
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

insertPoint

protected Point insertPoint

rotation

protected double rotation

height

protected double height

scaleFactor

protected double scaleFactor

obliqueAngle

protected double obliqueAngle

name

protected java.lang.String name
Constructor Detail

DXFShape

public DXFShape()
Method Detail

toSAX

public void toSAX(org.xml.sax.ContentHandler handler,
                  java.util.Map svgContext,
                  DXFEntity entity,
                  TransformContext transformContext)
           throws org.xml.sax.SAXException
Throws:
org.xml.sax.SAXException

getBounds

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

getType

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

getHeight

public double getHeight()
Returns:
Returns the height.

setHeight

public void setHeight(double height)
Parameters:
height - The height to set.

getInsertPoint

public Point getInsertPoint()
Returns:
Returns the insertPoint.

setInsertPoint

public void setInsertPoint(Point insertPoint)
Parameters:
insertPoint - The insertPoint to set.

getName

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

setName

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

getObliqueAngle

public double getObliqueAngle()
Returns:
Returns the obliqueAngle.

setObliqueAngle

public void setObliqueAngle(double obliqueAngle)
Parameters:
obliqueAngle - The obliqueAngle to set.

getRotation

public double getRotation()
Returns:
Returns the rotation.

setRotation

public void setRotation(double rotation)
Parameters:
rotation - The rotation to set.

getScaleFactor

public double getScaleFactor()
Returns:
Returns the scaleFactor.

setScaleFactor

public void setScaleFactor(double scaleFactor)
Parameters:
scaleFactor - The scaleFactor 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: