Class SimpleMarkerFillPropertiesStyle

java.lang.Object
org.gvsig.symbology.fmap.mapcontext.rendering.symbol.impl.AbstractCartographicSupport
org.gvsig.symbology.fmap.mapcontext.rendering.symbol.style.AbstractStyle
org.gvsig.symbology.fmap.mapcontext.rendering.symbol.style.SimpleMarkerFillPropertiesStyle
All Implemented Interfaces:
Cloneable, org.gvsig.fmap.mapcontext.rendering.symbols.CartographicSupport, org.gvsig.fmap.mapcontext.rendering.symbols.styles.IStyle, org.gvsig.symbology.fmap.mapcontext.rendering.symbol.style.IMarkerFillPropertiesStyle, org.gvsig.tools.lang.Cloneable, org.gvsig.tools.persistence.Persistent

public class SimpleMarkerFillPropertiesStyle extends AbstractStyle implements org.gvsig.symbology.fmap.mapcontext.rendering.symbol.style.IMarkerFillPropertiesStyle
  • Field Details

    • SIMPLE_MARKER_FILL_STYLE_PERSISTENCE_DEFINITION_NAME

      public static final String SIMPLE_MARKER_FILL_STYLE_PERSISTENCE_DEFINITION_NAME
      See Also:
  • Constructor Details

    • SimpleMarkerFillPropertiesStyle

      public SimpleMarkerFillPropertiesStyle()
  • Method Details

    • drawInsideRectangle

      public void drawInsideRectangle(Graphics2D g, Rectangle r)
      Specified by:
      drawInsideRectangle in interface org.gvsig.fmap.mapcontext.rendering.symbols.styles.IStyle
    • isSuitableFor

      public boolean isSuitableFor(org.gvsig.fmap.mapcontext.rendering.symbols.ISymbol symbol)
      Specified by:
      isSuitableFor in interface org.gvsig.fmap.mapcontext.rendering.symbols.styles.IStyle
    • getClassName

      public String getClassName()
    • drawOutline

      public void drawOutline(Graphics2D g, Rectangle r)
      Specified by:
      drawOutline in interface org.gvsig.fmap.mapcontext.rendering.symbols.styles.IStyle
    • setSampleSymbol

      public void setSampleSymbol(org.gvsig.symbology.fmap.mapcontext.rendering.symbol.marker.IMarkerSymbol marker)

      Define an utility symbol to show up a thumbnail by default, this symbol is a SimpleMarkerSymbol. Thus, the drawInsideRectangle will always work. But it can be changed with setSampleSymbol(IMakerSymbol).

      If marker is null, it does nothing

      Specified by:
      setSampleSymbol in interface org.gvsig.symbology.fmap.mapcontext.rendering.symbol.style.IMarkerFillPropertiesStyle
    • getRotation

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

      public void setRotation(double rotation)
      Specified by:
      setRotation in interface org.gvsig.symbology.fmap.mapcontext.rendering.symbol.style.IMarkerFillPropertiesStyle
    • getXOffset

      public double getXOffset()
      Specified by:
      getXOffset in interface org.gvsig.symbology.fmap.mapcontext.rendering.symbol.style.IMarkerFillPropertiesStyle
    • setXOffset

      public void setXOffset(double offset)
      Specified by:
      setXOffset in interface org.gvsig.symbology.fmap.mapcontext.rendering.symbol.style.IMarkerFillPropertiesStyle
    • getXSeparation

      public double getXSeparation()
      Specified by:
      getXSeparation in interface org.gvsig.symbology.fmap.mapcontext.rendering.symbol.style.IMarkerFillPropertiesStyle
    • setXSeparation

      public void setXSeparation(double separation)
      Specified by:
      setXSeparation in interface org.gvsig.symbology.fmap.mapcontext.rendering.symbol.style.IMarkerFillPropertiesStyle
    • getYOffset

      public double getYOffset()
      Specified by:
      getYOffset in interface org.gvsig.symbology.fmap.mapcontext.rendering.symbol.style.IMarkerFillPropertiesStyle
    • setYOffset

      public void setYOffset(double offset)
      Specified by:
      setYOffset in interface org.gvsig.symbology.fmap.mapcontext.rendering.symbol.style.IMarkerFillPropertiesStyle
    • getYSeparation

      public double getYSeparation()
      Specified by:
      getYSeparation in interface org.gvsig.symbology.fmap.mapcontext.rendering.symbol.style.IMarkerFillPropertiesStyle
    • setYSeparation

      public void setYSeparation(double separation)
      Specified by:
      setYSeparation in interface org.gvsig.symbology.fmap.mapcontext.rendering.symbol.style.IMarkerFillPropertiesStyle
    • setFillStyle

      public void setFillStyle(int fillStyle)
      Specified by:
      setFillStyle in interface org.gvsig.symbology.fmap.mapcontext.rendering.symbol.style.IMarkerFillPropertiesStyle
    • getFillStyle

      public int getFillStyle()
      Specified by:
      getFillStyle in interface org.gvsig.symbology.fmap.mapcontext.rendering.symbol.style.IMarkerFillPropertiesStyle
    • clone

      public Object clone() throws CloneNotSupportedException
      Specified by:
      clone in interface org.gvsig.tools.lang.Cloneable
      Overrides:
      clone in class AbstractStyle
      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 AbstractStyle
      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 AbstractStyle
      Throws:
      org.gvsig.tools.persistence.exception.PersistenceException