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 String |
WARNING_SYMBOL_PERSISTENCE_DEFINITION_NAME |
MULTI_SHAPE_SYMBOL_PERSISTENCE_DEFINITION_NAME, SYMBOL_NAME
SYMBOL_NAME
SELECTION_COLOR
CIRCLE_STYLE, CROSS_STYLE, DIAMOND_STYLE, SQUARE_STYLE, STAR_STYLE, TRIANGLE_STYLE, VERTICAL_LINE_STYLE, X_STYLE
PAPER, WORLD
Constructor and Description |
---|
WarningSymbol()
Empty constructor, only used in persistence.
|
WarningSymbol(String message,
String symbolDesc,
int symbolDrawExceptionType) |
Modifier and Type | Method and Description |
---|---|
Object |
clone()
Creates a copy of the object.
|
void |
draw(Graphics2D g,
AffineTransform affineTransform,
Geometry geom,
Cancellable cancel) |
void |
drawInsideRectangle(Graphics2D g,
AffineTransform scaleInstance,
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(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, toCartographicSize
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
setDescription
draw, getColor, getDescription, getOnePointRgb, getPixExtentPlus, getSymbolForSelection, getSymbolType, isOneDotOrPixel, isShapeVisible, isSuitableFor, setColor
print
public static final String WARNING_SYMBOL_PERSISTENCE_DEFINITION_NAME
public WarningSymbol()
public void draw(Graphics2D g, AffineTransform affineTransform, Geometry geom, Cancellable cancel)
public void setDrawExceptionType(int symbolDrawExceptionType)
setDrawExceptionType
in interface IWarningSymbol
public void setMessage(String message)
setMessage
in interface IWarningSymbol
public void drawInsideRectangle(Graphics2D g, AffineTransform scaleInstance, Rectangle r, PrintAttributes properties) throws SymbolDrawingException
ISymbol
drawInsideRectangle
in interface ISymbol
drawInsideRectangle
in class MultiShapeSymbol
properties
- TODOSymbolDrawingException
- TODOpublic Object clone() throws CloneNotSupportedException
Cloneable
clone
in class MultiShapeSymbol
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
Persistent
loadFromState
in interface Persistent
loadFromState
in class MultiShapeSymbol
PersistenceException
public void saveToState(PersistentState state) throws PersistenceException
Persistent
saveToState
in interface Persistent
saveToState
in class MultiShapeSymbol
PersistenceException