Interface ITextSymbol
- All Superinterfaces:
Cloneable,org.gvsig.tools.lang.Cloneable,IPrintable,ISymbol,org.gvsig.tools.persistence.Persistent
ITextSymbol.java
Represents an ISymbol that draws a text.
Represents an ISymbol that draws a text.
- Author:
- jaume dominguez faus - jaume.dominguez@iver.es Dec 11, 2007
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final intstatic final intstatic final intstatic final intFields inherited from interface org.gvsig.fmap.mapcontext.rendering.symbols.ISymbol
SELECTION_COLOR -
Method Summary
Modifier and TypeMethodDescriptiongetFont()Returns the currently set font.floatgetText()Returns the text contained by this symbolReturns the currently color set to be applied to the textorg.gvsig.fmap.geom.GeometrygetTextWrappingShape(org.gvsig.fmap.geom.primitive.Point p) Computes a Geometry wrapping the text to be appliedbooleanbooleanvoidsetAutoresizeEnabled(boolean autoresizeFlag) voidsetDrawWithHalo(boolean drawWithHalo) voidEstablishes the font that will be used to render this ITextSymbol.voidsetFontSize(double d) Sets the font size currently set to this symbolvoidsetHaloColor(Color haloColor) voidsetHaloWidth(float haloWidth) voidSets the text to be rendered by this symbolvoidsetTextColor(Color color) Sets the color of the textMethods inherited from interface org.gvsig.tools.lang.Cloneable
cloneMethods inherited from interface org.gvsig.fmap.mapcontext.rendering.symbols.IPrintable
printMethods inherited from interface org.gvsig.fmap.mapcontext.rendering.symbols.ISymbol
draw, draw, drawInsideRectangle, getColor, getDescription, getFeature, getID, getSymbolForSelection, getSymbolForSelection, getSymbolType, isShapeVisible, isSuitableFor, setColor, setDescription, setFeature, setIDMethods inherited from interface org.gvsig.tools.persistence.Persistent
loadFromState, saveToState
-
Field Details
-
SYMBOL_NAME
- See Also:
-
SYMBOL_STYLE_ALIGNMENT_LEFT
static final int SYMBOL_STYLE_ALIGNMENT_LEFT- See Also:
-
SYMBOL_STYLE_ALIGNMENT_RIGHT
static final int SYMBOL_STYLE_ALIGNMENT_RIGHT- See Also:
-
SYMBOL_STYLE_ALIGNMENT_CENTERED
static final int SYMBOL_STYLE_ALIGNMENT_CENTERED- See Also:
-
SYMBOL_STYLE_ALIGNMENT_JUSTIFY
static final int SYMBOL_STYLE_ALIGNMENT_JUSTIFY- See Also:
-
-
Method Details
-
setFont
Establishes the font that will be used to render this ITextSymbol.- Parameters:
font-
-
getFont
Font getFont()Returns the currently set font.- Returns:
- Font
-
getTextColor
Color getTextColor()Returns the currently color set to be applied to the text- Returns:
- Color
-
setTextColor
Sets the color of the text- Parameters:
color-
-
getText
String getText()Returns the text contained by this symbol- Returns:
-
setText
Sets the text to be rendered by this symbol- Parameters:
text- , a String
-
setFontSize
void setFontSize(double d) Sets the font size currently set to this symbol- Parameters:
d-
-
getTextWrappingShape
org.gvsig.fmap.geom.Geometry getTextWrappingShape(org.gvsig.fmap.geom.primitive.Point p) Computes a Geometry wrapping the text to be applied- Parameters:
p- target location- Returns:
-
getBounds
Rectangle getBounds() -
setAutoresizeEnabled
void setAutoresizeEnabled(boolean autoresizeFlag) -
isAutoresizeEnabled
boolean isAutoresizeEnabled() -
getHaloColor
Color getHaloColor() -
setHaloColor
-
getHaloWidth
float getHaloWidth() -
setHaloWidth
void setHaloWidth(float haloWidth) -
isDrawWithHalo
boolean isDrawWithHalo() -
setDrawWithHalo
void setDrawWithHalo(boolean drawWithHalo)
-