Class ComposedLayer
java.lang.Object
org.gvsig.fmap.mapcontext.layers.operations.ComposedLayer
Abstract class for the classes that make able
a single draw for a layers group
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal voidAdds the layer to the draw group.abstract booleanChecks if the layer can be added to this groupprotected abstract voidAdds the layer to the draw group.protected abstract voiddoDraw(BufferedImage image, Graphics2D g, ViewPort viewPort, org.gvsig.tools.task.Cancellable cancel, double scale) Draws all the group in one pass.protected abstract voiddoPrint(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 voiddraw(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 voidprint(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.voidsetMapContext(MapContext mapContext)
-
Constructor Details
-
ComposedLayer
public ComposedLayer()
-
-
Method Details
-
setMapContext
-
canAdd
Checks if the layer can be added to this group- Parameters:
layer-- Returns:
- layer can be added or not
-
add
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
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:
-