Class AbstractLineSymbol
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
- 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.line.ILineSymbol,org.gvsig.tools.lang.Cloneable,org.gvsig.tools.persistence.Persistent
- Direct Known Subclasses:
MultiLayerLineSymbol,PictureLineSymbol,SimpleLineSymbol
public abstract class AbstractLineSymbol
extends org.gvsig.symbology.fmap.mapcontext.rendering.symbol.impl.AbstractSymbol
implements org.gvsig.symbology.fmap.mapcontext.rendering.symbol.line.ILineSymbol
AbstractLineSymbol is the class that implements the interface for line
symbols. It is considered as the father of all the XXXLineSymbols and will
implement all the methods that these classes had not developed (and
correspond with one of the methods of AbstractLineSymbol class).
- Author:
- 2005-2009 jaume dominguez faus - jaume.dominguez@iver.es, 2009- César Ordiñana - gvSIG team
-
Nested Class Summary
Nested ClassesNested 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.line.ILineSymbol
SYMBOL_NAMEFields inherited from interface org.gvsig.fmap.mapcontext.rendering.symbols.ISymbol
SELECTION_COLOR -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()intgetAlpha()getColor()org.gvsig.symbology.fmap.mapcontext.rendering.symbol.style.ILineStyleprotected org.gvsig.fmap.geom.Geometryfinal intbooleanisSuitableFor(org.gvsig.fmap.geom.Geometry geom) voidloadFromState(org.gvsig.tools.persistence.PersistentState state) static org.gvsig.fmap.geom.GeometryoffsetFShape(org.gvsig.fmap.geom.Geometry shp, double offset) voidsaveToState(org.gvsig.tools.persistence.PersistentState state) voidsetAlpha(int outlineAlpha) voidvoidsetLineColor(Color color) voidsetLineStyle(org.gvsig.symbology.fmap.mapcontext.rendering.symbol.style.ILineStyle lineStyle) voidsetReferenceSystem(int system) 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, 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.line.ILineSymbol
getLineWidth, setLineWidthMethods inherited from interface org.gvsig.fmap.mapcontext.rendering.symbols.IPrintable
printMethods inherited from interface org.gvsig.fmap.mapcontext.rendering.symbols.ISymbol
draw, draw, drawInsideRectangle, getDescription, getFeature, getID, getSymbolForSelection, getSymbolForSelection, isShapeVisible, setDescription, setFeature, setID
-
Field Details
-
LINE_SYMBOL_PERSISTENCE_DEFINITION_NAME
- See Also:
-
-
Constructor Details
-
AbstractLineSymbol
public AbstractLineSymbol()
-
-
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
-
setLineColor
- Specified by:
setLineColorin interfaceorg.gvsig.symbology.fmap.mapcontext.rendering.symbol.line.ILineSymbol
-
setColor
- Specified by:
setColorin interfaceorg.gvsig.fmap.mapcontext.rendering.symbols.ISymbol
-
getSymbolType
public final 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.fmap.mapcontext.rendering.symbols.ISymbol
-
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
-
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
-
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
-
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
-
getSampleGeometry
-
offsetFShape
public static org.gvsig.fmap.geom.Geometry offsetFShape(org.gvsig.fmap.geom.Geometry shp, double offset) -
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
-