public class WarningSymbol extends MultiShapeSymbol implements IWarningSymbol
| Modifier and Type | Class and Description |
|---|---|
static class |
WarningSymbol.RegisterPersistence |
static class |
WarningSymbol.RegisterSymbol |
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
WARNING_SYMBOL_PERSISTENCE_DEFINITION_NAME |
MULTI_SHAPE_SYMBOL_PERSISTENCE_DEFINITION_NAME, SYMBOL_NAMESYMBOL_NAMESELECTION_COLORCIRCLE_STYLE, CROSS_STYLE, DIAMOND_STYLE, SQUARE_STYLE, STAR_STYLE, TRIANGLE_STYLE, VERTICAL_LINE_STYLE, X_STYLEPAPER, WORLD| Constructor and Description |
|---|
WarningSymbol()
Empty constructor, only used in persistence.
|
WarningSymbol(java.lang.String message,
java.lang.String symbolDesc,
int symbolDrawExceptionType) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
clone()
Creates a copy of the object.
|
void |
draw(java.awt.Graphics2D g,
java.awt.geom.AffineTransform affineTransform,
Geometry geom,
Cancellable cancel) |
void |
drawInsideRectangle(java.awt.Graphics2D g,
java.awt.geom.AffineTransform scaleInstance,
java.awt.Rectangle r,
PrintAttributes properties)
Useful to render the symbol inside the TOC, or inside little
rectangles.
|
void |
loadFromState(PersistentState state)
Set the state of the object from the state passed as parameter.
|
void |
saveToState(PersistentState state)
Saves the internal state of the object on the provided
PersistentState object.
|
void |
setDrawExceptionType(int symbolDrawExceptionType) |
void |
setMessage(java.lang.String message) |
draw, getAlpha, getCartographicSize, getColor, getDescription, getFillAlpha, getFillColor, getFillSymbol, getLineColor, getLineStyle, getLineSymbol, getLineWidth, getMarkerSymbol, getMask, getOffset, getOnePointRgb, getOutline, getPixExtentPlus, getReferenceSystem, getRotation, getSize, getSymbolForSelection, getSymbolType, getUnit, hasFill, hasOutline, isOneDotOrPixel, isShapeVisible, isSuitableFor, print, setAlpha, setCartographicSize, setColor, setDescription, setFillColor, setFillSymbol, setHasFill, setHasOutline, setLineColor, setLineStyle, setLineSymbol, setLineWidth, setMarkerSymbol, setMask, setOffset, setOutline, setReferenceSystem, setRotation, setSize, setUnit, toCartographicSizeequals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsetDescriptiondraw, getColor, getDescription, getOnePointRgb, getPixExtentPlus, getSymbolForSelection, getSymbolType, isOneDotOrPixel, isShapeVisible, isSuitableFor, setColorprintpublic static final java.lang.String WARNING_SYMBOL_PERSISTENCE_DEFINITION_NAME
public WarningSymbol()
public WarningSymbol(java.lang.String message,
java.lang.String symbolDesc,
int symbolDrawExceptionType)
public void draw(java.awt.Graphics2D g,
java.awt.geom.AffineTransform affineTransform,
Geometry geom,
Cancellable cancel)
public void setDrawExceptionType(int symbolDrawExceptionType)
setDrawExceptionType in interface IWarningSymbolpublic void setMessage(java.lang.String message)
setMessage in interface IWarningSymbolpublic void drawInsideRectangle(java.awt.Graphics2D g,
java.awt.geom.AffineTransform scaleInstance,
java.awt.Rectangle r,
PrintAttributes properties)
throws SymbolDrawingException
ISymboldrawInsideRectangle in interface ISymboldrawInsideRectangle in class MultiShapeSymbolproperties - TODOSymbolDrawingException - TODOpublic java.lang.Object clone()
throws java.lang.CloneNotSupportedException
Cloneableclone in class MultiShapeSymboljava.lang.CloneNotSupportedException - if the instance of the object cannot
be cloned. As this is extending Cloneable so
its sure it implements it, so this exception may be used for problems
on specific object instances.Object#clone()}.public void loadFromState(PersistentState state) throws PersistenceException
PersistentloadFromState in interface PersistentloadFromState in class MultiShapeSymbolPersistenceExceptionpublic void saveToState(PersistentState state) throws PersistenceException
PersistentsaveToState in interface PersistentsaveToState in class MultiShapeSymbolPersistenceException