public interface ITextSymbol extends ISymbol
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
SYMBOL_NAME |
static int |
SYMBOL_STYLE_ALIGNMENT_CENTERED |
static int |
SYMBOL_STYLE_ALIGNMENT_JUSTIFY |
static int |
SYMBOL_STYLE_ALIGNMENT_LEFT |
static int |
SYMBOL_STYLE_ALIGNMENT_RIGHT |
SELECTION_COLOR
Modifier and Type | Method and Description |
---|---|
java.awt.Rectangle |
getBounds() |
java.awt.Font |
getFont()
Returns the currently set font.
|
java.awt.Color |
getHaloColor() |
float |
getHaloWidth() |
java.awt.Color |
getTextColor()
Returns the currently color set to be applied to the text
|
org.gvsig.fmap.geom.Geometry |
getTextWrappingShape(org.gvsig.fmap.geom.primitive.Point p)
Computes a Geometry wrapping the text to be applied
|
boolean |
isAutoresizeEnabled() |
boolean |
isDrawWithHalo() |
void |
setAutoresizeEnabled(boolean autoresizeFlag) |
void |
setDrawWithHalo(boolean drawWithHalo) |
void |
setFont(java.awt.Font font)
Establishes the font that will be used to render this ITextSymbol.
|
void |
setFontSize(double d)
Sets the font size currently set to this symbol
|
void |
setHaloColor(java.awt.Color haloColor) |
void |
setHaloWidth(float haloWidth) |
void |
setText(java.lang.String text)
Sets the text to be rendered by this symbol
|
void |
setTextColor(java.awt.Color color)
Sets the color of the text
|
draw, drawInsideRectangle, getColor, getDescription, getOnePointRgb, getPixExtentPlus, getSymbolForSelection, getSymbolType, isOneDotOrPixel, isShapeVisible, isSuitableFor, setColor, setDescription
print
static final java.lang.String SYMBOL_NAME
static final int SYMBOL_STYLE_ALIGNMENT_CENTERED
static final int SYMBOL_STYLE_ALIGNMENT_JUSTIFY
static final int SYMBOL_STYLE_ALIGNMENT_LEFT
static final int SYMBOL_STYLE_ALIGNMENT_RIGHT
java.awt.Rectangle getBounds()
java.awt.Font getFont()
java.awt.Color getHaloColor()
float getHaloWidth()
java.awt.Color getTextColor()
org.gvsig.fmap.geom.Geometry getTextWrappingShape(org.gvsig.fmap.geom.primitive.Point p)
p
- target locationboolean isAutoresizeEnabled()
boolean isDrawWithHalo()
void setAutoresizeEnabled(boolean autoresizeFlag)
void setDrawWithHalo(boolean drawWithHalo)
void setFont(java.awt.Font font)
font
- void setFontSize(double d)
d
- void setHaloColor(java.awt.Color haloColor)
void setHaloWidth(float haloWidth)
void setText(java.lang.String text)
text,
- a Stringvoid setTextColor(java.awt.Color color)
color
- Copyright © 2013 gvSIG Association. All rights reserved.