public interface IStyle extends Persistent, Cloneable
| Modifier and Type | Method and Description |
|---|---|
void |
drawInsideRectangle(java.awt.Graphics2D g,
java.awt.Rectangle r)
Useful to render the symbol inside the TOC, or inside little
rectangles.
|
void |
drawOutline(java.awt.Graphics2D g,
java.awt.Rectangle r)
Used to show an outline of the style to graphically show its properties.
|
java.lang.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(java.lang.String desc)
Defines the description of a symbol.It will be specified with an
string.
|
loadFromState, saveToStateclone, cloneQuietly, cloneQuietlyvoid setDescription(java.lang.String desc)
desc,String - java.lang.String getDescription()
void drawInsideRectangle(java.awt.Graphics2D g,
java.awt.Rectangle r)
throws SymbolDrawingException
g - Graphics2Dr - RectangleSymbolDrawingExceptionboolean isSuitableFor(ISymbol symbol)
symbol - ISymbolvoid drawOutline(java.awt.Graphics2D g,
java.awt.Rectangle r)
throws SymbolDrawingException
g, - the Graphics2D where to drawr, - the bounds of the style inside such Graphics2DSymbolDrawingException