Class MultiLayerFillSymbol
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.fill.impl.AbstractFillSymbol
org.gvsig.symbology.fmap.mapcontext.rendering.symbol.fill.impl.MultiLayerFillSymbol
- 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.fill.IFillSymbol,org.gvsig.symbology.fmap.mapcontext.rendering.symbol.fill.IMultiLayerFillSymbol,org.gvsig.tools.lang.Cloneable,org.gvsig.tools.persistence.Persistent
public class MultiLayerFillSymbol
extends AbstractFillSymbol
implements org.gvsig.symbology.fmap.mapcontext.rendering.symbol.fill.IFillSymbol, org.gvsig.fmap.mapcontext.rendering.symbols.IMultiLayerSymbol, org.gvsig.symbology.fmap.mapcontext.rendering.symbol.fill.IMultiLayerFillSymbol
MultiLayerFillSymbol is a symbol which allows to group several kind of fill symbols
(xxxFillSymbol implementing IFillSymbol)in one and treats it like single symbol.
- Author:
- 2009- César Ordiñana - 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.fill.impl.AbstractFillSymbol
FILL_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.fill.IFillSymbol
SYMBOL_NAMEFields 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) intReturns the transparency of the multi layer fill symbol createdorg.gvsig.fmap.mapcontext.rendering.symbols.ISymbolgetLayer(int layerIndex) intorg.gvsig.symbology.fmap.mapcontext.rendering.symbol.line.ILineSymbolorg.gvsig.fmap.mapcontext.rendering.symbols.ISymbolintbooleanisSuitableFor(org.gvsig.fmap.geom.Geometry geom) voidloadFromState(org.gvsig.tools.persistence.PersistentState state) booleanremoveLayer(org.gvsig.fmap.mapcontext.rendering.symbols.ISymbol layer) voidsaveToState(org.gvsig.tools.persistence.PersistentState state) voidsetFillColor(Color color) voidsetLayer(int index, org.gvsig.fmap.mapcontext.rendering.symbols.ISymbol layer) voidsetOutline(org.gvsig.symbology.fmap.mapcontext.rendering.symbol.line.ILineSymbol outline) voidsetReferenceSystem(int system) voidsetUnit(int unitIndex) voidswapLayers(int index1, int index2) Methods inherited from class org.gvsig.symbology.fmap.mapcontext.rendering.symbol.fill.impl.AbstractFillSymbol
getCartographicSize, getColor, getSampleGeometry, hasFill, hasOutline, setCartographicSize, setColor, setHasFill, setHasOutline, toCartographicSizeMethods inherited from class org.gvsig.symbology.fmap.mapcontext.rendering.symbol.impl.AbstractSymbol
cloneForSelection, cloneForSelection, draw, drawInsideRectangle, equals, getDescription, getFeature, getID, getRequiredFeatureAttributeNames, getSymbolForSelection, isShapeVisible, print, 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.fill.IFillSymbol
hasFill, hasOutline, setHasFill, setHasOutlineMethods inherited from interface org.gvsig.fmap.mapcontext.rendering.symbols.IPrintable
printMethods inherited from interface org.gvsig.fmap.mapcontext.rendering.symbols.ISymbol
draw, drawInsideRectangle, getColor, getDescription, getFeature, getID, getSymbolForSelection, isShapeVisible, setColor, setDescription, setFeature, setID
-
Field Details
-
MULTILAYER_FILL_SYMBOL_PERSISTENCE_DEFINITION_NAME
- See Also:
-
-
Constructor Details
-
MultiLayerFillSymbol
public MultiLayerFillSymbol()
-
-
Method Details
-
getFillColor
- Specified by:
getFillColorin interfaceorg.gvsig.symbology.fmap.mapcontext.rendering.symbol.fill.IFillSymbol- Overrides:
getFillColorin classAbstractFillSymbol
-
getOutline
public org.gvsig.symbology.fmap.mapcontext.rendering.symbol.line.ILineSymbol getOutline()- Specified by:
getOutlinein interfaceorg.gvsig.symbology.fmap.mapcontext.rendering.symbol.fill.IFillSymbol- Overrides:
getOutlinein classAbstractFillSymbol
-
isSuitableFor
public boolean isSuitableFor(org.gvsig.fmap.geom.Geometry geom) - Specified by:
isSuitableForin interfaceorg.gvsig.symbology.fmap.mapcontext.rendering.symbol.fill.IFillSymbol- Specified by:
isSuitableForin interfaceorg.gvsig.fmap.mapcontext.rendering.symbols.ISymbol- Overrides:
isSuitableForin classAbstractFillSymbol
-
setFillColor
- Specified by:
setFillColorin interfaceorg.gvsig.symbology.fmap.mapcontext.rendering.symbol.fill.IFillSymbol- Overrides:
setFillColorin classAbstractFillSymbol
-
setOutline
public void setOutline(org.gvsig.symbology.fmap.mapcontext.rendering.symbol.line.ILineSymbol outline) - Specified by:
setOutlinein interfaceorg.gvsig.symbology.fmap.mapcontext.rendering.symbol.fill.IFillSymbol- Overrides:
setOutlinein classAbstractFillSymbol
-
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
-
getSymbolType
public int getSymbolType()- Specified by:
getSymbolTypein interfaceorg.gvsig.fmap.mapcontext.rendering.symbols.ISymbol
-
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 unitIndex) - Specified by:
setUnitin interfaceorg.gvsig.fmap.mapcontext.rendering.symbols.CartographicSupport- Overrides:
setUnitin classAbstractFillSymbol
-
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
-
getFillAlpha
public int getFillAlpha()Returns the transparency of the multi layer fill symbol created- Specified by:
getFillAlphain interfaceorg.gvsig.symbology.fmap.mapcontext.rendering.symbol.fill.IFillSymbol- Overrides:
getFillAlphain classAbstractFillSymbol
-
clone
- Specified by:
clonein interfaceorg.gvsig.tools.lang.Cloneable- Overrides:
clonein classAbstractFillSymbol- 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 classAbstractFillSymbol- 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 classAbstractFillSymbol- Throws:
org.gvsig.tools.persistence.exception.PersistenceException
-