com.iver.cit.gvsig.fmap.core.v02
Class FLabel

java.lang.Object
  extended bycom.iver.cit.gvsig.fmap.core.v02.FLabel
All Implemented Interfaces:
java.lang.Cloneable

public class FLabel
extends java.lang.Object
implements java.lang.Cloneable

Se utiliza para etiquetar. Las capas vectoriales tienen un arrayList (m_labels) de FLabel, un FLabel por cada registro.

Author:
FJP

Field Summary
static byte CENTER_BOTTOM
           
static byte CENTER_CENTER
           
static byte CENTER_TOP
           
static byte LEFT_BOTTOM
           
static byte LEFT_CENTER
           
static byte LEFT_TOP
           
static byte RIGHT_BOTTOM
           
static byte RIGHT_CENTER
           
static byte RIGHT_TOP
           
 
Constructor Summary
FLabel()
          Crea un nuevo FLabel.
FLabel(java.lang.String str)
          Crea un nuevo FLabel.
FLabel(java.lang.String str, java.awt.geom.Point2D pOrig, double heightText, double rotation)
          Crea un nuevo FLabel.
 
Method Summary
 java.lang.Object clone()
          Clona el FLabel.
static FLabel createFLabel(XMLEntity xml)
          Crea un Objeto de esta clase a partir de la información del XMLEntity.
 double getHeight()
          Devuelve la altura del Label.
 byte getJustification()
          Valores posibles para m_Justification: Left/Top = 0 Center/Top = 6 Right/Top = 12 Left/Center = 1 Center/Center = 7 Right/Center = 13 Left/Bottom = 2 Center/Bottom = 8 Right/Bottom = 14
 java.awt.geom.Point2D getOrig()
          Devuelve el punto de origen.
 double getRotation()
          Devuelve la rotación.
 java.lang.String getString()
          Devuelve un String con el texto del Label.
 XMLEntity getXMLEntity()
          Devuelve un Objeto XMLEntity con la información los atributos necesarios para poder después volver a crear el objeto original.
 void setFLabel(FLabel label)
          Introduce un nuevo FLabel al ya existente.
 void setHeight(double height)
          Introduce la altura del Label.
 void setJustification(byte justification)
          Valores posibles para m_Justification: Left/Top = 0 Center/Top = 6 Right/Top = 12 Left/Center = 1 Center/Center = 7 Right/Center = 13 Left/Bottom = 2 Center/Bottom = 8 Right/Bottom = 14
 void setOrig(java.awt.geom.Point2D orig)
          Introduce el punto de origen del Label.
 void setRotation(double m_rotation)
          Introduce la rotación a aplicar al Label.
 void setString(java.lang.String str)
          Introduce el texto del Label.
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LEFT_TOP

public static final byte LEFT_TOP
See Also:
Constant Field Values

LEFT_CENTER

public static final byte LEFT_CENTER
See Also:
Constant Field Values

LEFT_BOTTOM

public static final byte LEFT_BOTTOM
See Also:
Constant Field Values

CENTER_TOP

public static final byte CENTER_TOP
See Also:
Constant Field Values

CENTER_CENTER

public static final byte CENTER_CENTER
See Also:
Constant Field Values

CENTER_BOTTOM

public static final byte CENTER_BOTTOM
See Also:
Constant Field Values

RIGHT_TOP

public static final byte RIGHT_TOP
See Also:
Constant Field Values

RIGHT_CENTER

public static final byte RIGHT_CENTER
See Also:
Constant Field Values

RIGHT_BOTTOM

public static final byte RIGHT_BOTTOM
See Also:
Constant Field Values
Constructor Detail

FLabel

public FLabel()
Crea un nuevo FLabel.


FLabel

public FLabel(java.lang.String str)
Crea un nuevo FLabel.

Parameters:
str - DOCUMENT ME!

FLabel

public FLabel(java.lang.String str,
              java.awt.geom.Point2D pOrig,
              double heightText,
              double rotation)
Crea un nuevo FLabel.

Parameters:
str -
pOrig -
heightText -
rotation -
Method Detail

setFLabel

public void setFLabel(FLabel label)
Introduce un nuevo FLabel al ya existente.

Parameters:
label -

clone

public java.lang.Object clone()
Clona el FLabel.

Returns:
Object clonado.

getHeight

public double getHeight()
Devuelve la altura del Label.

Returns:
Returns the m_Height.

getOrig

public java.awt.geom.Point2D getOrig()
Devuelve el punto de origen.

Returns:
Returns the m_Orig.

getRotation

public double getRotation()
Devuelve la rotación.

Returns:
Returns the m_rotation.

getString

public java.lang.String getString()
Devuelve un String con el texto del Label.

Returns:
Returns the m_Str.

setHeight

public void setHeight(double height)
Introduce la altura del Label.

Parameters:
height - The m_Height to set.

setOrig

public void setOrig(java.awt.geom.Point2D orig)
Introduce el punto de origen del Label.

Parameters:
orig - The m_Orig to set.

setRotation

public void setRotation(double m_rotation)
Introduce la rotación a aplicar al Label.

Parameters:
m_rotation - The m_rotation to set.

setString

public void setString(java.lang.String str)
Introduce el texto del Label.

Parameters:
str - The m_Str to set.

getJustification

public byte getJustification()
Valores posibles para m_Justification: Left/Top = 0 Center/Top = 6 Right/Top = 12 Left/Center = 1 Center/Center = 7 Right/Center = 13 Left/Bottom = 2 Center/Bottom = 8 Right/Bottom = 14

Returns:
byte.

setJustification

public void setJustification(byte justification)
Valores posibles para m_Justification: Left/Top = 0 Center/Top = 6 Right/Top = 12 Left/Center = 1 Center/Center = 7 Right/Center = 13 Left/Bottom = 2 Center/Bottom = 8 Right/Bottom = 14

Parameters:
justification - byte

getXMLEntity

public XMLEntity getXMLEntity()
Devuelve un Objeto XMLEntity con la información los atributos necesarios para poder después volver a crear el objeto original.

Returns:
XMLEntity.

createFLabel

public static FLabel createFLabel(XMLEntity xml)
Crea un Objeto de esta clase a partir de la información del XMLEntity.

Parameters:
xml - XMLEntity
Returns:
Objeto de esta clase.