org.cresques.px.dxf
Class DxfText

java.lang.Object
  extended byorg.cresques.px.PxObj
      extended byorg.cresques.px.dxf.DxfEntity
          extended byorg.cresques.px.dxf.DxfText
All Implemented Interfaces:
Drawable, Extent.Has, Projected

public class DxfText
extends DxfEntity

Entidad TEXT de AutoCAD

Author:
"Luis W. Sevilla" * @author administrador jmorell, 050406: El segundo punto es opcional.

Field Summary
static int ALIGN_ALIGNED
           
static int ALIGN_CENTER
           
static int ALIGN_FIT
           
static int ALIGN_LEFT
           
static int ALIGN_MIDDLE
           
static int ALIGN_RIGHT
           
 
Fields inherited from class org.cresques.px.PxObj
extent, stroke
 
Constructor Summary
DxfText(IProjection proj, DxfLayer layer, java.lang.String txt)
           
 
Method Summary
 void draw(java.awt.Graphics2D g, ViewPortData vp)
           
 java.awt.geom.Point2D getPt()
           
 java.awt.geom.Point2D getPt1()
           
 java.awt.geom.Point2D getPt2()
           
 double getRotation()
           
 java.lang.String getText()
           
 boolean getTwoPointsFlag()
           
 void reProject(ICoordTrans rp)
           
 void setHeight(double h)
           
 void setPt(java.awt.geom.Point2D pt)
           
 void setPt1(java.awt.geom.Point2D pt)
           
 void setPt2(java.awt.geom.Point2D pt)
           
 void setRotation(double r)
           
 void setTwoPointsFlag(boolean f)
           
 java.lang.String toDxfString()
           
 
Methods inherited from class org.cresques.px.dxf.DxfEntity
getColor, getHandle, getLayer, getLayerName, getProjection, setHandle, setProjection
 
Methods inherited from class org.cresques.px.PxObj
getExtent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

DxfText

public DxfText(IProjection proj,
               DxfLayer layer,
               java.lang.String txt)
Method Detail

setPt

public void setPt(java.awt.geom.Point2D pt)

getPt

public java.awt.geom.Point2D getPt()

setTwoPointsFlag

public void setTwoPointsFlag(boolean f)

getTwoPointsFlag

public boolean getTwoPointsFlag()

setPt1

public void setPt1(java.awt.geom.Point2D pt)

getPt1

public java.awt.geom.Point2D getPt1()

setPt2

public void setPt2(java.awt.geom.Point2D pt)

getPt2

public java.awt.geom.Point2D getPt2()

setHeight

public void setHeight(double h)

setRotation

public void setRotation(double r)

getRotation

public double getRotation()

getText

public java.lang.String getText()

reProject

public void reProject(ICoordTrans rp)
Specified by:
reProject in interface Projected
Specified by:
reProject in class DxfEntity

draw

public void draw(java.awt.Graphics2D g,
                 ViewPortData vp)

toDxfString

public java.lang.String toDxfString()
Specified by:
toDxfString in class DxfEntity