Class MultiLayerLineSymbol
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.line.impl.AbstractLineSymbol
org.gvsig.symbology.fmap.mapcontext.rendering.symbol.line.impl.MultiLayerLineSymbol
- 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.line.ILineSymbol,org.gvsig.symbology.fmap.mapcontext.rendering.symbol.line.IMultiLayerLineSymbol,org.gvsig.tools.lang.Cloneable,org.gvsig.tools.persistence.Persistent
public class MultiLayerLineSymbol
extends AbstractLineSymbol
implements org.gvsig.symbology.fmap.mapcontext.rendering.symbol.line.ILineSymbol, org.gvsig.fmap.mapcontext.rendering.symbols.IMultiLayerSymbol, org.gvsig.symbology.fmap.mapcontext.rendering.symbol.line.IMultiLayerLineSymbol
MultiLayerLineSymbol allows to create new symbols using a composition of
several lineal symbols (xxxLineSymbol implementing ILineSymbol)and be treated
as an only one symbol.
- Author:
- jaume dominguez faus - jaume.dominguez@iver.es, 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.line.impl.AbstractLineSymbol
LINE_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.line.ILineSymbol
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) intgetAlpha()getColor()org.gvsig.fmap.mapcontext.rendering.symbols.ISymbolgetLayer(int layerIndex) intorg.gvsig.symbology.fmap.mapcontext.rendering.symbol.style.ILineStyledoubleorg.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 outlineAlpha) voidsetCartographicSize(double cartographicSize, org.gvsig.fmap.geom.Geometry geom) voidsetLayer(int index, org.gvsig.fmap.mapcontext.rendering.symbols.ISymbol layer) voidsetLineColor(Color color) voidsetLineStyle(org.gvsig.symbology.fmap.mapcontext.rendering.symbol.style.ILineStyle lineStyle) voidsetLineWidth(double width) voidsetReferenceSystem(int system) voidsetUnit(int unitIndex) voidswapLayers(int index1, int index2) Methods inherited from class org.gvsig.symbology.fmap.mapcontext.rendering.symbol.line.impl.AbstractLineSymbol
getSampleGeometry, getSymbolType, offsetFShape, setColorMethods 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.fmap.mapcontext.rendering.symbols.ISymbol
draw, drawInsideRectangle, getDescription, getFeature, getID, getSymbolForSelection, getSymbolType, isShapeVisible, setColor, setDescription, setFeature, setID
-
Field Details
-
MULTILAYER_LINE_SYMBOL_PERSISTENCE_DEFINITION_NAME
- See Also:
-
-
Constructor Details
-
MultiLayerLineSymbol
public MultiLayerLineSymbol()
-
-
Method Details
-
getColor
- Specified by:
getColorin interfaceorg.gvsig.symbology.fmap.mapcontext.rendering.symbol.line.ILineSymbol- Specified by:
getColorin interfaceorg.gvsig.fmap.mapcontext.rendering.symbols.ISymbol- Overrides:
getColorin classAbstractLineSymbol
-
getLineStyle
public org.gvsig.symbology.fmap.mapcontext.rendering.symbol.style.ILineStyle getLineStyle()- Specified by:
getLineStylein interfaceorg.gvsig.symbology.fmap.mapcontext.rendering.symbol.line.ILineSymbol- Overrides:
getLineStylein classAbstractLineSymbol
-
getLineWidth
public double getLineWidth()- Specified by:
getLineWidthin interfaceorg.gvsig.symbology.fmap.mapcontext.rendering.symbol.line.ILineSymbol
-
setLineWidth
public void setLineWidth(double width) - Specified by:
setLineWidthin interfaceorg.gvsig.symbology.fmap.mapcontext.rendering.symbol.line.ILineSymbol
-
setLineColor
- Specified by:
setLineColorin interfaceorg.gvsig.symbology.fmap.mapcontext.rendering.symbol.line.ILineSymbol- Overrides:
setLineColorin classAbstractLineSymbol
-
setLineStyle
public void setLineStyle(org.gvsig.symbology.fmap.mapcontext.rendering.symbol.style.ILineStyle lineStyle) - Specified by:
setLineStylein interfaceorg.gvsig.symbology.fmap.mapcontext.rendering.symbol.line.ILineSymbol- Overrides:
setLineStylein classAbstractLineSymbol
-
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 classAbstractLineSymbol
-
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
-
getAlpha
public int getAlpha()- Specified by:
getAlphain interfaceorg.gvsig.symbology.fmap.mapcontext.rendering.symbol.line.ILineSymbol- Overrides:
getAlphain classAbstractLineSymbol
-
setAlpha
public void setAlpha(int outlineAlpha) - Specified by:
setAlphain interfaceorg.gvsig.symbology.fmap.mapcontext.rendering.symbol.line.ILineSymbol- Overrides:
setAlphain classAbstractLineSymbol
-
setUnit
public void setUnit(int unitIndex) - Specified by:
setUnitin interfaceorg.gvsig.fmap.mapcontext.rendering.symbols.CartographicSupport- Overrides:
setUnitin classAbstractLineSymbol
-
setReferenceSystem
public void setReferenceSystem(int system) - Specified by:
setReferenceSystemin interfaceorg.gvsig.fmap.mapcontext.rendering.symbols.CartographicSupport- Overrides:
setReferenceSystemin classAbstractLineSymbol
-
setCartographicSize
public void setCartographicSize(double cartographicSize, org.gvsig.fmap.geom.Geometry geom) -
clone
- Specified by:
clonein interfaceorg.gvsig.tools.lang.Cloneable- Overrides:
clonein classAbstractLineSymbol- 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 classAbstractLineSymbol- 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 classAbstractLineSymbol- Throws:
org.gvsig.tools.persistence.exception.PersistenceException
-