Class ComposedLayer

java.lang.Object
org.gvsig.fmap.mapcontext.layers.operations.ComposedLayer

public abstract class ComposedLayer extends Object
Abstract class for the classes that make able a single draw for a layers group
See Also:
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    final void
    add(FLayer layer)
    Adds the layer to the draw group.
    abstract boolean
    canAdd(FLayer layer)
    Checks if the layer can be added to this group
    protected abstract void
    doAdd(FLayer layer)
    Adds the layer to the draw group.
    protected abstract void
    doDraw(BufferedImage image, Graphics2D g, ViewPort viewPort, org.gvsig.tools.task.Cancellable cancel, double scale)
    Draws all the group in one pass.
    protected abstract void
    doPrint(Graphics2D g, ViewPort viewPort, org.gvsig.tools.task.Cancellable cancel, double scale, org.gvsig.compat.print.PrintAttributes properties)
    Prints all the group in one pass.
    final void
    draw(BufferedImage image, Graphics2D g, ViewPort viewPort, org.gvsig.tools.task.Cancellable cancel, double scale)
    Draws all the group in one pass You have to implements the doDraw method.
    final void
    print(Graphics2D g, ViewPort viewPort, org.gvsig.tools.task.Cancellable cancel, double scale, org.gvsig.compat.print.PrintAttributes properties)
    Prints all the group in one pass You have to implements the doDraw method.
    void
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ComposedLayer

      public ComposedLayer()
  • Method Details

    • setMapContext

      public void setMapContext(MapContext mapContext)
    • canAdd

      public abstract boolean canAdd(FLayer layer)
      Checks if the layer can be added to this group
      Parameters:
      layer -
      Returns:
      layer can be added or not
    • add

      public final void add(FLayer layer) throws Exception
      Adds the layer to the draw group. You have to implements the doAdd(FLayer) method.
      Parameters:
      layer -
      Throws:
      Exception
      See Also:
    • draw

      public final void draw(BufferedImage image, Graphics2D g, ViewPort viewPort, org.gvsig.tools.task.Cancellable cancel, double scale) throws org.gvsig.fmap.dal.exception.ReadException
      Draws all the group in one pass You have to implements the doDraw method.
      Throws:
      org.gvsig.fmap.dal.exception.ReadException
      See Also:
    • print

      public final void print(Graphics2D g, ViewPort viewPort, org.gvsig.tools.task.Cancellable cancel, double scale, org.gvsig.compat.print.PrintAttributes properties) throws org.gvsig.fmap.dal.exception.ReadException
      Prints all the group in one pass You have to implements the doDraw method.
      Throws:
      org.gvsig.fmap.dal.exception.ReadException
      See Also:
    • doAdd

      protected abstract void doAdd(FLayer layer) throws Exception
      Adds the layer to the draw group. Specific implementation.
      Parameters:
      layer -
      Throws:
      Exception
      See Also:
    • doDraw

      protected abstract void doDraw(BufferedImage image, Graphics2D g, ViewPort viewPort, org.gvsig.tools.task.Cancellable cancel, double scale) throws org.gvsig.fmap.dal.exception.ReadException
      Draws all the group in one pass. Specific implementation.
      Throws:
      org.gvsig.fmap.dal.exception.ReadException
      See Also:
    • doPrint

      protected abstract void doPrint(Graphics2D g, ViewPort viewPort, org.gvsig.tools.task.Cancellable cancel, double scale, org.gvsig.compat.print.PrintAttributes properties) throws org.gvsig.fmap.dal.exception.ReadException
      Prints all the group in one pass. Specific implementation.
      Throws:
      org.gvsig.fmap.dal.exception.ReadException
      See Also:
      • invalid reference
        org.gvsig.fmap.mapcontext.layers.operations.ComposedLayer#print(Graphics2D, ViewPort, Cancellable, double)
      • invalid reference
        org.gvsig.fmap.mapcontext.layers.FLayer#print(Graphics2D, ViewPort, Cancellable, double)