public class SimpleMarkerSymbol extends AbstractMarkerSymbol implements ISimpleMarkerSymbol
| Modifier and Type | Class and Description |
|---|---|
static class |
SimpleMarkerSymbol.RegisterPersistence |
static class |
SimpleMarkerSymbol.RegisterSymbol |
CartographicSupport.CartographicContext| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
SIMPLE_MARKER_SYMBOL_PERSISTENCE_DEFINITION_NAME |
MARKER_SYMBOL_PERSISTENCE_DEFINITION_NAMELOGGER, SYMBOL_PERSISTENCE_DEFINITION_NAMECIRCLE_STYLE, CROSS_STYLE, DIAMOND_STYLE, HORIZONTAL_LINE_STYLE, SQUARE_STYLE, STAR_STYLE, SYMBOL_NAME, TRIANGLE_STYLE, VERTICAL_LINE_STYLE, X_STYLESELECTION_COLORPAPER, WORLD| Constructor and Description |
|---|
SimpleMarkerSymbol() |
| 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,
Feature f,
Cancellable cancel,
java.awt.Rectangle r) |
java.awt.Color |
getOutlineColor()
Returns the outline color for the symple marker symbol
|
double |
getOutlineSize()
Gets the size of the outline for the simple marker symbol
|
ISymbol |
getSelectionSymbol() |
int |
getStyle()
Obtains the style for the simple marker symbol
|
ISymbol |
getSymbolForSelection(java.awt.Color selectionColor) |
boolean |
hasOutline()
Returns true or false depending if the simple marker symbol has an outline or not.
|
boolean |
isOutlined()
Returns if the marker symbol should be drawn outlined.
|
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 |
setOutlineColor(java.awt.Color outlineColor)
Sets the outline color for the simple marker symbol
|
void |
setOutlined(boolean outlined)
Establishes the outline for the simple marker symbol.
|
void |
setOutlineSize(double outlineSize)
Establishes the size for the outline of the simple marker symbol
|
void |
setSelectionSymbol(ISymbol selectionSymbol) |
void |
setStyle(int style)
Sets the style for the simple marker symbol
|
getAdjustedSize, getCartographicSize, getColor, getEfectiveLineToOffsetColor, getEfectiveOffset, getEfectiveRotationInDegres, getEfectiveRotationInRadians, getEfectiveSize, getLineToOffsetColor, getLineToOffsetColorExpression, getMask, getOffset, getOffsetXExpression, getOffsetYExpression, getPoint, getRotation, getRotationExpression, getRotationInDegrees, getRotationInRadians, getSampleGeometry, getSize, getSizeExpression, getSymbolTable, getSymbolType, isDrawLineToOffset, isSuitableFor, setAlpha, setColor, setDrawLineToOffset, setLineToOffsetColor, setLineToOffsetColorExpression, setMask, setOffset, setOffsetXExpression, setOffsetYExpression, setRotation, setRotationExpression, setRotationInDegrees, setRotationInRadians, setSize, setSizeExpressioncloneForSelection, cloneForSelection, draw, drawInsideRectangle, equals, getDescription, getFeature, getID, getRequiredFeatureAttributeNames, getSymbolForSelection, isShapeVisible, print, setDescription, setFeature, setID, setIsShapeVisiblecopyCartographicContext, getCartographicContext, getReferenceSystem, getUnit, isInPixels, setCartographicContext, setCartographicContext, setCartographicContext, setCartographicContext, setCartographicContext, setReferenceSystem, setUnit, toCartographicUnitsfinalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetColor, getMask, getOffset, getRotation, getSize, setAlpha, setColor, setMask, setOffset, setRotation, setSizedraw, drawInsideRectangle, getDescription, getFeature, getID, getSymbolForSelection, getSymbolType, isShapeVisible, isSuitableFor, setDescription, setFeature, setIDprintcloneQuietly, cloneQuietlycopyCartographicContext, copyCartographicContext, getCartographicContext, getReferenceSystem, getUnit, setCartographicContext, setCartographicContext, setCartographicContext, setCartographicContext, setCartographicContext, setReferenceSystem, setUnit, toCartographicUnitspublic static final java.lang.String SIMPLE_MARKER_SYMBOL_PERSISTENCE_DEFINITION_NAME
public ISymbol getSymbolForSelection(java.awt.Color selectionColor)
getSymbolForSelection in interface ISymbolgetSymbolForSelection in class AbstractSymbolpublic void draw(java.awt.Graphics2D g,
java.awt.geom.AffineTransform affineTransform,
Geometry geom,
Feature f,
Cancellable cancel,
java.awt.Rectangle r)
public boolean hasOutline()
hasOutline in interface ISimpleMarkerSymbolpublic void setOutlined(boolean outlined)
setOutlined in interface ISimpleMarkerSymboloutline - The outline to set.public java.awt.Color getOutlineColor()
getOutlineColor in interface ISimpleMarkerSymbolpublic void setOutlineColor(java.awt.Color outlineColor)
setOutlineColor in interface ISimpleMarkerSymboloutlineColor, - Colorpublic double getOutlineSize()
getOutlineSize in interface ISimpleMarkerSymbolpublic void setOutlineSize(double outlineSize)
setOutlineSize in interface ISimpleMarkerSymboloutlineSize - The outlineSize to set.public ISymbol getSelectionSymbol()
getSelectionSymbol in interface ISimpleMarkerSymbolpublic void setSelectionSymbol(ISymbol selectionSymbol)
setSelectionSymbol in interface ISimpleMarkerSymbolselectionSymbol - The selectionSymbol to set.public void setStyle(int style)
setStyle in interface ISimpleMarkerSymbolstyle - public int getStyle()
getStyle in interface ISimpleMarkerSymbolpublic java.lang.Object clone()
throws java.lang.CloneNotSupportedException
Cloneableclone in class AbstractMarkerSymboljava.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 boolean isOutlined()
isOutlined in interface ISimpleMarkerSymbolpublic void loadFromState(PersistentState state) throws PersistenceException
PersistentloadFromState in interface PersistentloadFromState in class AbstractMarkerSymbolPersistenceExceptionpublic void saveToState(PersistentState state) throws PersistenceException
PersistentsaveToState in interface PersistentsaveToState in class AbstractMarkerSymbolPersistenceException