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
org.gvsig.symbology.fmap.mapcontext.rendering.symbol.fill.impl.MultiLayerFillSymbol
All Implemented Interfaces:
Cloneable, org.gvsig.fmap.mapcontext.rendering.symbols.CartographicSupport, org.gvsig.fmap.mapcontext.rendering.symbols.IMultiLayerSymbol, 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.symbology.fmap.mapcontext.rendering.symbol.fill.IMultiLayerFillSymbol, org.gvsig.tools.lang.Cloneable, org.gvsig.tools.persistence.Persistent

public class MultiLayerFillSymbol extends AbstractFillSymbol implements org.gvsig.symbology.fmap.mapcontext.rendering.symbol.fill.IFillSymbol, org.gvsig.fmap.mapcontext.rendering.symbols.IMultiLayerSymbol, org.gvsig.symbology.fmap.mapcontext.rendering.symbol.fill.IMultiLayerFillSymbol
MultiLayerFillSymbol is a symbol which allows to group several kind of fill symbols (xxxFillSymbol implementing IFillSymbol)in one and treats it like single symbol.
Author:
2009- César Ordiñana - gvSIG team
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
     
    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.fill.impl.AbstractFillSymbol

    FILL_SYMBOL_PERSISTENCE_DEFINITION_NAME

    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
    void
    addLayer(org.gvsig.fmap.mapcontext.rendering.symbols.ISymbol newLayer)
     
    void
    addLayer(org.gvsig.fmap.mapcontext.rendering.symbols.ISymbol newLayer, int layerIndex)
     
     
    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)
     
    int
    Returns the transparency of the multi layer fill symbol created
     
    org.gvsig.fmap.mapcontext.rendering.symbols.ISymbol
    getLayer(int layerIndex)
     
    int
     
    org.gvsig.symbology.fmap.mapcontext.rendering.symbol.line.ILineSymbol
     
    org.gvsig.fmap.mapcontext.rendering.symbols.ISymbol
     
    int
     
    boolean
    isSuitableFor(org.gvsig.fmap.geom.Geometry geom)
     
    void
    loadFromState(org.gvsig.tools.persistence.PersistentState state)
     
    boolean
    removeLayer(org.gvsig.fmap.mapcontext.rendering.symbols.ISymbol layer)
     
    void
    saveToState(org.gvsig.tools.persistence.PersistentState state)
     
    void
     
    void
    setLayer(int index, org.gvsig.fmap.mapcontext.rendering.symbols.ISymbol layer)
     
    void
    setOutline(org.gvsig.symbology.fmap.mapcontext.rendering.symbol.line.ILineSymbol outline)
     
    void
    setReferenceSystem(int system)
     
    void
    setUnit(int unitIndex)
     
    void
    swapLayers(int index1, int index2)
     

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

    getCartographicSize, getColor, getSampleGeometry, hasFill, hasOutline, setCartographicSize, setColor, setHasFill, setHasOutline, toCartographicSize

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

    cloneForSelection, cloneForSelection, draw, drawInsideRectangle, equals, getDescription, getFeature, getID, getRequiredFeatureAttributeNames, 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, 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, toCartographicUnits

    Methods inherited from interface org.gvsig.symbology.fmap.mapcontext.rendering.symbol.fill.IFillSymbol

    hasFill, hasOutline, setHasFill, setHasOutline

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

    print

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

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

    • MULTILAYER_FILL_SYMBOL_PERSISTENCE_DEFINITION_NAME

      public static final String MULTILAYER_FILL_SYMBOL_PERSISTENCE_DEFINITION_NAME
      See Also:
  • Constructor Details

    • MultiLayerFillSymbol

      public MultiLayerFillSymbol()
  • Method Details

    • getFillColor

      public Color getFillColor()
      Specified by:
      getFillColor in interface org.gvsig.symbology.fmap.mapcontext.rendering.symbol.fill.IFillSymbol
      Overrides:
      getFillColor in class AbstractFillSymbol
    • 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
      Overrides:
      getOutline in class AbstractFillSymbol
    • 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
      Overrides:
      isSuitableFor in class AbstractFillSymbol
    • setFillColor

      public void setFillColor(Color color)
      Specified by:
      setFillColor in interface org.gvsig.symbology.fmap.mapcontext.rendering.symbol.fill.IFillSymbol
      Overrides:
      setFillColor in class AbstractFillSymbol
    • 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
      Overrides:
      setOutline in class AbstractFillSymbol
    • 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
    • getSymbolForSelection

      public org.gvsig.fmap.mapcontext.rendering.symbols.ISymbol getSymbolForSelection()
      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
    • getSymbolType

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

      public void setLayer(int index, org.gvsig.fmap.mapcontext.rendering.symbols.ISymbol layer) throws IndexOutOfBoundsException
      Specified by:
      setLayer in interface org.gvsig.fmap.mapcontext.rendering.symbols.IMultiLayerSymbol
      Throws:
      IndexOutOfBoundsException
    • swapLayers

      public void swapLayers(int index1, int index2)
      Specified by:
      swapLayers in interface org.gvsig.fmap.mapcontext.rendering.symbols.IMultiLayerSymbol
    • getLayer

      public org.gvsig.fmap.mapcontext.rendering.symbols.ISymbol getLayer(int layerIndex)
      Specified by:
      getLayer in interface org.gvsig.fmap.mapcontext.rendering.symbols.IMultiLayerSymbol
    • getLayerCount

      public int getLayerCount()
      Specified by:
      getLayerCount in interface org.gvsig.fmap.mapcontext.rendering.symbols.IMultiLayerSymbol
    • addLayer

      public void addLayer(org.gvsig.fmap.mapcontext.rendering.symbols.ISymbol newLayer)
      Specified by:
      addLayer in interface org.gvsig.fmap.mapcontext.rendering.symbols.IMultiLayerSymbol
    • addLayer

      public void addLayer(org.gvsig.fmap.mapcontext.rendering.symbols.ISymbol newLayer, int layerIndex) throws IndexOutOfBoundsException
      Specified by:
      addLayer in interface org.gvsig.fmap.mapcontext.rendering.symbols.IMultiLayerSymbol
      Throws:
      IndexOutOfBoundsException
    • removeLayer

      public boolean removeLayer(org.gvsig.fmap.mapcontext.rendering.symbols.ISymbol layer)
      Specified by:
      removeLayer in interface org.gvsig.fmap.mapcontext.rendering.symbols.IMultiLayerSymbol
    • setUnit

      public void setUnit(int unitIndex)
      Specified by:
      setUnit in interface org.gvsig.fmap.mapcontext.rendering.symbols.CartographicSupport
      Overrides:
      setUnit in class AbstractFillSymbol
    • setReferenceSystem

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

      public int getFillAlpha()
      Returns the transparency of the multi layer fill symbol created
      Specified by:
      getFillAlpha in interface org.gvsig.symbology.fmap.mapcontext.rendering.symbol.fill.IFillSymbol
      Overrides:
      getFillAlpha in class AbstractFillSymbol
    • clone

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