Class MultiShapeSymbol
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.impl.MultiShapeSymbol
- All Implemented Interfaces:
Cloneable,org.gvsig.fmap.mapcontext.rendering.symbols.CartographicSupport,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.IMultiShapeSymbol,org.gvsig.symbology.fmap.mapcontext.rendering.symbol.line.ILineSymbol,org.gvsig.symbology.fmap.mapcontext.rendering.symbol.marker.IMarkerSymbol,org.gvsig.tools.lang.Cloneable,org.gvsig.tools.persistence.Persistent
- Direct Known Subclasses:
WarningSymbol
public class MultiShapeSymbol
extends org.gvsig.symbology.fmap.mapcontext.rendering.symbol.impl.AbstractSymbol
implements org.gvsig.symbology.fmap.mapcontext.rendering.symbol.line.ILineSymbol, org.gvsig.symbology.fmap.mapcontext.rendering.symbol.marker.IMarkerSymbol, org.gvsig.symbology.fmap.mapcontext.rendering.symbol.fill.IFillSymbol, org.gvsig.symbology.fmap.mapcontext.rendering.symbol.IMultiShapeSymbol
MultiShapeSymbol class allows to create a composition of several symbols with
different shapes and be treated as a single symbol.These shapes can be
marker,line or fill.
- Author:
- 2005-2008 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.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, 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 TypeMethodDescriptionclone()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()intorg.gvsig.symbology.fmap.mapcontext.rendering.symbol.fill.IFillSymbolorg.gvsig.symbology.fmap.mapcontext.rendering.symbol.style.ILineStyleorg.gvsig.symbology.fmap.mapcontext.rendering.symbol.line.ILineSymboldoubleorg.gvsig.symbology.fmap.mapcontext.rendering.symbol.marker.IMarkerSymbolorg.gvsig.symbology.fmap.mapcontext.rendering.symbol.style.IMaskgetMask()org.gvsig.symbology.fmap.mapcontext.rendering.symbol.line.ILineSymbolintdoubledoublegetSize()org.gvsig.fmap.mapcontext.rendering.symbols.ISymbolintintgetUnit()booleanhasFill()booleanbooleanbooleanisSuitableFor(org.gvsig.fmap.geom.Geometry geom) voidloadFromState(org.gvsig.tools.persistence.PersistentState state) voidsaveToState(org.gvsig.tools.persistence.PersistentState state) voidsetAlpha(int outlineAlpha) voidvoidsetFillColor(Color color) voidsetFillSymbol(org.gvsig.symbology.fmap.mapcontext.rendering.symbol.fill.IFillSymbol fillFillSymbol) voidsetHasFill(boolean hasFill) voidsetHasOutline(boolean hasOutline) voidsetLineColor(Color color) voidsetLineStyle(org.gvsig.symbology.fmap.mapcontext.rendering.symbol.style.ILineStyle lineStyle) voidsetLineSymbol(org.gvsig.symbology.fmap.mapcontext.rendering.symbol.line.ILineSymbol lineSymbol) voidsetLineWidth(double width) voidsetMarkerSymbol(org.gvsig.symbology.fmap.mapcontext.rendering.symbol.marker.IMarkerSymbol markerSymbol) voidsetMask(org.gvsig.symbology.fmap.mapcontext.rendering.symbol.style.IMask mask) voidvoidsetOutline(org.gvsig.symbology.fmap.mapcontext.rendering.symbol.line.ILineSymbol outline) voidsetReferenceSystem(int system) voidsetRotation(double rotation) voidsetSize(double size) voidsetUnit(int unitIndex) Methods inherited from class org.gvsig.symbology.fmap.mapcontext.rendering.symbol.impl.AbstractSymbol
cloneForSelection, cloneForSelection, draw, drawInsideRectangle, equals, getDescription, getFeature, getID, getRequiredFeatureAttributeNames, getSymbolForSelection, print, setDescription, setFeature, setID, setIsShapeVisibleMethods inherited from class org.gvsig.symbology.fmap.mapcontext.rendering.symbol.impl.AbstractCartographicSupport
copyCartographicContext, getCartographicContext, 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, setCartographicContext, setCartographicContext, setCartographicContext, setCartographicContext, setCartographicContext, toCartographicUnitsMethods inherited from interface org.gvsig.fmap.mapcontext.rendering.symbols.IPrintable
printMethods inherited from interface org.gvsig.fmap.mapcontext.rendering.symbols.ISymbol
draw, drawInsideRectangle, getDescription, getFeature, getID, getSymbolForSelection, setDescription, setFeature, setID
-
Field Details
-
MULTI_SHAPE_SYMBOL_PERSISTENCE_DEFINITION_NAME
- See Also:
-
SYMBOL_NAME
- See Also:
-
-
Constructor Details
-
MultiShapeSymbol
public MultiShapeSymbol()
-
-
Method Details
-
getLineColor
-
setLineColor
- Specified by:
setLineColorin interfaceorg.gvsig.symbology.fmap.mapcontext.rendering.symbol.line.ILineSymbol
-
getLineStyle
public org.gvsig.symbology.fmap.mapcontext.rendering.symbol.style.ILineStyle getLineStyle()- Specified by:
getLineStylein interfaceorg.gvsig.symbology.fmap.mapcontext.rendering.symbol.line.ILineSymbol
-
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
-
setLineWidth
public void setLineWidth(double width) - Specified by:
setLineWidthin interfaceorg.gvsig.symbology.fmap.mapcontext.rendering.symbol.line.ILineSymbol
-
getLineWidth
public double getLineWidth()- Specified by:
getLineWidthin interfaceorg.gvsig.symbology.fmap.mapcontext.rendering.symbol.line.ILineSymbol
-
getAlpha
public int getAlpha()- Specified by:
getAlphain interfaceorg.gvsig.symbology.fmap.mapcontext.rendering.symbol.line.ILineSymbol
-
setAlpha
public void setAlpha(int outlineAlpha) - Specified by:
setAlphain interfaceorg.gvsig.symbology.fmap.mapcontext.rendering.symbol.line.ILineSymbol- Specified by:
setAlphain interfaceorg.gvsig.symbology.fmap.mapcontext.rendering.symbol.marker.IMarkerSymbol
-
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
-
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
-
isShapeVisible
public boolean isShapeVisible()- Specified by:
isShapeVisiblein interfaceorg.gvsig.fmap.mapcontext.rendering.symbols.ISymbol- Overrides:
isShapeVisiblein classorg.gvsig.symbology.fmap.mapcontext.rendering.symbol.impl.AbstractSymbol
-
getSymbolType
public int getSymbolType()- Specified by:
getSymbolTypein interfaceorg.gvsig.fmap.mapcontext.rendering.symbols.ISymbol
-
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
-
getRotation
public double getRotation()- Specified by:
getRotationin interfaceorg.gvsig.symbology.fmap.mapcontext.rendering.symbol.marker.IMarkerSymbol
-
setRotation
public void setRotation(double rotation) - Specified by:
setRotationin interfaceorg.gvsig.symbology.fmap.mapcontext.rendering.symbol.marker.IMarkerSymbol
-
getOffset
- Specified by:
getOffsetin interfaceorg.gvsig.symbology.fmap.mapcontext.rendering.symbol.marker.IMarkerSymbol
-
setOffset
- Specified by:
setOffsetin interfaceorg.gvsig.symbology.fmap.mapcontext.rendering.symbol.marker.IMarkerSymbol
-
getSize
public double getSize()- Specified by:
getSizein interfaceorg.gvsig.symbology.fmap.mapcontext.rendering.symbol.marker.IMarkerSymbol
-
setSize
public void setSize(double size) - Specified by:
setSizein interfaceorg.gvsig.symbology.fmap.mapcontext.rendering.symbol.marker.IMarkerSymbol
-
getColor
- Specified by:
getColorin interfaceorg.gvsig.symbology.fmap.mapcontext.rendering.symbol.line.ILineSymbol- Specified by:
getColorin interfaceorg.gvsig.symbology.fmap.mapcontext.rendering.symbol.marker.IMarkerSymbol- Specified by:
getColorin interfaceorg.gvsig.fmap.mapcontext.rendering.symbols.ISymbol
-
setColor
- Specified by:
setColorin interfaceorg.gvsig.symbology.fmap.mapcontext.rendering.symbol.marker.IMarkerSymbol- Specified by:
setColorin interfaceorg.gvsig.fmap.mapcontext.rendering.symbols.ISymbol
-
setFillColor
- Specified by:
setFillColorin interfaceorg.gvsig.symbology.fmap.mapcontext.rendering.symbol.fill.IFillSymbol
-
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
-
getFillColor
- Specified by:
getFillColorin interfaceorg.gvsig.symbology.fmap.mapcontext.rendering.symbol.fill.IFillSymbol
-
getOutline
public org.gvsig.symbology.fmap.mapcontext.rendering.symbol.line.ILineSymbol getOutline()- Specified by:
getOutlinein interfaceorg.gvsig.symbology.fmap.mapcontext.rendering.symbol.fill.IFillSymbol
-
getFillAlpha
public int getFillAlpha()- Specified by:
getFillAlphain interfaceorg.gvsig.symbology.fmap.mapcontext.rendering.symbol.fill.IFillSymbol
-
getMask
public org.gvsig.symbology.fmap.mapcontext.rendering.symbol.style.IMask getMask()- Specified by:
getMaskin interfaceorg.gvsig.symbology.fmap.mapcontext.rendering.symbol.marker.IMarkerSymbol
-
setUnit
public void setUnit(int unitIndex) - Specified by:
setUnitin interfaceorg.gvsig.fmap.mapcontext.rendering.symbols.CartographicSupport- Overrides:
setUnitin classorg.gvsig.symbology.fmap.mapcontext.rendering.symbol.impl.AbstractCartographicSupport
-
getUnit
public int getUnit()- Specified by:
getUnitin interfaceorg.gvsig.fmap.mapcontext.rendering.symbols.CartographicSupport- Overrides:
getUnitin classorg.gvsig.symbology.fmap.mapcontext.rendering.symbol.impl.AbstractCartographicSupport
-
setMask
public void setMask(org.gvsig.symbology.fmap.mapcontext.rendering.symbol.style.IMask mask) - Specified by:
setMaskin interfaceorg.gvsig.symbology.fmap.mapcontext.rendering.symbol.marker.IMarkerSymbol
-
getReferenceSystem
public int getReferenceSystem()- Specified by:
getReferenceSystemin interfaceorg.gvsig.fmap.mapcontext.rendering.symbols.CartographicSupport- Overrides:
getReferenceSystemin 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
-
getMarkerSymbol
public org.gvsig.symbology.fmap.mapcontext.rendering.symbol.marker.IMarkerSymbol getMarkerSymbol()- Specified by:
getMarkerSymbolin interfaceorg.gvsig.symbology.fmap.mapcontext.rendering.symbol.IMultiShapeSymbol
-
getLineSymbol
public org.gvsig.symbology.fmap.mapcontext.rendering.symbol.line.ILineSymbol getLineSymbol()- Specified by:
getLineSymbolin interfaceorg.gvsig.symbology.fmap.mapcontext.rendering.symbol.IMultiShapeSymbol
-
getFillSymbol
public org.gvsig.symbology.fmap.mapcontext.rendering.symbol.fill.IFillSymbol getFillSymbol()- Specified by:
getFillSymbolin interfaceorg.gvsig.symbology.fmap.mapcontext.rendering.symbol.IMultiShapeSymbol
-
setMarkerSymbol
public void setMarkerSymbol(org.gvsig.symbology.fmap.mapcontext.rendering.symbol.marker.IMarkerSymbol markerSymbol) - Specified by:
setMarkerSymbolin interfaceorg.gvsig.symbology.fmap.mapcontext.rendering.symbol.IMultiShapeSymbol
-
setLineSymbol
public void setLineSymbol(org.gvsig.symbology.fmap.mapcontext.rendering.symbol.line.ILineSymbol lineSymbol) - Specified by:
setLineSymbolin interfaceorg.gvsig.symbology.fmap.mapcontext.rendering.symbol.IMultiShapeSymbol
-
setFillSymbol
public void setFillSymbol(org.gvsig.symbology.fmap.mapcontext.rendering.symbol.fill.IFillSymbol fillFillSymbol) - Specified by:
setFillSymbolin interfaceorg.gvsig.symbology.fmap.mapcontext.rendering.symbol.IMultiShapeSymbol
-
hasFill
public boolean hasFill()- Specified by:
hasFillin interfaceorg.gvsig.symbology.fmap.mapcontext.rendering.symbol.fill.IFillSymbol
-
setHasFill
public void setHasFill(boolean hasFill) - Specified by:
setHasFillin interfaceorg.gvsig.symbology.fmap.mapcontext.rendering.symbol.fill.IFillSymbol
-
hasOutline
public boolean hasOutline()- Specified by:
hasOutlinein interfaceorg.gvsig.symbology.fmap.mapcontext.rendering.symbol.fill.IFillSymbol
-
setHasOutline
public void setHasOutline(boolean hasOutline) - Specified by:
setHasOutlinein interfaceorg.gvsig.symbology.fmap.mapcontext.rendering.symbol.fill.IFillSymbol
-
clone
- Specified by:
clonein interfaceorg.gvsig.tools.lang.Cloneable- Overrides:
clonein classorg.gvsig.symbology.fmap.mapcontext.rendering.symbol.impl.AbstractSymbol- 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 classorg.gvsig.symbology.fmap.mapcontext.rendering.symbol.impl.AbstractSymbol- 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 classorg.gvsig.symbology.fmap.mapcontext.rendering.symbol.impl.AbstractSymbol- Throws:
org.gvsig.tools.persistence.exception.PersistenceException
-