org.kabeja.dxf
Class DXFText

java.lang.Object
  extended by org.kabeja.dxf.DXFEntity
      extended by org.kabeja.dxf.DXFText
Direct Known Subclasses:
DXFAttrib, DXFMText

public class DXFText
extends DXFEntity

Author:
Field Summary
protected  int align
           
static int ALIGN_ALIGNED
           
static int ALIGN_CENTER
           
static int ALIGN_FIT
           
static int ALIGN_LEFT
           
static int ALIGN_MIDDLE
           
protected  Point align_p1
           
protected  Point align_p2
           
static int ALIGN_RIGHT
           
protected  double align_x
           
protected  double align_y
           
protected  double align_z
           
protected  boolean alignmentPointSet
           
protected  boolean backward
           
protected  boolean bottom
           
static double DEFAULT_FONT_SIZE
           
protected  double height
           
protected  double oblique_angle
           
protected  Point p
           
protected  double rotation
           
protected  double scale_x
           
protected  java.lang.String text
           
protected  TextDocument textDoc
           
protected  java.lang.String textStyle
           
protected  boolean top
           
protected  boolean upsideDown
           
protected  int valign
           
static int VALIGN_BASELINE
           
static int VALIGN_BOTTOM
           
static int VALIGN_CENTER
           
static int VALIGN_TOP
           
protected  boolean vertical_center
           
 
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
DXFText()
           
 
Method Summary
 Point calculateAlignmentPoint()
           
 int getAlign()
           
 Point getAlignmentPoint()
           
 double getAlignX()
           
 double getAlignY()
           
 double getAlignZ()
           
 Bounds getBounds()
           
 double getHeight()
           
 Point getInsertPoint()
           
 double getLength()
          Returns the length of the entity or 0 if the entity has no length
 double getObliqueAngle()
           
 double getRotation()
           
 double getScaleX()
           
 java.lang.String getText()
           
 TextDocument getTextDocument()
           
 java.lang.String getTextStyle()
           
 java.lang.String getType()
           
 int getValign()
           
 boolean isAlignmentPointSet()
           
 boolean isBackward()
           
 boolean isOmitLineType()
           
 boolean isUpsideDown()
           
 void setAlign(int align)
           
 void setAlignmentPoint(boolean alignmentPoint)
           
 void setAlignX(double align_x)
           
 void setAlignY(double align_y)
           
 void setAlignZ(double align_z)
           
 void setBackward(boolean backward)
           
 void setDXFDocument(DXFDocument doc)
           
 void setHeight(double height)
           
 void setObliqueAngle(double oblique_angle)
           
 void setRotation(double rotation)
           
 void setScaleX(double scale_x)
           
 void setText(java.lang.String text)
           
 void setTextStyle(java.lang.String textStyle)
           
 void setUpsideDown(boolean upsideDown)
           
 void setValign(int valign)
           
 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, isVisibile, setBlockEntity, setColor, setColorRGB, 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

DEFAULT_FONT_SIZE

public static final double DEFAULT_FONT_SIZE
See Also:
Constant Field Values

VALIGN_BASELINE

public static final int VALIGN_BASELINE
See Also:
Constant Field Values

VALIGN_BOTTOM

public static final int VALIGN_BOTTOM
See Also:
Constant Field Values

VALIGN_CENTER

public static final int VALIGN_CENTER
See Also:
Constant Field Values

VALIGN_TOP

public static final int VALIGN_TOP
See Also:
Constant Field Values

ALIGN_LEFT

public static final int ALIGN_LEFT
See Also:
Constant Field Values

ALIGN_CENTER

public static final int ALIGN_CENTER
See Also:
Constant Field Values

ALIGN_RIGHT

public static final int ALIGN_RIGHT
See Also:
Constant Field Values

ALIGN_ALIGNED

public static final int ALIGN_ALIGNED
See Also:
Constant Field Values

ALIGN_MIDDLE

public static final int ALIGN_MIDDLE
See Also:
Constant Field Values

ALIGN_FIT

public static final int ALIGN_FIT
See Also:
Constant Field Values

rotation

protected double rotation

height

protected double height

scale_x

protected double scale_x

oblique_angle

protected double oblique_angle

align_x

protected double align_x

align_y

protected double align_y

align_z

protected double align_z

align

protected int align

valign

protected int valign

text

protected java.lang.String text

textStyle

protected java.lang.String textStyle

p

protected Point p

align_p1

protected Point align_p1

align_p2

protected Point align_p2

upsideDown

protected boolean upsideDown

backward

protected boolean backward

alignmentPointSet

protected boolean alignmentPointSet

top

protected boolean top

bottom

protected boolean bottom

vertical_center

protected boolean vertical_center

textDoc

protected TextDocument textDoc
Constructor Detail

DXFText

public DXFText()
Method Detail

setDXFDocument

public void setDXFDocument(DXFDocument doc)
Overrides:
setDXFDocument in class DXFEntity

getBounds

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

getAlign

public int getAlign()
Returns:
Returns the align.

setAlign

public void setAlign(int align)
Parameters:
align - The align to set.

getAlignX

public double getAlignX()
Returns:
Returns the align_x.

setAlignX

public void setAlignX(double align_x)
Parameters:
align_x - The align_x to set.

getAlignY

public double getAlignY()
Returns:
Returns the align_y.

setAlignY

public void setAlignY(double align_y)
Parameters:
align_y - The align_y to set.

getAlignZ

public double getAlignZ()
Returns:
Returns the align_z.

setAlignZ

public void setAlignZ(double align_z)
Parameters:
align_z - The align_z to set.

getHeight

public double getHeight()
Returns:
Returns the height.

setHeight

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

getObliqueAngle

public double getObliqueAngle()
Returns:
Returns the oblique_angle.

setObliqueAngle

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

getRotation

public double getRotation()
Returns:
Returns the rotation.

setRotation

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

getScaleX

public double getScaleX()
Returns:
Returns the scale_x.

setScaleX

public void setScaleX(double scale_x)
Parameters:
scale_x - The scale_x to set.

getText

public java.lang.String getText()
Returns:
Returns the text.

setText

public void setText(java.lang.String text)
Parameters:
text - The text to set.

getTextStyle

public java.lang.String getTextStyle()
Returns:
Returns the textStyle.

setTextStyle

public void setTextStyle(java.lang.String textStyle)
Parameters:
textStyle - The textStyle to set.

getValign

public int getValign()
Returns:
Returns the valign.

setValign

public void setValign(int valign)
Parameters:
valign - The valign to set.

setX

public void setX(double x)

setY

public void setY(double y)

setZ

public void setZ(double z)

isBackward

public boolean isBackward()

setBackward

public void setBackward(boolean backward)

isUpsideDown

public boolean isUpsideDown()

setUpsideDown

public void setUpsideDown(boolean upsideDown)

getType

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

isAlignmentPointSet

public boolean isAlignmentPointSet()
Returns:
Returns the alignmentPointSet.

setAlignmentPoint

public void setAlignmentPoint(boolean alignmentPoint)
Parameters:
alignmentPointSet - The alignmentPointSet to set.

getTextDocument

public TextDocument getTextDocument()

getInsertPoint

public Point getInsertPoint()

getAlignmentPoint

public Point getAlignmentPoint()

calculateAlignmentPoint

public Point calculateAlignmentPoint()

isOmitLineType

public boolean isOmitLineType()
Overrides:
isOmitLineType 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: