public class WarningSymbol extends MultiShapeSymbol implements IWarningSymbol
| Modifier and Type | Class and Description |
|---|---|
static class |
WarningSymbol.RegisterPersistence |
static class |
WarningSymbol.RegisterSymbol |
CartographicSupport.CartographicContext| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
WARNING_SYMBOL_PERSISTENCE_DEFINITION_NAME |
MULTI_SHAPE_SYMBOL_PERSISTENCE_DEFINITION_NAME, SYMBOL_NAMELOGGER, SYMBOL_PERSISTENCE_DEFINITION_NAMESYMBOL_NAMESELECTION_COLORCIRCLE_STYLE, CROSS_STYLE, DIAMOND_STYLE, HORIZONTAL_LINE_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)
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, getColor, getFillAlpha, getFillColor, getFillSymbol, getLineColor, getLineStyle, getLineSymbol, getLineWidth, getMarkerSymbol, getMask, getOffset, getOutline, getReferenceSystem, getRotation, getSize, getSymbolForSelection, getSymbolType, getUnit, hasFill, hasOutline, isShapeVisible, isSuitableFor, setAlpha, setColor, setFillColor, setFillSymbol, setHasFill, setHasOutline, setLineColor, setLineStyle, setLineSymbol, setLineWidth, setMarkerSymbol, setMask, setOffset, setOutline, setReferenceSystem, setRotation, setSize, setUnitcloneForSelection, cloneForSelection, draw, equals, getDescription, getFeature, getID, getRequiredFeatureAttributeNames, getSymbolForSelection, print, setDescription, setFeature, setID, setIsShapeVisiblecopyCartographicContext, getCartographicContext, isInPixels, setCartographicContext, setCartographicContext, setCartographicContext, setCartographicContext, setCartographicContext, toCartographicUnitsfinalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsetDescriptiondraw, draw, getColor, getDescription, getFeature, getID, getSymbolForSelection, getSymbolForSelection, getSymbolType, isShapeVisible, isSuitableFor, setColor, setFeature, setIDprintcloneQuietly, cloneQuietlycopyCartographicContext, copyCartographicContext, getCartographicContext, setCartographicContext, setCartographicContext, setCartographicContext, setCartographicContext, setCartographicContext, toCartographicUnitspublic 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)
throws SymbolDrawingException
ISymboldrawInsideRectangle in interface ISymboldrawInsideRectangle in class AbstractSymbolSymbolDrawingException - 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