Class DefaultDynamicSymbol
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.dynamiclegend.DefaultDynamicSymbol
- 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.dynamiclegend.DynamicSymbol,org.gvsig.tools.lang.Cloneable,org.gvsig.tools.persistence.Persistent
public class DefaultDynamicSymbol
extends org.gvsig.symbology.fmap.mapcontext.rendering.symbol.impl.AbstractSymbol
implements org.gvsig.symbology.fmap.mapcontext.rendering.dynamiclegend.DynamicSymbol
-
Nested Class Summary
Nested classes/interfaces inherited from class org.gvsig.symbology.fmap.mapcontext.rendering.symbol.impl.AbstractSymbol
org.gvsig.symbology.fmap.mapcontext.rendering.symbol.impl.AbstractSymbol.RegisterPersistenceNested classes/interfaces inherited from interface org.gvsig.fmap.mapcontext.rendering.symbols.CartographicSupport
org.gvsig.fmap.mapcontext.rendering.symbols.CartographicSupport.CartographicContext -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic org.gvsig.expressionevaluator.Expressionstatic org.gvsig.expressionevaluator.Expressionstatic org.gvsig.expressionevaluator.Expressionstatic org.gvsig.expressionevaluator.Expressionorg.gvsig.fmap.dal.expressionevaluator.FeatureSymbolTableorg.gvsig.expressionevaluator.SymbolTableFields 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.dynamiclegend.DynamicSymbol
NAMEFields inherited from interface org.gvsig.fmap.mapcontext.rendering.symbols.ISymbol
SELECTION_COLOR -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.gvsig.symbology.fmap.mapcontext.rendering.dynamiclegend.DynamicSymbolclone()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) protected voiddrawLine(Graphics2D g, AffineTransform affineTransform, org.gvsig.fmap.geom.Geometry geom, org.gvsig.fmap.dal.feature.Feature f, org.gvsig.tools.task.Cancellable cancel) protected voiddrawPoint(Graphics2D g, AffineTransform affineTransform, org.gvsig.fmap.geom.Geometry geom, org.gvsig.fmap.dal.feature.Feature f, org.gvsig.tools.task.Cancellable cancel) protected voiddrawPolygon(Graphics2D g, AffineTransform affineTransform, org.gvsig.fmap.geom.Geometry geom, org.gvsig.fmap.dal.feature.Feature f, org.gvsig.tools.task.Cancellable cancel) getColor()org.gvsig.expressionevaluator.Expressionorg.gvsig.fmap.geom.primitive.Pointintintorg.gvsig.expressionevaluator.SymbolTableorg.gvsig.expressionevaluator.Expressionorg.gvsig.expressionevaluator.Expressionorg.gvsig.expressionevaluator.ExpressionString[]getRequiredFeatureAttributeNames(org.gvsig.fmap.dal.feature.FeatureStore featureStore) org.gvsig.expressionevaluator.Expressionorg.gvsig.expressionevaluator.ExpressiongetSize()org.gvsig.fmap.mapcontext.rendering.symbols.ISymbolgetSymbolForSelection(Color selectionColor) intbooleanisSuitableFor(org.gvsig.fmap.geom.Geometry geom) voidloadFromState(org.gvsig.tools.persistence.PersistentState state) voidprint(Graphics2D g, AffineTransform at, org.gvsig.fmap.geom.Geometry shape, org.gvsig.compat.print.PrintAttributes properties) voidsaveToState(org.gvsig.tools.persistence.PersistentState state) static voidvoidvoidsetColor(org.gvsig.expressionevaluator.Expression color) voidsetFeature(org.gvsig.fmap.dal.feature.Feature feat) voidsetFillColor(org.gvsig.expressionevaluator.Expression exp) protected voidvoidsetOffset(org.gvsig.expressionevaluator.Expression offset) voidsetOutlineColor(org.gvsig.expressionevaluator.Expression exp) protected voidprotected voidvoidsetRequiredFeatureAttributesNames(List<String> listRequiredAttributeNames) voidsetRotation(org.gvsig.expressionevaluator.Expression exp) voidsetSize(org.gvsig.expressionevaluator.Expression exp) Methods inherited from class org.gvsig.symbology.fmap.mapcontext.rendering.symbol.impl.AbstractSymbol
cloneForSelection, cloneForSelection, draw, drawInsideRectangle, equals, getDescription, getFeature, getID, getSymbolForSelection, isShapeVisible, setDescription, setID, setIsShapeVisibleMethods inherited from class org.gvsig.symbology.fmap.mapcontext.rendering.symbol.impl.AbstractCartographicSupport
copyCartographicContext, getCartographicContext, getReferenceSystem, getUnit, isInPixels, setCartographicContext, setCartographicContext, setCartographicContext, setCartographicContext, setCartographicContext, setReferenceSystem, setUnit, 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, setReferenceSystem, setUnit, toCartographicUnitsMethods inherited from interface org.gvsig.fmap.mapcontext.rendering.symbols.ISymbol
draw, drawInsideRectangle, getDescription, getFeature, getID, getSymbolForSelection, isShapeVisible, setDescription, setID
-
Field Details
-
eOutlineColor
public static org.gvsig.expressionevaluator.Expression eOutlineColor -
eFillColor
public static org.gvsig.expressionevaluator.Expression eFillColor -
eSize
public static org.gvsig.expressionevaluator.Expression eSize -
eRotation
public static org.gvsig.expressionevaluator.Expression eRotation -
featureSymbolTable
public org.gvsig.fmap.dal.expressionevaluator.FeatureSymbolTable featureSymbolTable -
symbolTable
public org.gvsig.expressionevaluator.SymbolTable symbolTable
-
-
Constructor Details
-
DefaultDynamicSymbol
public DefaultDynamicSymbol()
-
-
Method Details
-
setFeature
public void setFeature(org.gvsig.fmap.dal.feature.Feature feat) - Specified by:
setFeaturein interfaceorg.gvsig.symbology.fmap.mapcontext.rendering.dynamiclegend.DynamicSymbol- Specified by:
setFeaturein interfaceorg.gvsig.fmap.mapcontext.rendering.symbols.ISymbol- Overrides:
setFeaturein classorg.gvsig.symbology.fmap.mapcontext.rendering.symbol.impl.AbstractSymbol
-
clone
public org.gvsig.symbology.fmap.mapcontext.rendering.dynamiclegend.DynamicSymbol clone() throws CloneNotSupportedException- Specified by:
clonein interfaceorg.gvsig.tools.lang.Cloneable- Overrides:
clonein classorg.gvsig.symbology.fmap.mapcontext.rendering.symbol.impl.AbstractSymbol- Throws:
CloneNotSupportedException
-
getSymbolForSelection
public org.gvsig.fmap.mapcontext.rendering.symbols.ISymbol getSymbolForSelection(Color selectionColor) - 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
-
drawPolygon
protected void drawPolygon(Graphics2D g, AffineTransform affineTransform, org.gvsig.fmap.geom.Geometry geom, org.gvsig.fmap.dal.feature.Feature f, org.gvsig.tools.task.Cancellable cancel) -
setPolygonSymbolValues
protected void setPolygonSymbolValues() -
setLineSymbolValues
protected void setLineSymbolValues() -
drawLine
protected void drawLine(Graphics2D g, AffineTransform affineTransform, org.gvsig.fmap.geom.Geometry geom, org.gvsig.fmap.dal.feature.Feature f, org.gvsig.tools.task.Cancellable cancel) -
setPointSymbolValues
protected void setPointSymbolValues() -
drawPoint
protected void drawPoint(Graphics2D g, AffineTransform affineTransform, org.gvsig.fmap.geom.Geometry geom, org.gvsig.fmap.dal.feature.Feature f, org.gvsig.tools.task.Cancellable cancel) -
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.fmap.mapcontext.rendering.symbols.ISymbol
-
getFeatureSymbolTable
public org.gvsig.expressionevaluator.SymbolTable getFeatureSymbolTable() -
getColor
- Specified by:
getColorin interfaceorg.gvsig.fmap.mapcontext.rendering.symbols.ISymbol
-
getComputedColor
public org.gvsig.expressionevaluator.Expression getComputedColor() -
getOutlineColor
public org.gvsig.expressionevaluator.Expression getOutlineColor()- Specified by:
getOutlineColorin interfaceorg.gvsig.symbology.fmap.mapcontext.rendering.dynamiclegend.DynamicSymbol
-
getComputedOutlineColor
-
setOutlineColor
public void setOutlineColor(org.gvsig.expressionevaluator.Expression exp) - Specified by:
setOutlineColorin interfaceorg.gvsig.symbology.fmap.mapcontext.rendering.dynamiclegend.DynamicSymbol
-
getFillColor
public org.gvsig.expressionevaluator.Expression getFillColor()- Specified by:
getFillColorin interfaceorg.gvsig.symbology.fmap.mapcontext.rendering.dynamiclegend.DynamicSymbol
-
getComputedFillColor
-
setFillColor
public void setFillColor(org.gvsig.expressionevaluator.Expression exp) - Specified by:
setFillColorin interfaceorg.gvsig.symbology.fmap.mapcontext.rendering.dynamiclegend.DynamicSymbol
-
getSize
public org.gvsig.expressionevaluator.Expression getSize()- Specified by:
getSizein interfaceorg.gvsig.symbology.fmap.mapcontext.rendering.dynamiclegend.DynamicSymbol
-
getComputedSize
public int getComputedSize() -
setSize
public void setSize(org.gvsig.expressionevaluator.Expression exp) - Specified by:
setSizein interfaceorg.gvsig.symbology.fmap.mapcontext.rendering.dynamiclegend.DynamicSymbol
-
getOffset
public org.gvsig.expressionevaluator.Expression getOffset()- Specified by:
getOffsetin interfaceorg.gvsig.symbology.fmap.mapcontext.rendering.dynamiclegend.DynamicSymbol
-
setOffset
public void setOffset(org.gvsig.expressionevaluator.Expression offset) - Specified by:
setOffsetin interfaceorg.gvsig.symbology.fmap.mapcontext.rendering.dynamiclegend.DynamicSymbol
-
getComputedOffset
public org.gvsig.fmap.geom.primitive.Point getComputedOffset() -
getRotation
public org.gvsig.expressionevaluator.Expression getRotation()- Specified by:
getRotationin interfaceorg.gvsig.symbology.fmap.mapcontext.rendering.dynamiclegend.DynamicSymbol
-
getComputedRotation
public int getComputedRotation() -
setRotation
public void setRotation(org.gvsig.expressionevaluator.Expression exp) - Specified by:
setRotationin interfaceorg.gvsig.symbology.fmap.mapcontext.rendering.dynamiclegend.DynamicSymbol
-
setColor
- Specified by:
setColorin interfaceorg.gvsig.fmap.mapcontext.rendering.symbols.ISymbol
-
setColor
public void setColor(org.gvsig.expressionevaluator.Expression color) - Specified by:
setColorin interfaceorg.gvsig.symbology.fmap.mapcontext.rendering.dynamiclegend.DynamicSymbol
-
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
-
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
-
print
public void print(Graphics2D g, AffineTransform at, org.gvsig.fmap.geom.Geometry shape, 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
-
getRequiredFeatureAttributeNames
public String[] getRequiredFeatureAttributeNames(org.gvsig.fmap.dal.feature.FeatureStore featureStore) throws org.gvsig.fmap.dal.exception.DataException - Overrides:
getRequiredFeatureAttributeNamesin classorg.gvsig.symbology.fmap.mapcontext.rendering.symbol.impl.AbstractSymbol- Throws:
org.gvsig.fmap.dal.exception.DataException
-
setRequiredFeatureAttributesNames
- Specified by:
setRequiredFeatureAttributesNamesin interfaceorg.gvsig.symbology.fmap.mapcontext.rendering.dynamiclegend.DynamicSymbol
-
selfRegister
public static void selfRegister()
-