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.marker.impl.AbstractMarkerSymbol
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.marker.IMarkerSymbol, org.gvsig.symbology.fmap.mapcontext.rendering.symbol.marker.IMarkerSymbol_v2, org.gvsig.tools.lang.Cloneable, org.gvsig.tools.persistence.Persistent
Direct Known Subclasses:
ArrowMarkerSymbol, MultiLayerMarkerSymbol, PictureMarkerSymbol, SimpleMarkerSymbol

public abstract class AbstractMarkerSymbol extends org.gvsig.symbology.fmap.mapcontext.rendering.symbol.impl.AbstractSymbol implements org.gvsig.symbology.fmap.mapcontext.rendering.symbol.marker.IMarkerSymbol_v2
Abstract class that any MARKER SYMBOL should extend.
Author:
gvSIG team
  • Field Details

    • MARKER_SYMBOL_PERSISTENCE_DEFINITION_NAME

      public static final String MARKER_SYMBOL_PERSISTENCE_DEFINITION_NAME
      See Also:
  • Constructor Details

    • AbstractMarkerSymbol

      public AbstractMarkerSymbol()
  • Method Details

    • getPoint

      protected org.gvsig.fmap.geom.primitive.Point getPoint(double x, double y)
    • getSymbolType

      public final int getSymbolType()
      Specified by:
      getSymbolType in interface org.gvsig.fmap.mapcontext.rendering.symbols.ISymbol
    • getRotation

      public double getRotation()
      Specified by:
      getRotation in interface org.gvsig.symbology.fmap.mapcontext.rendering.symbol.marker.IMarkerSymbol
    • setRotation

      public void setRotation(double r)
      Specified by:
      setRotation in interface org.gvsig.symbology.fmap.mapcontext.rendering.symbol.marker.IMarkerSymbol
    • getRotationInDegrees

      public double getRotationInDegrees()
    • setRotationInDegrees

      public void setRotationInDegrees(double r)
    • getRotationInRadians

      public double getRotationInRadians()
    • setRotationInRadians

      public void setRotationInRadians(double r)
    • getOffset

      public Point2D getOffset()
      Specified by:
      getOffset in interface org.gvsig.symbology.fmap.mapcontext.rendering.symbol.marker.IMarkerSymbol
    • setOffset

      public void setOffset(Point2D offset)
      Specified by:
      setOffset in interface org.gvsig.symbology.fmap.mapcontext.rendering.symbol.marker.IMarkerSymbol
    • getSymbolTable

      protected org.gvsig.expressionevaluator.SymbolTable getSymbolTable(org.gvsig.fmap.dal.feature.Feature f)
    • getLineToOffsetColor

      public Color getLineToOffsetColor()
      Specified by:
      getLineToOffsetColor in interface org.gvsig.symbology.fmap.mapcontext.rendering.symbol.marker.IMarkerSymbol_v2
    • setLineToOffsetColor

      public void setLineToOffsetColor(Color color)
      Specified by:
      setLineToOffsetColor in interface org.gvsig.symbology.fmap.mapcontext.rendering.symbol.marker.IMarkerSymbol_v2
    • isDrawLineToOffset

      public boolean isDrawLineToOffset()
      Specified by:
      isDrawLineToOffset in interface org.gvsig.symbology.fmap.mapcontext.rendering.symbol.marker.IMarkerSymbol_v2
    • setDrawLineToOffset

      public void setDrawLineToOffset(boolean drawLineToOffset)
      Specified by:
      setDrawLineToOffset in interface org.gvsig.symbology.fmap.mapcontext.rendering.symbol.marker.IMarkerSymbol_v2
    • getOffsetXExpression

      public String getOffsetXExpression()
      Specified by:
      getOffsetXExpression in interface org.gvsig.symbology.fmap.mapcontext.rendering.symbol.marker.IMarkerSymbol_v2
    • setOffsetXExpression

      public void setOffsetXExpression(String offsetXExpression)
      Specified by:
      setOffsetXExpression in interface org.gvsig.symbology.fmap.mapcontext.rendering.symbol.marker.IMarkerSymbol_v2
    • getOffsetYExpression

      public String getOffsetYExpression()
      Specified by:
      getOffsetYExpression in interface org.gvsig.symbology.fmap.mapcontext.rendering.symbol.marker.IMarkerSymbol_v2
    • setOffsetYExpression

      public void setOffsetYExpression(String offsetYExpression)
      Specified by:
      setOffsetYExpression in interface org.gvsig.symbology.fmap.mapcontext.rendering.symbol.marker.IMarkerSymbol_v2
    • getRotationExpression

      public String getRotationExpression()
      Specified by:
      getRotationExpression in interface org.gvsig.symbology.fmap.mapcontext.rendering.symbol.marker.IMarkerSymbol_v2
    • setRotationExpression

      public void setRotationExpression(String rotationExpression)
      Specified by:
      setRotationExpression in interface org.gvsig.symbology.fmap.mapcontext.rendering.symbol.marker.IMarkerSymbol_v2
    • getSizeExpression

      public String getSizeExpression()
      Specified by:
      getSizeExpression in interface org.gvsig.symbology.fmap.mapcontext.rendering.symbol.marker.IMarkerSymbol_v2
    • setSizeExpression

      public void setSizeExpression(String sizeExpression)
      Specified by:
      setSizeExpression in interface org.gvsig.symbology.fmap.mapcontext.rendering.symbol.marker.IMarkerSymbol_v2
    • getLineToOffsetColorExpression

      public String getLineToOffsetColorExpression()
      Specified by:
      getLineToOffsetColorExpression in interface org.gvsig.symbology.fmap.mapcontext.rendering.symbol.marker.IMarkerSymbol_v2
    • setLineToOffsetColorExpression

      public void setLineToOffsetColorExpression(String lineToOffsetColorExpression)
      Specified by:
      setLineToOffsetColorExpression in interface org.gvsig.symbology.fmap.mapcontext.rendering.symbol.marker.IMarkerSymbol_v2
    • getEfectiveOffset

      public Point2D getEfectiveOffset(org.gvsig.fmap.dal.feature.Feature f)
      Specified by:
      getEfectiveOffset in interface org.gvsig.symbology.fmap.mapcontext.rendering.symbol.marker.IMarkerSymbol_v2
    • getEfectiveRotationInDegres

      public double getEfectiveRotationInDegres(org.gvsig.fmap.dal.feature.Feature f)
      Specified by:
      getEfectiveRotationInDegres in interface org.gvsig.symbology.fmap.mapcontext.rendering.symbol.marker.IMarkerSymbol_v2
    • getEfectiveRotationInRadians

      public double getEfectiveRotationInRadians(org.gvsig.fmap.dal.feature.Feature f)
      Specified by:
      getEfectiveRotationInRadians in interface org.gvsig.symbology.fmap.mapcontext.rendering.symbol.marker.IMarkerSymbol_v2
    • getEfectiveLineToOffsetColor

      public Color getEfectiveLineToOffsetColor(org.gvsig.fmap.dal.feature.Feature f)
      Specified by:
      getEfectiveLineToOffsetColor in interface org.gvsig.symbology.fmap.mapcontext.rendering.symbol.marker.IMarkerSymbol_v2
    • getEfectiveSize

      public double getEfectiveSize(org.gvsig.fmap.dal.feature.Feature f)
      Specified by:
      getEfectiveSize in interface org.gvsig.symbology.fmap.mapcontext.rendering.symbol.marker.IMarkerSymbol_v2
    • isSuitableFor

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

      public double getSize()
      Specified by:
      getSize in interface org.gvsig.symbology.fmap.mapcontext.rendering.symbol.marker.IMarkerSymbol
    • setSize

      public void setSize(double size)
      Specified by:
      setSize in interface org.gvsig.symbology.fmap.mapcontext.rendering.symbol.marker.IMarkerSymbol
    • getColor

      public Color getColor()
      Specified by:
      getColor in interface org.gvsig.symbology.fmap.mapcontext.rendering.symbol.marker.IMarkerSymbol
      Specified by:
      getColor in interface org.gvsig.fmap.mapcontext.rendering.symbols.ISymbol
    • setColor

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

      public void setAlpha(int outlineAlpha)
      Specified by:
      setAlpha in interface org.gvsig.symbology.fmap.mapcontext.rendering.symbol.marker.IMarkerSymbol
    • getMask

      public final org.gvsig.symbology.fmap.mapcontext.rendering.symbol.style.IMask getMask()
      Specified by:
      getMask in interface org.gvsig.symbology.fmap.mapcontext.rendering.symbol.marker.IMarkerSymbol
    • setMask

      public final void setMask(org.gvsig.symbology.fmap.mapcontext.rendering.symbol.style.IMask mask)
      Specified by:
      setMask in interface org.gvsig.symbology.fmap.mapcontext.rendering.symbol.marker.IMarkerSymbol
    • getCartographicSize

      protected double getCartographicSize()
    • clone

      public Object 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
    • 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
    • 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
    • getAdjustedSize

      protected double getAdjustedSize(Rectangle r, double size)
    • getSampleGeometry

      protected org.gvsig.fmap.geom.Geometry getSampleGeometry(Rectangle r)