public class DxfText extends DxfEntity
Modifier and Type | Field and Description |
---|---|
static int |
ALIGN_ALIGNED |
static int |
ALIGN_CENTER |
static int |
ALIGN_FIT |
static int |
ALIGN_LEFT |
static int |
ALIGN_MIDDLE |
static int |
ALIGN_RIGHT |
extent, requestExtent, stroke
Constructor and Description |
---|
DxfText(IProjection proj,
DxfLayer layer,
String txt)
Constructor de DxfText.
|
Modifier and Type | Method and Description |
---|---|
void |
draw(Graphics2D g,
ViewPortData vp)
Permite dibujar un DxfText.
|
double |
getHeight() |
Point2D |
getPt() |
Point2D |
getPt1()
Obtiene el primer punto de inserci�n del texto cuando este se inserta a trav�s
de dos puntos de inserci�n.
|
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.
|
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(Point2D pt)
Establece el punto de inserci�n del DxfText.
|
void |
setPt1(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(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.
|
String |
toDxfString()
Permite la escritura de entidades DxfText en un fichero DXF2000.
|
getColor, getHandle, getLayer, getLayerName, getProjection, setHandle, setProjection
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
public DxfText(IProjection proj, DxfLayer layer, String txt)
proj,
- proyecci�n cartogr�fica en la que se encuentra el DxfText.layer,
- capa del DXF en la que se encuentra el DxfText.txt,
- texto.public void setPt(Point2D pt)
pt,
- punto de inserci�n.public Point2D getPt()
public void setTwoPointsFlag(boolean f)
f
- public boolean getTwoPointsFlag()
public void setPt1(Point2D pt)
pt
- public Point2D getPt1()
public void setPt2(Point2D pt)
pt
- public Point2D getPt2()
public void setHeight(double h)
h,
- altura del texto.public void setRotation(double r)
r,
- �ngulo de inclinaci�n del texto.public double getRotation()
public String getText()
public void reProject(ICoordTrans rp)
reProject
in interface Projected
reProject
in class DxfEntity
rp,
- coordenadas de transformaci�n.Projected.getProjection()
public void draw(Graphics2D g, ViewPortData vp)
public double getHeight()
public String toDxfString()
toDxfString
in class DxfEntity