org.kabeja.dxf
Class DXFDimension

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

public class DXFDimension
extends DXFEntity

Author:
Field Summary
protected  int attechmentLocation
           
protected  int dimensionArea
           
protected  java.lang.String dimensionBlock
           
protected  double dimensionRotation
           
protected  java.lang.String dimensionStyle
           
protected  java.lang.String dimensionText
           
protected  int dimType
           
protected  boolean exactTextLineSpacing
           
protected  double horizontalAlign
           
protected  double horizontalDirection
           
protected  double inclinationHelpLine
           
protected  Point insertPoint
           
protected  double leadingLineLength
           
protected  Point referencePoint
           
protected  Point referencePoint3
           
protected  Point referencePoint4
           
protected  Point referencePoint5
           
protected  Point referencePoint6
           
protected  double rotate
           
protected  Point textPoint
           
protected  double textRotation
           
protected  int TYPE_3POINT_ANGLE
           
protected  int TYPE_4POINT
           
protected  int TYPE_ALIGNMENT
           
protected  int TYPE_COORDINATES
           
protected  int TYPE_DIAMETER
           
protected  int TYPE_LINEAR
           
protected  int TYPE_RADIAL
           
 
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
DXFDimension()
           
 
Method Summary
 int getAttechmentLocation()
           
 Bounds getBounds()
           
 int getDimensionArea()
           
 java.lang.String getDimensionBlock()
           
 double getDimensionRotation()
           
 java.lang.String getDimensionStyleID()
           
 java.lang.String getDimensionText()
           
 int getDimensionType()
           
 DXFDimensionStyle getDXFDimensionStyle()
           
 double getHorizontalAlign()
           
 double getHorizontalDirection()
           
 double getInclinationHelpLine()
           
 Point getInsertPoint()
           
 double getLeadingLineLength()
           
 double getLength()
          Returns the length of the entity or 0 if the entity has no length
 Point getReferencePoint()
           
 Point getReferencePoint3()
           
 Point getReferencePoint4()
           
 Point getReferencePoint5()
           
 Point getReferencePoint6()
           
 double getRotate()
           
 Point getTextPoint()
           
 double getTextRotation()
           
 java.lang.String getType()
           
 boolean isExactTextLineSpacing()
           
 void setAttechmentLocation(int attechmentLocation)
           
 void setDimensionArea(int dimensionArea)
           
 void setDimensionBlock(java.lang.String dimensionBlock)
           
 void setDimensionRotation(double dimensionRotation)
           
 void setDimensionStyleID(java.lang.String dimensionStyle)
           
 void setDimensionText(java.lang.String dimensionText)
           
 void setDimensionType(int type)
           
 void setExactTextLineSpacing(boolean exactTextLineSpacing)
           
 void setHorizontalAlign(double horizontalAlign)
           
 void setHorizontalDirection(double horizontalDirection)
           
 void setInclinationHelpLine(double inclinationHelpLine)
           
 void setInsertPoint(Point insertPoint)
           
 void setLeadingLineLength(double leadingLineLength)
           
 void setReferencePoint(Point referencePoint)
           
 void setReferencePoint3(Point referencePoint3)
           
 void setReferencePoint4(Point referencePoint4)
           
 void setReferencePoint5(Point referencePoint5)
           
 void setReferencePoint6(Point referencePoint6)
           
 void setRotate(double rotate)
           
 void setTextPoint(Point textPoint)
           
 void setTextRotation(double textRotation)
           
 
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

TYPE_LINEAR

protected final int TYPE_LINEAR
See Also:
Constant Field Values

TYPE_ALIGNMENT

protected final int TYPE_ALIGNMENT
See Also:
Constant Field Values

TYPE_4POINT

protected final int TYPE_4POINT
See Also:
Constant Field Values

TYPE_DIAMETER

protected final int TYPE_DIAMETER
See Also:
Constant Field Values

TYPE_RADIAL

protected final int TYPE_RADIAL
See Also:
Constant Field Values

TYPE_3POINT_ANGLE

protected final int TYPE_3POINT_ANGLE
See Also:
Constant Field Values

TYPE_COORDINATES

protected final int TYPE_COORDINATES
See Also:
Constant Field Values

dimType

protected int dimType

referencePoint

protected Point referencePoint

textPoint

protected Point textPoint

insertPoint

protected Point insertPoint

referencePoint3

protected Point referencePoint3

referencePoint4

protected Point referencePoint4

referencePoint5

protected Point referencePoint5

referencePoint6

protected Point referencePoint6

attechmentLocation

protected int attechmentLocation

exactTextLineSpacing

protected boolean exactTextLineSpacing

rotate

protected double rotate

horizontalDirection

protected double horizontalDirection

dimensionStyle

protected java.lang.String dimensionStyle

dimensionText

protected java.lang.String dimensionText

dimensionBlock

protected java.lang.String dimensionBlock

dimensionArea

protected int dimensionArea

textRotation

protected double textRotation

dimensionRotation

protected double dimensionRotation

inclinationHelpLine

protected double inclinationHelpLine

leadingLineLength

protected double leadingLineLength

horizontalAlign

protected double horizontalAlign
Constructor Detail

DXFDimension

public DXFDimension()
Method Detail

getAttechmentLocation

public int getAttechmentLocation()
Returns:
Returns the attechmentLocation.

setAttechmentLocation

public void setAttechmentLocation(int attechmentLocation)
Parameters:
attechmentLocation - The attechmentLocation to set.

getDimensionStyleID

public java.lang.String getDimensionStyleID()
Returns:
Returns the dimensionStyle.

setDimensionStyleID

public void setDimensionStyleID(java.lang.String dimensionStyle)
Parameters:
dimensionStyle - The dimensionStyle to set.

isExactTextLineSpacing

public boolean isExactTextLineSpacing()
Returns:
Returns the exactTextLineSpacing.

setExactTextLineSpacing

public void setExactTextLineSpacing(boolean exactTextLineSpacing)
Parameters:
exactTextLineSpacing - The exactTextLineSpacing to set.

getHorizontalDirection

public double getHorizontalDirection()
Returns:
Returns the horizontalDirection.

setHorizontalDirection

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

getInsertPoint

public Point getInsertPoint()
Returns:
Returns the insertPoint.

setInsertPoint

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

getReferencePoint

public Point getReferencePoint()
Returns:
Returns the referencePoint.

setReferencePoint

public void setReferencePoint(Point referencePoint)
Parameters:
referencePoint - The referencePoint to set.

getReferencePoint3

public Point getReferencePoint3()
Returns:
Returns the referencePoint3.

setReferencePoint3

public void setReferencePoint3(Point referencePoint3)
Parameters:
referencePoint3 - The referencePoint3 to set.

getReferencePoint4

public Point getReferencePoint4()
Returns:
Returns the referencePoint4.

setReferencePoint4

public void setReferencePoint4(Point referencePoint4)
Parameters:
referencePoint4 - The referencePoint4 to set.

getReferencePoint5

public Point getReferencePoint5()
Returns:
Returns the referencePoint5.

setReferencePoint5

public void setReferencePoint5(Point referencePoint5)
Parameters:
referencePoint5 - The referencePoint5 to set.

getReferencePoint6

public Point getReferencePoint6()
Returns:
Returns the referencePoint6.

setReferencePoint6

public void setReferencePoint6(Point referencePoint6)
Parameters:
referencePoint6 - The referencePoint6 to set.

getRotate

public double getRotate()
Returns:
Returns the rotate.

setRotate

public void setRotate(double rotate)
Parameters:
rotate - The rotate to set.

getTextPoint

public Point getTextPoint()
Returns:
Returns the textPoint.

setTextPoint

public void setTextPoint(Point textPoint)
Parameters:
textPoint - The textPoint to set.

getDimensionType

public int getDimensionType()
Returns:
Returns the type.

setDimensionType

public void setDimensionType(int type)
Parameters:
type - The type to set.

getDimensionRotation

public double getDimensionRotation()

setDimensionRotation

public void setDimensionRotation(double dimensionRotation)

getDimensionText

public java.lang.String getDimensionText()

setDimensionText

public void setDimensionText(java.lang.String dimensionText)

getHorizontalAlign

public double getHorizontalAlign()

setHorizontalAlign

public void setHorizontalAlign(double horizontalAlign)

getInclinationHelpLine

public double getInclinationHelpLine()

setInclinationHelpLine

public void setInclinationHelpLine(double inclinationHelpLine)

getLeadingLineLength

public double getLeadingLineLength()

setLeadingLineLength

public void setLeadingLineLength(double leadingLineLength)

getTextRotation

public double getTextRotation()

setTextRotation

public void setTextRotation(double textRotation)

getDimensionBlock

public java.lang.String getDimensionBlock()

setDimensionBlock

public void setDimensionBlock(java.lang.String dimensionBlock)

getDimensionArea

public int getDimensionArea()

setDimensionArea

public void setDimensionArea(int dimensionArea)

getBounds

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

getDXFDimensionStyle

public DXFDimensionStyle getDXFDimensionStyle()

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: