public interface IStyle extends Persistent, Cloneable
Modifier and Type | Method and Description |
---|---|
void |
drawInsideRectangle(Graphics2D g,
Rectangle r)
Useful to render the symbol inside the TOC, or inside little
rectangles.
|
void |
drawOutline(Graphics2D g,
Rectangle r)
Used to show an outline of the style to graphically show its properties.
|
String |
getDescription()
Returns the description of a symbol
|
boolean |
isSuitableFor(ISymbol symbol)
True if this symbol is ok for the style or class.
|
void |
setDescription(String desc)
Defines the description of a symbol.It will be specified with an
string.
|
loadFromState, saveToState
void setDescription(String desc)
desc,String
- String getDescription()
void drawInsideRectangle(Graphics2D g, Rectangle r) throws SymbolDrawingException
g
- Graphics2Dr
- RectangleSymbolDrawingException
boolean isSuitableFor(ISymbol symbol)
symbol
- ISymbolvoid drawOutline(Graphics2D g, Rectangle r) throws SymbolDrawingException
g,
- the Graphics2D where to drawr,
- the bounds of the style inside such Graphics2DSymbolDrawingException