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.lang.String |
getText()
Deprecated.
?do i need it?
|
java.awt.Color |
getTextColor()
Returns the currently color set to be applied to the text
|
Geometry |
getTextWrappingShape(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, draw, drawInsideRectangle, getColor, getDescription, getFeature, getID, getSymbolForSelection, getSymbolForSelection, getSymbolType, isShapeVisible, isSuitableFor, setColor, setDescription, setFeature, setID
loadFromState, saveToState
print
clone, cloneQuietly, cloneQuietly
static final java.lang.String SYMBOL_NAME
static final int SYMBOL_STYLE_ALIGNMENT_LEFT
static final int SYMBOL_STYLE_ALIGNMENT_RIGHT
static final int SYMBOL_STYLE_ALIGNMENT_CENTERED
static final int SYMBOL_STYLE_ALIGNMENT_JUSTIFY
void setFont(java.awt.Font font)
font
- java.awt.Font getFont()
java.awt.Color getTextColor()
void setTextColor(java.awt.Color color)
color
- java.lang.String getText()
void setText(java.lang.String text)
text,
- a Stringvoid setFontSize(double d)
d
- Geometry getTextWrappingShape(Point p)
p
- target locationjava.awt.Rectangle getBounds()
void setAutoresizeEnabled(boolean autoresizeFlag)
boolean isAutoresizeEnabled()
java.awt.Color getHaloColor()
void setHaloColor(java.awt.Color haloColor)
float getHaloWidth()
void setHaloWidth(float haloWidth)
boolean isDrawWithHalo()
void setDrawWithHalo(boolean drawWithHalo)