Interface GraphicLayer

All Superinterfaces:
Classifiable, ClassifiableVectorial, org.gvsig.tools.dispose.Disposable, org.gvsig.tools.dynobject.DynObject, ExtendedPropertiesSupport, FLayer, org.gvsig.fmap.dal.HasDataStore, ILabelable, InfoByPoint, org.gvsig.metadata.Metadata, org.gvsig.tools.persistence.Persistent, Projected, SingleLayer, VectorLayer
All Known Implementing Classes:
DefaultGraphicLayer

public interface GraphicLayer extends VectorLayer
Utility layer to be able to draw graphics in a MapContext. Those graphics won't be stored and will be rendered on top of all the other MapContext's layers.
Version:
$Id$
Author:
gvSIG team
  • Field Details

  • Method Details

    • addSymbol

      int addSymbol(ISymbol newSymbol)
      Adds a new ISymbol to the layer to be used to render the Geometry objects. The symbol will be added to the legend of the layer.
      Parameters:
      newSymbol - the ISymbol to add
      Returns:
      an identifier of the symbol to be used when adding geometries
    • getSymbol

      ISymbol getSymbol(int symbolId)
      Returns the ISymbol of the layer with the given identifier.
      Parameters:
      symbolId - the symbol identifier
      Returns:
      the symbol with the given id or null if there is not any symbol registered with that id
    • getSymbolId

      int getSymbolId(ISymbol symbol)
      Returns the identifier of the symbol into the layer.
      Parameters:
      symbol - the symbol to look for
      Returns:
      the symbol identifier or -1 if it is not registered into the layer
    • addGraphic

      void addGraphic(org.gvsig.fmap.geom.Geometry geom, int idsym)
    • addGraphic

      void addGraphic(org.gvsig.fmap.geom.Geometry geom, int idsym, String label)
    • addGraphic

      void addGraphic(String groupId, org.gvsig.fmap.geom.Geometry geom, int idsym)
      Adds a new Geometry to be rendered into the layer.
      Parameters:
      groupId - group identifier. Allows to identify a group of Geometry added to the layer
      geom - the Geometry to add
      idsym - the ISymbol identifier to apply to render the Geometry
    • addGraphic

      void addGraphic(String groupId, org.gvsig.fmap.geom.Geometry geom, int idsym, String label)
      Adds a new Geometry to be rendered into the layer.
      Parameters:
      groupId - group identifier. Allows to identify a group of Geometry added to the layer
      geom - the Geometry to add
      idsym - the ISymbol identifier to apply to render the Geometry
      label - the text to show if the ISymbol is a ITextSymbol. Set null otherwise.
    • addGraphic

      void addGraphic(String groupId, org.gvsig.fmap.geom.Geometry geom, int idsym, String label, Object tag, int priority)
      Adds a new Geometry to be rendered into the layer.
      Parameters:
      groupId - group identifier. Allows to identify a group of Geometry added to the layer
      geom - the Geometry to add
      idsym - the ISymbol identifier to apply to render the Geometry
      label - the text to show if the ISymbol is a ITextSymbol. Set null otherwise.
      tag - an object to classify, identify or add related information to the Geometry
      priority - to apply while rendering the Geometry. Values with lower priority will be rendered first.
    • addGraphics

      void addGraphics(String groupId, Iterator geoms, int idsym)
      Adds a new Geometry to be rendered into the layer.
      Parameters:
      groupId - group identifier. Allows to identify a group of Geometry added to the layer
      geoms - the Geometrys to add
      idsym - the ISymbol identifier to apply to render the Geometry
    • addGraphics

      void addGraphics(String groupId, Iterator geoms, int idsym, String label)
      Adds a new Geometry to be rendered into the layer.
      Parameters:
      groupId - group identifier. Allows to identify a group of Geometry added to the layer
      geoms - the Geometrys to add
      idsym - the ISymbol identifier to apply to render the Geometry
      label - the text to show if the ISymbol is a ITextSymbol. Set null otherwise.
    • addGraphics

      void addGraphics(String groupId, Iterator geoms, int idsym, String label, Object tag, int priority)
      Adds a new Geometry to be rendered into the layer.
      Parameters:
      groupId - group identifier. Allows to identify a group of Geometry added to the layer
      geoms - the Geometrys to add
      idsym - the ISymbol identifier to apply to render the Geometry
      label - the text to show if the ISymbol is a ITextSymbol. Set null otherwise.
      tag - an object to classify, identify or add related information to the Geometry
      priority - to apply while rendering the Geometry. Values with lower priority will be rendered first.
    • removeGraphics

      boolean removeGraphics(String groupId)
      Removes all previously registered Geometry objects from the layer with the given groupId.
      Parameters:
      groupId - of the geometries to remove
    • clearAllGraphics

      void clearAllGraphics()
      Removes all registered Geometry objects.
    • clearAllSymbols

      int clearAllSymbols()
      Removes all registered ISymbol objects.