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
org.gvsig.symbology.fmap.mapcontext.rendering.symbol.marker.impl.SimpleMarkerSymbol
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.symbology.fmap.mapcontext.rendering.symbol.marker.ISimpleMarkerSymbol, org.gvsig.tools.lang.Cloneable, org.gvsig.tools.persistence.Persistent

public class SimpleMarkerSymbol extends AbstractMarkerSymbol implements org.gvsig.symbology.fmap.mapcontext.rendering.symbol.marker.ISimpleMarkerSymbol
SimpleMarkerSymbol is the most basic symbol for the representation of point objects which can define its size and color apart from the rotation and the offset from a point in the map.
Author:
2005-2008 jaume dominguez faus - jaume.dominguez@iver.es, 2009- César Ordiñana - gvSIG team
  • Field Details

    • SIMPLE_MARKER_SYMBOL_PERSISTENCE_DEFINITION_NAME

      public static final String SIMPLE_MARKER_SYMBOL_PERSISTENCE_DEFINITION_NAME
      See Also:
  • Constructor Details

    • SimpleMarkerSymbol

      public SimpleMarkerSymbol()
  • Method Details

    • 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
    • hasOutline

      public boolean hasOutline()
      Returns true or false depending if the simple marker symbol has an outline or not.
      Specified by:
      hasOutline in interface org.gvsig.symbology.fmap.mapcontext.rendering.symbol.marker.ISimpleMarkerSymbol
      Returns:
      Returns the outline.
    • setOutlined

      public void setOutlined(boolean outlined)
      Establishes the outline for the simple marker symbol.
      Specified by:
      setOutlined in interface org.gvsig.symbology.fmap.mapcontext.rendering.symbol.marker.ISimpleMarkerSymbol
      Parameters:
      outline - The outline to set.
    • getOutlineColor

      public Color getOutlineColor()
      Returns the outline color for the symple marker symbol
      Specified by:
      getOutlineColor in interface org.gvsig.symbology.fmap.mapcontext.rendering.symbol.marker.ISimpleMarkerSymbol
      Returns:
      Color,outlineColor.
    • setOutlineColor

      public void setOutlineColor(Color outlineColor)
      Sets the outline color for the simple marker symbol
      Specified by:
      setOutlineColor in interface org.gvsig.symbology.fmap.mapcontext.rendering.symbol.marker.ISimpleMarkerSymbol
      Parameters:
      outlineColor - , Color
    • getOutlineSize

      public double getOutlineSize()
      Gets the size of the outline for the simple marker symbol
      Specified by:
      getOutlineSize in interface org.gvsig.symbology.fmap.mapcontext.rendering.symbol.marker.ISimpleMarkerSymbol
      Returns:
      Returns the outlineSize.
    • setOutlineSize

      public void setOutlineSize(double outlineSize)
      Establishes the size for the outline of the simple marker symbol
      Specified by:
      setOutlineSize in interface org.gvsig.symbology.fmap.mapcontext.rendering.symbol.marker.ISimpleMarkerSymbol
      Parameters:
      outlineSize - The outlineSize to set.
    • getSelectionSymbol

      public org.gvsig.fmap.mapcontext.rendering.symbols.ISymbol getSelectionSymbol()
      Specified by:
      getSelectionSymbol in interface org.gvsig.symbology.fmap.mapcontext.rendering.symbol.marker.ISimpleMarkerSymbol
      Returns:
      Returns the selectionSymbol.
    • setSelectionSymbol

      public void setSelectionSymbol(org.gvsig.fmap.mapcontext.rendering.symbols.ISymbol selectionSymbol)
      Specified by:
      setSelectionSymbol in interface org.gvsig.symbology.fmap.mapcontext.rendering.symbol.marker.ISimpleMarkerSymbol
      Parameters:
      selectionSymbol - The selectionSymbol to set.
    • setStyle

      public void setStyle(int style)
      Sets the style for the simple marker symbol
      Specified by:
      setStyle in interface org.gvsig.symbology.fmap.mapcontext.rendering.symbol.marker.ISimpleMarkerSymbol
      Parameters:
      style -
    • getStyle

      public int getStyle()
      Obtains the style for the simple marker symbol
      Specified by:
      getStyle in interface org.gvsig.symbology.fmap.mapcontext.rendering.symbol.marker.ISimpleMarkerSymbol
      Returns:
      markerStyle,int
    • clone

      public Object clone() throws CloneNotSupportedException
      Specified by:
      clone in interface org.gvsig.tools.lang.Cloneable
      Overrides:
      clone in class AbstractMarkerSymbol
      Throws:
      CloneNotSupportedException
    • isOutlined

      public boolean isOutlined()
      Returns if the marker symbol should be drawn outlined.
      Specified by:
      isOutlined in interface org.gvsig.symbology.fmap.mapcontext.rendering.symbol.marker.ISimpleMarkerSymbol
      Returns:
      if it is outlined
    • 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 AbstractMarkerSymbol
      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 AbstractMarkerSymbol
      Throws:
      org.gvsig.tools.persistence.exception.PersistenceException