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.RegisterPersistence

    Nested classes/interfaces inherited from interface org.gvsig.fmap.mapcontext.rendering.symbols.CartographicSupport

    org.gvsig.fmap.mapcontext.rendering.symbols.CartographicSupport.CartographicContext
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static org.gvsig.expressionevaluator.Expression
     
    static org.gvsig.expressionevaluator.Expression
     
    static org.gvsig.expressionevaluator.Expression
     
    static org.gvsig.expressionevaluator.Expression
     
    org.gvsig.fmap.dal.expressionevaluator.FeatureSymbolTable
     
    org.gvsig.expressionevaluator.SymbolTable
     

    Fields inherited from class org.gvsig.symbology.fmap.mapcontext.rendering.symbol.impl.AbstractSymbol

    LOGGER, SYMBOL_PERSISTENCE_DEFINITION_NAME

    Fields inherited from interface org.gvsig.fmap.mapcontext.rendering.symbols.CartographicSupport

    PAPER, WORLD

    Fields inherited from interface org.gvsig.symbology.fmap.mapcontext.rendering.dynamiclegend.DynamicSymbol

    NAME

    Fields inherited from interface org.gvsig.fmap.mapcontext.rendering.symbols.ISymbol

    SELECTION_COLOR
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.gvsig.symbology.fmap.mapcontext.rendering.dynamiclegend.DynamicSymbol
     
    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)
     
    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)
     
    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)
     
    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)
     
     
    org.gvsig.expressionevaluator.Expression
     
     
    org.gvsig.fmap.geom.primitive.Point
     
     
    int
     
    int
     
    org.gvsig.expressionevaluator.SymbolTable
     
    org.gvsig.expressionevaluator.Expression
     
    org.gvsig.expressionevaluator.Expression
     
    org.gvsig.expressionevaluator.Expression
     
    getRequiredFeatureAttributeNames(org.gvsig.fmap.dal.feature.FeatureStore featureStore)
     
    org.gvsig.expressionevaluator.Expression
     
    org.gvsig.expressionevaluator.Expression
     
    org.gvsig.fmap.mapcontext.rendering.symbols.ISymbol
    getSymbolForSelection(Color selectionColor)
     
    int
     
    boolean
    isSuitableFor(org.gvsig.fmap.geom.Geometry geom)
     
    void
    loadFromState(org.gvsig.tools.persistence.PersistentState state)
     
    void
    print(Graphics2D g, AffineTransform at, org.gvsig.fmap.geom.Geometry shape, org.gvsig.compat.print.PrintAttributes properties)
     
    void
    saveToState(org.gvsig.tools.persistence.PersistentState state)
     
    static void
     
    void
    setColor(Color color)
     
    void
    setColor(org.gvsig.expressionevaluator.Expression color)
     
    void
    setFeature(org.gvsig.fmap.dal.feature.Feature feat)
     
    void
    setFillColor(org.gvsig.expressionevaluator.Expression exp)
     
    protected void
     
    void
    setOffset(org.gvsig.expressionevaluator.Expression offset)
     
    void
    setOutlineColor(org.gvsig.expressionevaluator.Expression exp)
     
    protected void
     
    protected void
     
    void
    setRequiredFeatureAttributesNames(List<String> listRequiredAttributeNames)
     
    void
    setRotation(org.gvsig.expressionevaluator.Expression exp)
     
    void
    setSize(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, setIsShapeVisible

    Methods inherited from class org.gvsig.symbology.fmap.mapcontext.rendering.symbol.impl.AbstractCartographicSupport

    copyCartographicContext, getCartographicContext, getReferenceSystem, getUnit, isInPixels, setCartographicContext, setCartographicContext, setCartographicContext, setCartographicContext, setCartographicContext, setReferenceSystem, setUnit, toCartographicUnits

    Methods inherited from class java.lang.Object

    finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.gvsig.fmap.mapcontext.rendering.symbols.CartographicSupport

    copyCartographicContext, getCartographicContext, getReferenceSystem, getUnit, setCartographicContext, setCartographicContext, setCartographicContext, setCartographicContext, setCartographicContext, setReferenceSystem, setUnit, toCartographicUnits

    Methods 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:
      setFeature in interface org.gvsig.symbology.fmap.mapcontext.rendering.dynamiclegend.DynamicSymbol
      Specified by:
      setFeature in interface org.gvsig.fmap.mapcontext.rendering.symbols.ISymbol
      Overrides:
      setFeature in class org.gvsig.symbology.fmap.mapcontext.rendering.symbol.impl.AbstractSymbol
    • clone

      public org.gvsig.symbology.fmap.mapcontext.rendering.dynamiclegend.DynamicSymbol clone() throws CloneNotSupportedException
      Specified by:
      clone in interface org.gvsig.tools.lang.Cloneable
      Overrides:
      clone in class org.gvsig.symbology.fmap.mapcontext.rendering.symbol.impl.AbstractSymbol
      Throws:
      CloneNotSupportedException
    • getSymbolForSelection

      public org.gvsig.fmap.mapcontext.rendering.symbols.ISymbol getSymbolForSelection(Color selectionColor)
      Specified by:
      getSymbolForSelection in interface org.gvsig.fmap.mapcontext.rendering.symbols.ISymbol
      Overrides:
      getSymbolForSelection in class org.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:
      draw in interface org.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:
      getSymbolType in interface org.gvsig.fmap.mapcontext.rendering.symbols.ISymbol
    • isSuitableFor

      public boolean isSuitableFor(org.gvsig.fmap.geom.Geometry geom)
      Specified by:
      isSuitableFor in interface org.gvsig.fmap.mapcontext.rendering.symbols.ISymbol
    • getFeatureSymbolTable

      public org.gvsig.expressionevaluator.SymbolTable getFeatureSymbolTable()
    • getColor

      public Color getColor()
      Specified by:
      getColor in interface org.gvsig.fmap.mapcontext.rendering.symbols.ISymbol
    • getComputedColor

      public org.gvsig.expressionevaluator.Expression getComputedColor()
    • getOutlineColor

      public org.gvsig.expressionevaluator.Expression getOutlineColor()
      Specified by:
      getOutlineColor in interface org.gvsig.symbology.fmap.mapcontext.rendering.dynamiclegend.DynamicSymbol
    • getComputedOutlineColor

      public Color getComputedOutlineColor()
    • setOutlineColor

      public void setOutlineColor(org.gvsig.expressionevaluator.Expression exp)
      Specified by:
      setOutlineColor in interface org.gvsig.symbology.fmap.mapcontext.rendering.dynamiclegend.DynamicSymbol
    • getFillColor

      public org.gvsig.expressionevaluator.Expression getFillColor()
      Specified by:
      getFillColor in interface org.gvsig.symbology.fmap.mapcontext.rendering.dynamiclegend.DynamicSymbol
    • getComputedFillColor

      public Color getComputedFillColor()
    • setFillColor

      public void setFillColor(org.gvsig.expressionevaluator.Expression exp)
      Specified by:
      setFillColor in interface org.gvsig.symbology.fmap.mapcontext.rendering.dynamiclegend.DynamicSymbol
    • getSize

      public org.gvsig.expressionevaluator.Expression getSize()
      Specified by:
      getSize in interface org.gvsig.symbology.fmap.mapcontext.rendering.dynamiclegend.DynamicSymbol
    • getComputedSize

      public int getComputedSize()
    • setSize

      public void setSize(org.gvsig.expressionevaluator.Expression exp)
      Specified by:
      setSize in interface org.gvsig.symbology.fmap.mapcontext.rendering.dynamiclegend.DynamicSymbol
    • getOffset

      public org.gvsig.expressionevaluator.Expression getOffset()
      Specified by:
      getOffset in interface org.gvsig.symbology.fmap.mapcontext.rendering.dynamiclegend.DynamicSymbol
    • setOffset

      public void setOffset(org.gvsig.expressionevaluator.Expression offset)
      Specified by:
      setOffset in interface org.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:
      getRotation in interface org.gvsig.symbology.fmap.mapcontext.rendering.dynamiclegend.DynamicSymbol
    • getComputedRotation

      public int getComputedRotation()
    • setRotation

      public void setRotation(org.gvsig.expressionevaluator.Expression exp)
      Specified by:
      setRotation in interface org.gvsig.symbology.fmap.mapcontext.rendering.dynamiclegend.DynamicSymbol
    • setColor

      public void setColor(Color color)
      Specified by:
      setColor in interface org.gvsig.fmap.mapcontext.rendering.symbols.ISymbol
    • setColor

      public void setColor(org.gvsig.expressionevaluator.Expression color)
      Specified by:
      setColor in interface org.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:
      saveToState in interface org.gvsig.tools.persistence.Persistent
      Overrides:
      saveToState in class org.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:
      loadFromState in interface org.gvsig.tools.persistence.Persistent
      Overrides:
      loadFromState in class org.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:
      print in interface org.gvsig.fmap.mapcontext.rendering.symbols.IPrintable
      Overrides:
      print in class org.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:
      getRequiredFeatureAttributeNames in class org.gvsig.symbology.fmap.mapcontext.rendering.symbol.impl.AbstractSymbol
      Throws:
      org.gvsig.fmap.dal.exception.DataException
    • setRequiredFeatureAttributesNames

      public void setRequiredFeatureAttributesNames(List<String> listRequiredAttributeNames)
      Specified by:
      setRequiredFeatureAttributesNames in interface org.gvsig.symbology.fmap.mapcontext.rendering.dynamiclegend.DynamicSymbol
    • selfRegister

      public static void selfRegister()