|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.cresques.px.PxObj org.cresques.px.dxf.DxfEntity org.cresques.px.dxf.DxfText
Entidad TEXT de un fichero DXF.
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)
Constructor de DxfText. |
Method Summary | |
void |
draw(java.awt.Graphics2D g,
ViewPortData vp)
Permite dibujar un DxfText. |
java.awt.geom.Point2D |
getPt()
|
java.awt.geom.Point2D |
getPt1()
Obtiene el primer punto de inserción del texto cuando este se inserta a través de dos puntos de inserción. |
java.awt.geom.Point2D |
getPt2()
Obtiene el segundo punto de inserción del texto cuando este se inserta a través de dos puntos de inserción. |
double |
getRotation()
Devuelve la inclinación del texto. |
java.lang.String |
getText()
Devuelve el texto. |
boolean |
getTwoPointsFlag()
Informa sobre si el texto se situa a través de dos puntos de inserción. |
void |
reProject(ICoordTrans rp)
Permite reproyectar un DxfText dado un conjunto de coordenadas de transformación. |
void |
setHeight(double h)
Establece la altura del texto. |
void |
setPt(java.awt.geom.Point2D pt)
Establece el punto de inserción del DxfText. |
void |
setPt1(java.awt.geom.Point2D pt)
Establece el primer punto de inserción del texto cuando este se inserta a través de dos puntos de inserción. |
void |
setPt2(java.awt.geom.Point2D pt)
Establece el segundo punto de inserción del texto cuando este se inserta a través de dos puntos de inserción. |
void |
setRotation(double r)
Establece la inclinación del texto. |
void |
setTwoPointsFlag(boolean f)
Establece si el texto se situa a través de dos puntos de inserción. |
java.lang.String |
toDxfString()
Permite la escritura de entidades en un fichero DXF2000. |
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 |
public static final int ALIGN_LEFT
public static final int ALIGN_CENTER
public static final int ALIGN_RIGHT
public static final int ALIGN_ALIGNED
public static final int ALIGN_MIDDLE
public static final int ALIGN_FIT
Constructor Detail |
public DxfText(IProjection proj, DxfLayer layer, java.lang.String txt)
Method Detail |
public void setPt(java.awt.geom.Point2D pt)
public java.awt.geom.Point2D getPt()
public void setTwoPointsFlag(boolean f)
f
- public boolean getTwoPointsFlag()
public void setPt1(java.awt.geom.Point2D pt)
pt
- public java.awt.geom.Point2D getPt1()
public void setPt2(java.awt.geom.Point2D pt)
pt
- public java.awt.geom.Point2D getPt2()
public void setHeight(double h)
public void setRotation(double r)
public double getRotation()
public java.lang.String getText()
public void reProject(ICoordTrans rp)
reProject
in interface Projected
reProject
in class DxfEntity
public void draw(java.awt.Graphics2D g, ViewPortData vp)
public java.lang.String toDxfString()
DxfEntity
toDxfString
in class DxfEntity
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |