Class MultiLayerMarkerSymbol
java.lang.Object
org.gvsig.symbology.fmap.mapcontext.rendering.symbol.impl.AbstractCartographicSupport
org.gvsig.symbology.fmap.mapcontext.rendering.symbol.impl.AbstractSymbol
org.gvsig.symbology.fmap.mapcontext.rendering.symbol.marker.impl.AbstractMarkerSymbol
org.gvsig.symbology.fmap.mapcontext.rendering.symbol.marker.impl.MultiLayerMarkerSymbol
- All Implemented Interfaces:
Cloneable,org.gvsig.fmap.mapcontext.rendering.symbols.CartographicSupport,org.gvsig.fmap.mapcontext.rendering.symbols.IMultiLayerSymbol,org.gvsig.fmap.mapcontext.rendering.symbols.IPrintable,org.gvsig.fmap.mapcontext.rendering.symbols.ISymbol,org.gvsig.fmap.mapcontext.rendering.symbols.ISymbol_v2,org.gvsig.symbology.fmap.mapcontext.rendering.symbol.marker.IMarkerSymbol,org.gvsig.symbology.fmap.mapcontext.rendering.symbol.marker.IMarkerSymbol_v2,org.gvsig.symbology.fmap.mapcontext.rendering.symbol.marker.IMultiLayerMarkerSymbol,org.gvsig.tools.lang.Cloneable,org.gvsig.tools.persistence.Persistent
public class MultiLayerMarkerSymbol
extends AbstractMarkerSymbol
implements org.gvsig.symbology.fmap.mapcontext.rendering.symbol.marker.IMarkerSymbol, org.gvsig.fmap.mapcontext.rendering.symbols.IMultiLayerSymbol, org.gvsig.symbology.fmap.mapcontext.rendering.symbol.marker.IMultiLayerMarkerSymbol
MultiLayerMarkerSymbol allows to group several marker symbols
(xxxMarkerSymbol implementing IMarkerSymbol)in one and treat it as an only
one symbol.
- Author:
- gvSIG team
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classNested classes/interfaces inherited from interface org.gvsig.fmap.mapcontext.rendering.symbols.CartographicSupport
org.gvsig.fmap.mapcontext.rendering.symbols.CartographicSupport.CartographicContext -
Field Summary
FieldsFields inherited from class org.gvsig.symbology.fmap.mapcontext.rendering.symbol.marker.impl.AbstractMarkerSymbol
MARKER_SYMBOL_PERSISTENCE_DEFINITION_NAMEFields inherited from class org.gvsig.symbology.fmap.mapcontext.rendering.symbol.impl.AbstractSymbol
LOGGER, SYMBOL_PERSISTENCE_DEFINITION_NAMEFields inherited from interface org.gvsig.fmap.mapcontext.rendering.symbols.CartographicSupport
PAPER, WORLDFields inherited from interface org.gvsig.symbology.fmap.mapcontext.rendering.symbol.marker.IMarkerSymbol
CIRCLE_STYLE, CROSS_STYLE, DIAMOND_STYLE, HORIZONTAL_LINE_STYLE, SQUARE_STYLE, STAR_STYLE, SYMBOL_NAME, TRIANGLE_STYLE, VERTICAL_LINE_STYLE, X_STYLEFields inherited from interface org.gvsig.fmap.mapcontext.rendering.symbols.ISymbol
SELECTION_COLOR -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddLayer(org.gvsig.fmap.mapcontext.rendering.symbols.ISymbol newLayer) voidaddLayer(org.gvsig.fmap.mapcontext.rendering.symbols.ISymbol newLayer, int layerIndex) clone()voiddraw(Graphics2D g, AffineTransform affineTransform, org.gvsig.fmap.geom.Geometry geom, org.gvsig.fmap.dal.feature.Feature f, org.gvsig.tools.task.Cancellable cancel, Rectangle r) getColor()org.gvsig.fmap.mapcontext.rendering.symbols.ISymbolgetLayer(int layerIndex) intdoubledoublegetSize()org.gvsig.fmap.mapcontext.rendering.symbols.ISymbolbooleanisSuitableFor(org.gvsig.fmap.geom.Geometry geom) voidloadFromState(org.gvsig.tools.persistence.PersistentState state) voidprint(Graphics2D g, AffineTransform at, org.gvsig.fmap.geom.Geometry geom, org.gvsig.compat.print.PrintAttributes properties) booleanremoveLayer(org.gvsig.fmap.mapcontext.rendering.symbols.ISymbol layer) voidsaveToState(org.gvsig.tools.persistence.PersistentState state) voidsetAlpha(int alpha) voidvoidsetLayer(int index, org.gvsig.fmap.mapcontext.rendering.symbols.ISymbol layer) voidsetReferenceSystem(int system) voidsetRotation(double rotation) voidsetSize(double size) voidsetUnit(int unit) voidswapLayers(int index1, int index2) Methods inherited from class org.gvsig.symbology.fmap.mapcontext.rendering.symbol.marker.impl.AbstractMarkerSymbol
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, setSizeExpressionMethods inherited from class org.gvsig.symbology.fmap.mapcontext.rendering.symbol.impl.AbstractSymbol
cloneForSelection, cloneForSelection, draw, drawInsideRectangle, equals, getDescription, getFeature, getID, getRequiredFeatureAttributeNames, getSymbolForSelection, isShapeVisible, setDescription, setFeature, setID, setIsShapeVisibleMethods inherited from class org.gvsig.symbology.fmap.mapcontext.rendering.symbol.impl.AbstractCartographicSupport
copyCartographicContext, getCartographicContext, getReferenceSystem, getUnit, isInPixels, setCartographicContext, setCartographicContext, setCartographicContext, setCartographicContext, setCartographicContext, toCartographicUnitsMethods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.gvsig.fmap.mapcontext.rendering.symbols.CartographicSupport
copyCartographicContext, getCartographicContext, getReferenceSystem, getUnit, setCartographicContext, setCartographicContext, setCartographicContext, setCartographicContext, setCartographicContext, toCartographicUnitsMethods inherited from interface org.gvsig.symbology.fmap.mapcontext.rendering.symbol.marker.IMarkerSymbol
getMask, getOffset, setMask, setOffsetMethods inherited from interface org.gvsig.fmap.mapcontext.rendering.symbols.ISymbol
draw, drawInsideRectangle, getDescription, getFeature, getID, getSymbolForSelection, getSymbolType, isShapeVisible, setDescription, setFeature, setID
-
Field Details
-
MULTILAYER_MARKER_SYMBOL_PERSISTENCE_DEFINITION_NAME
- See Also:
-
-
Constructor Details
-
MultiLayerMarkerSymbol
public MultiLayerMarkerSymbol()
-
-
Method Details
-
getColor
- Specified by:
getColorin interfaceorg.gvsig.symbology.fmap.mapcontext.rendering.symbol.marker.IMarkerSymbol- Specified by:
getColorin interfaceorg.gvsig.fmap.mapcontext.rendering.symbols.ISymbol- Overrides:
getColorin classAbstractMarkerSymbol
-
getRotation
public double getRotation()- Specified by:
getRotationin interfaceorg.gvsig.symbology.fmap.mapcontext.rendering.symbol.marker.IMarkerSymbol- Overrides:
getRotationin classAbstractMarkerSymbol
-
setColor
- Specified by:
setColorin interfaceorg.gvsig.symbology.fmap.mapcontext.rendering.symbol.marker.IMarkerSymbol- Specified by:
setColorin interfaceorg.gvsig.fmap.mapcontext.rendering.symbols.ISymbol- Overrides:
setColorin classAbstractMarkerSymbol
-
setRotation
public void setRotation(double rotation) - Specified by:
setRotationin interfaceorg.gvsig.symbology.fmap.mapcontext.rendering.symbol.marker.IMarkerSymbol- Overrides:
setRotationin classAbstractMarkerSymbol
-
getSize
public double getSize()- Specified by:
getSizein interfaceorg.gvsig.symbology.fmap.mapcontext.rendering.symbol.marker.IMarkerSymbol- Overrides:
getSizein classAbstractMarkerSymbol
-
setSize
public void setSize(double size) - Specified by:
setSizein interfaceorg.gvsig.symbology.fmap.mapcontext.rendering.symbol.marker.IMarkerSymbol- Overrides:
setSizein classAbstractMarkerSymbol
-
draw
public void draw(Graphics2D g, AffineTransform affineTransform, org.gvsig.fmap.geom.Geometry geom, org.gvsig.fmap.dal.feature.Feature f, org.gvsig.tools.task.Cancellable cancel, Rectangle r) - Specified by:
drawin interfaceorg.gvsig.fmap.mapcontext.rendering.symbols.ISymbol
-
getSymbolForSelection
public org.gvsig.fmap.mapcontext.rendering.symbols.ISymbol getSymbolForSelection()- Specified by:
getSymbolForSelectionin interfaceorg.gvsig.fmap.mapcontext.rendering.symbols.ISymbol- Overrides:
getSymbolForSelectionin classorg.gvsig.symbology.fmap.mapcontext.rendering.symbol.impl.AbstractSymbol
-
isSuitableFor
public boolean isSuitableFor(org.gvsig.fmap.geom.Geometry geom) - Specified by:
isSuitableForin interfaceorg.gvsig.fmap.mapcontext.rendering.symbols.ISymbol- Overrides:
isSuitableForin classAbstractMarkerSymbol
-
getClassName
-
print
public void print(Graphics2D g, AffineTransform at, org.gvsig.fmap.geom.Geometry geom, org.gvsig.compat.print.PrintAttributes properties) - Specified by:
printin interfaceorg.gvsig.fmap.mapcontext.rendering.symbols.IPrintable- Overrides:
printin classorg.gvsig.symbology.fmap.mapcontext.rendering.symbol.impl.AbstractSymbol
-
setLayer
public void setLayer(int index, org.gvsig.fmap.mapcontext.rendering.symbols.ISymbol layer) throws IndexOutOfBoundsException - Specified by:
setLayerin interfaceorg.gvsig.fmap.mapcontext.rendering.symbols.IMultiLayerSymbol- Throws:
IndexOutOfBoundsException
-
swapLayers
public void swapLayers(int index1, int index2) - Specified by:
swapLayersin interfaceorg.gvsig.fmap.mapcontext.rendering.symbols.IMultiLayerSymbol
-
getLayer
public org.gvsig.fmap.mapcontext.rendering.symbols.ISymbol getLayer(int layerIndex) - Specified by:
getLayerin interfaceorg.gvsig.fmap.mapcontext.rendering.symbols.IMultiLayerSymbol
-
getLayerCount
public int getLayerCount()- Specified by:
getLayerCountin interfaceorg.gvsig.fmap.mapcontext.rendering.symbols.IMultiLayerSymbol
-
addLayer
public void addLayer(org.gvsig.fmap.mapcontext.rendering.symbols.ISymbol newLayer) - Specified by:
addLayerin interfaceorg.gvsig.fmap.mapcontext.rendering.symbols.IMultiLayerSymbol
-
addLayer
public void addLayer(org.gvsig.fmap.mapcontext.rendering.symbols.ISymbol newLayer, int layerIndex) throws IndexOutOfBoundsException - Specified by:
addLayerin interfaceorg.gvsig.fmap.mapcontext.rendering.symbols.IMultiLayerSymbol- Throws:
IndexOutOfBoundsException
-
removeLayer
public boolean removeLayer(org.gvsig.fmap.mapcontext.rendering.symbols.ISymbol layer) - Specified by:
removeLayerin interfaceorg.gvsig.fmap.mapcontext.rendering.symbols.IMultiLayerSymbol
-
setUnit
public void setUnit(int unit) - Specified by:
setUnitin interfaceorg.gvsig.fmap.mapcontext.rendering.symbols.CartographicSupport- Overrides:
setUnitin classorg.gvsig.symbology.fmap.mapcontext.rendering.symbol.impl.AbstractCartographicSupport
-
setReferenceSystem
public void setReferenceSystem(int system) - Specified by:
setReferenceSystemin interfaceorg.gvsig.fmap.mapcontext.rendering.symbols.CartographicSupport- Overrides:
setReferenceSystemin classorg.gvsig.symbology.fmap.mapcontext.rendering.symbol.impl.AbstractCartographicSupport
-
setAlpha
public void setAlpha(int alpha) - Specified by:
setAlphain interfaceorg.gvsig.symbology.fmap.mapcontext.rendering.symbol.marker.IMarkerSymbol- Overrides:
setAlphain classAbstractMarkerSymbol
-
clone
- Specified by:
clonein interfaceorg.gvsig.tools.lang.Cloneable- Overrides:
clonein classAbstractMarkerSymbol- Throws:
CloneNotSupportedException
-
loadFromState
public void loadFromState(org.gvsig.tools.persistence.PersistentState state) throws org.gvsig.tools.persistence.exception.PersistenceException - Specified by:
loadFromStatein interfaceorg.gvsig.tools.persistence.Persistent- Overrides:
loadFromStatein classAbstractMarkerSymbol- Throws:
org.gvsig.tools.persistence.exception.PersistenceException
-
saveToState
public void saveToState(org.gvsig.tools.persistence.PersistentState state) throws org.gvsig.tools.persistence.exception.PersistenceException - Specified by:
saveToStatein interfaceorg.gvsig.tools.persistence.Persistent- Overrides:
saveToStatein classAbstractMarkerSymbol- Throws:
org.gvsig.tools.persistence.exception.PersistenceException
-