org.cresques.px.dxf
Class DxfText
java.lang.Object
org.cresques.px.PxObj
org.cresques.px.dxf.DxfEntity
org.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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
DxfText
public DxfText(IProjection proj,
DxfLayer layer,
java.lang.String txt)
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