public class MultiLayerMarkerSymbol extends AbstractMarkerSymbol implements IMarkerSymbol, IMultiLayerSymbol, IMultiLayerMarkerSymbol
| Modifier and Type | Class and Description |
|---|---|
static class |
MultiLayerMarkerSymbol.RegisterPersistence |
static class |
MultiLayerMarkerSymbol.RegisterSymbol |
CartographicSupport.CartographicContext| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
MULTILAYER_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_STYLEPAPER, WORLDSELECTION_COLOR| Constructor and Description |
|---|
MultiLayerMarkerSymbol() |
| Modifier and Type | Method and Description |
|---|---|
void |
addLayer(ISymbol newLayer)
Stacks a new symbol to the symbol list.
|
void |
addLayer(ISymbol newLayer,
int layerIndex)
Stacks a new symbol to the symbol list.
|
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.lang.String |
getClassName() |
java.awt.Color |
getColor()
Returns the color of the marker symbol.
|
ISymbol |
getLayer(int layerIndex)
Obtains the symbol that "contains" a layer whose index is the argument of the method.
|
int |
getLayerCount()
Returns the number of layers
|
double |
getRotation()
Returns the rotation (in radians, counter-clockwise) of the marker symbol
|
double |
getSize()
Obtains the size of a marker symbol
|
ISymbol |
getSymbolForSelection()
Returns the derived version of the symbol that will be used to draw the
feature when it is selected.
|
boolean |
isSuitableFor(Geometry geom)
True if this symbol is ok for the geometry.
|
void |
loadFromState(PersistentState state)
Set the state of the object from the state passed as parameter.
|
void |
print(java.awt.Graphics2D g,
java.awt.geom.AffineTransform at,
Geometry geom,
PrintAttributes properties) |
boolean |
removeLayer(ISymbol layer)
TODO maybe push it up to ISymbol
|
void |
saveToState(PersistentState state)
Saves the internal state of the object on the provided
PersistentState object.
|
void |
setAlpha(int alpha)
Defines the transparency of a line symbol.
|
void |
setColor(java.awt.Color color)
Establishes a color for the marker symbol
|
void |
setLayer(int index,
ISymbol layer)
Establishes a concret symbol for a layer
|
void |
setReferenceSystem(int system)
Sets the Reference System that defines how this units have to be
handled.
|
void |
setRotation(double rotation)
Sets the rotation of the marker symbol
|
void |
setSize(double size)
Sets the size of marker symbol
|
void |
setUnit(int unit)
Defines the unit used to express measures.
|
void |
swapLayers(int index1,
int index2)
Changes the position of two layers in a multilayersymbol
|
getAdjustedSize, getCartographicSize, getEfectiveLineToOffsetColor, getEfectiveOffset, getEfectiveRotationInDegres, getEfectiveRotationInRadians, getEfectiveSize, getLineToOffsetColor, getLineToOffsetColorExpression, getMask, getOffset, getOffsetXExpression, getOffsetYExpression, getPoint, getRotationExpression, getRotationInDegrees, getRotationInRadians, getSampleGeometry, getSizeExpression, getSymbolTable, getSymbolType, isDrawLineToOffset, setDrawLineToOffset, setLineToOffsetColor, setLineToOffsetColorExpression, setMask, setOffset, setOffsetXExpression, setOffsetYExpression, setRotationExpression, setRotationInDegrees, setRotationInRadians, setSizeExpressioncloneForSelection, cloneForSelection, draw, drawInsideRectangle, equals, getDescription, getFeature, getID, getRequiredFeatureAttributeNames, getSymbolForSelection, isShapeVisible, setDescription, setFeature, setID, setIsShapeVisiblecopyCartographicContext, getCartographicContext, getReferenceSystem, getUnit, isInPixels, setCartographicContext, setCartographicContext, setCartographicContext, setCartographicContext, setCartographicContext, toCartographicUnitsfinalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetMask, getOffset, setMask, setOffsetcopyCartographicContext, copyCartographicContext, getCartographicContext, getReferenceSystem, getUnit, setCartographicContext, setCartographicContext, setCartographicContext, setCartographicContext, setCartographicContext, toCartographicUnitsdraw, drawInsideRectangle, getDescription, getFeature, getID, getSymbolForSelection, getSymbolType, isShapeVisible, setDescription, setFeature, setIDcloneQuietly, cloneQuietlypublic static final java.lang.String MULTILAYER_MARKER_SYMBOL_PERSISTENCE_DEFINITION_NAME
public java.awt.Color getColor()
IMarkerSymbolgetColor in interface ISymbolgetColor in interface IMarkerSymbolgetColor in class AbstractMarkerSymbolpublic double getRotation()
IMarkerSymbolgetRotation in interface IMarkerSymbolgetRotation in class AbstractMarkerSymbolpublic void setColor(java.awt.Color color)
IMarkerSymbolsetColor in interface ISymbolsetColor in interface IMarkerSymbolsetColor in class AbstractMarkerSymbolcolor - to render the symbolpublic void setRotation(double rotation)
IMarkerSymbolsetRotation in interface IMarkerSymbolsetRotation in class AbstractMarkerSymbolpublic double getSize()
IMarkerSymbolgetSize in interface IMarkerSymbolgetSize in class AbstractMarkerSymbolpublic void setSize(double size)
IMarkerSymbolsetSize in interface IMarkerSymbolsetSize in class AbstractMarkerSymbolpublic void draw(java.awt.Graphics2D g,
java.awt.geom.AffineTransform affineTransform,
Geometry geom,
Feature f,
Cancellable cancel,
java.awt.Rectangle r)
public ISymbol getSymbolForSelection()
ISymbolgetSymbolForSelection in interface ISymbolgetSymbolForSelection in class AbstractSymbolpublic boolean isSuitableFor(Geometry geom)
ISymbolisSuitableFor in interface ISymbolisSuitableFor in class AbstractMarkerSymbolpublic java.lang.String getClassName()
public void print(java.awt.Graphics2D g,
java.awt.geom.AffineTransform at,
Geometry geom,
PrintAttributes properties)
print in interface IPrintableprint in class AbstractSymbolpublic void setLayer(int index,
ISymbol layer)
throws java.lang.IndexOutOfBoundsException
IMultiLayerSymbolsetLayer in interface IMultiLayerSymboljava.lang.IndexOutOfBoundsExceptionpublic void swapLayers(int index1,
int index2)
IMultiLayerSymbolswapLayers in interface IMultiLayerSymbolpublic ISymbol getLayer(int layerIndex)
IMultiLayerSymbolgetLayer in interface IMultiLayerSymbolpublic int getLayerCount()
IMultiLayerSymbolgetLayerCount in interface IMultiLayerSymbolpublic void addLayer(ISymbol newLayer)
IMultiLayerSymboladdLayer in interface IMultiLayerSymbolpublic void addLayer(ISymbol newLayer, int layerIndex) throws java.lang.IndexOutOfBoundsException
IMultiLayerSymboladdLayer in interface IMultiLayerSymboljava.lang.IndexOutOfBoundsExceptionpublic boolean removeLayer(ISymbol layer)
IMultiLayerSymbolremoveLayer in interface IMultiLayerSymbolpublic void setUnit(int unit)
CartographicSupportsetUnit in interface CartographicSupportsetUnit in class AbstractCartographicSupportpublic void setReferenceSystem(int system)
CartographicSupportsetReferenceSystem in interface CartographicSupportsetReferenceSystem in class AbstractCartographicSupportpublic void setAlpha(int alpha)
IMarkerSymbolsetAlpha in interface IMarkerSymbolsetAlpha in class AbstractMarkerSymbolpublic 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 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