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.fill.impl.AbstractFillSymbol
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.fill.IFillSymbol, org.gvsig.tools.lang.Cloneable, org.gvsig.tools.persistence.Persistent
Direct Known Subclasses:
MarkerFillSymbol, MultiLayerFillSymbol, PictureFillSymbol, SimpleFillSymbol

public abstract class AbstractFillSymbol extends org.gvsig.symbology.fmap.mapcontext.rendering.symbol.impl.AbstractSymbol implements org.gvsig.symbology.fmap.mapcontext.rendering.symbol.fill.IFillSymbol
Abstract class that any FILL SYMBOL should extend
Author:
2005-2008 jaume dominguez faus - jaume.dominguez@iver.es, 2009- César Ordiñana - gvSIG team
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
     

    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 final String
     

    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.symbol.fill.IFillSymbol

    SYMBOL_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
     
    double
    getCartographicSize(org.gvsig.fmap.mapcontext.ViewPort viewPort, double dpi, org.gvsig.fmap.geom.Geometry geom)
     
     
    int
     
     
    org.gvsig.symbology.fmap.mapcontext.rendering.symbol.line.ILineSymbol
     
    protected org.gvsig.fmap.geom.Geometry
     
    boolean
     
    boolean
     
    boolean
    isSuitableFor(org.gvsig.fmap.geom.Geometry geom)
     
    void
    loadFromState(org.gvsig.tools.persistence.PersistentState state)
     
    void
    saveToState(org.gvsig.tools.persistence.PersistentState state)
     
    void
    setCartographicSize(double cartographicSize, org.gvsig.fmap.geom.Geometry geom)
     
    void
    setColor(Color color)
     
    void
     
    void
    setHasFill(boolean hasFill)
     
    void
    setHasOutline(boolean hasOutline)
     
    void
    setOutline(org.gvsig.symbology.fmap.mapcontext.rendering.symbol.line.ILineSymbol outline)
     
    void
    setUnit(int unitIndex)
     
    double
    toCartographicSize(org.gvsig.fmap.mapcontext.ViewPort viewPort, double dpi, org.gvsig.fmap.geom.Geometry geom)
     

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

    cloneForSelection, cloneForSelection, draw, drawInsideRectangle, equals, getDescription, getFeature, getID, getRequiredFeatureAttributeNames, getSymbolForSelection, getSymbolForSelection, isShapeVisible, print, setDescription, setFeature, 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, 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, toCartographicUnits

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

    print

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

    draw, draw, drawInsideRectangle, getDescription, getFeature, getID, getSymbolForSelection, getSymbolForSelection, getSymbolType, isShapeVisible, setDescription, setFeature, setID
  • Field Details

    • FILL_SYMBOL_PERSISTENCE_DEFINITION_NAME

      public static final String FILL_SYMBOL_PERSISTENCE_DEFINITION_NAME
      See Also:
  • Constructor Details

    • AbstractFillSymbol

      public AbstractFillSymbol()
  • Method Details

    • isSuitableFor

      public boolean isSuitableFor(org.gvsig.fmap.geom.Geometry geom)
      Specified by:
      isSuitableFor in interface org.gvsig.symbology.fmap.mapcontext.rendering.symbol.fill.IFillSymbol
      Specified by:
      isSuitableFor in interface org.gvsig.fmap.mapcontext.rendering.symbols.ISymbol
    • setFillColor

      public void setFillColor(Color color)
      Specified by:
      setFillColor in interface org.gvsig.symbology.fmap.mapcontext.rendering.symbol.fill.IFillSymbol
    • setOutline

      public void setOutline(org.gvsig.symbology.fmap.mapcontext.rendering.symbol.line.ILineSymbol outline)
      Specified by:
      setOutline in interface org.gvsig.symbology.fmap.mapcontext.rendering.symbol.fill.IFillSymbol
    • getFillColor

      public Color getFillColor()
      Specified by:
      getFillColor in interface org.gvsig.symbology.fmap.mapcontext.rendering.symbol.fill.IFillSymbol
    • getOutline

      public org.gvsig.symbology.fmap.mapcontext.rendering.symbol.line.ILineSymbol getOutline()
      Specified by:
      getOutline in interface org.gvsig.symbology.fmap.mapcontext.rendering.symbol.fill.IFillSymbol
    • getFillAlpha

      public int getFillAlpha()
      Specified by:
      getFillAlpha in interface org.gvsig.symbology.fmap.mapcontext.rendering.symbol.fill.IFillSymbol
    • setCartographicSize

      public void setCartographicSize(double cartographicSize, org.gvsig.fmap.geom.Geometry geom)
    • toCartographicSize

      public double toCartographicSize(org.gvsig.fmap.mapcontext.ViewPort viewPort, double dpi, org.gvsig.fmap.geom.Geometry geom)
    • hasFill

      public boolean hasFill()
      Specified by:
      hasFill in interface org.gvsig.symbology.fmap.mapcontext.rendering.symbol.fill.IFillSymbol
    • setHasFill

      public void setHasFill(boolean hasFill)
      Specified by:
      setHasFill in interface org.gvsig.symbology.fmap.mapcontext.rendering.symbol.fill.IFillSymbol
    • hasOutline

      public boolean hasOutline()
      Specified by:
      hasOutline in interface org.gvsig.symbology.fmap.mapcontext.rendering.symbol.fill.IFillSymbol
    • setHasOutline

      public void setHasOutline(boolean hasOutline)
      Specified by:
      setHasOutline in interface org.gvsig.symbology.fmap.mapcontext.rendering.symbol.fill.IFillSymbol
    • getCartographicSize

      public double getCartographicSize(org.gvsig.fmap.mapcontext.ViewPort viewPort, double dpi, org.gvsig.fmap.geom.Geometry geom)
    • setUnit

      public void setUnit(int unitIndex)
      Specified by:
      setUnit in interface org.gvsig.fmap.mapcontext.rendering.symbols.CartographicSupport
      Overrides:
      setUnit in class org.gvsig.symbology.fmap.mapcontext.rendering.symbol.impl.AbstractCartographicSupport
    • getColor

      public Color getColor()
      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.fmap.mapcontext.rendering.symbols.ISymbol
    • 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
    • getSampleGeometry

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