Interface IMultiLayerSymbol

All Superinterfaces:
Cloneable, org.gvsig.tools.lang.Cloneable, IPrintable, ISymbol, org.gvsig.tools.persistence.Persistent

public interface IMultiLayerSymbol extends ISymbol
Allows to create multi layer symbols using the composition of several symbols of the same type.Depending on the type of the symbols that are used to compose the final symbol, the user will have MultiLayerMarkerSymbol, MultiLayerLineSymbol,...
  • Method Details

    • setLayer

      void setLayer(int index, ISymbol layer) throws IndexOutOfBoundsException
      Establishes a concret symbol for a layer
      Parameters:
      index - , index of the layer
      layer - , symbol to be "applied" to the layer
      Throws:
      IndexOutOfBoundsException
    • swapLayers

      void swapLayers(int index1, int index2)
      Changes the position of two layers in a multilayersymbol
      Parameters:
      index1 - , index of the layer
      index2 - , index of the layer
    • getLayer

      ISymbol getLayer(int layerIndex)
      Obtains the symbol that "contains" a layer whose index is the argument of the method.
      Parameters:
      layerIndex -
      Returns:
    • getLayerCount

      int getLayerCount()
      Returns the number of layers
      Returns:
      int
    • addLayer

      void addLayer(ISymbol newLayer)
      Stacks a new symbol to the symbol list. The symbol is appended to the list and, in terms of use, it will be the last symbol to be processed.
      Parameters:
      ISymbol - newLayer
    • addLayer

      void addLayer(ISymbol newLayer, int layerIndex) throws IndexOutOfBoundsException
      Stacks a new symbol to the symbol list. The symbol is appended to the list in the specified position.
      Parameters:
      ISymbol - newLayer
      Throws:
      IndexOutOfBoundsException
    • removeLayer

      boolean removeLayer(ISymbol layer)
      TODO maybe push it up to ISymbol
      Parameters:
      layer -
      Returns:
      true if this symbol contains the removed one