public abstract class ComposedLayer
extends java.lang.Object
FLayer.newComposedLayer()
Constructor and Description |
---|
ComposedLayer() |
Modifier and Type | Method and Description |
---|---|
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(java.awt.image.BufferedImage image,
java.awt.Graphics2D g,
ViewPort viewPort,
Cancellable cancel,
double scale)
Draws all the group in one pass.
|
protected abstract void |
doPrint(java.awt.Graphics2D g,
ViewPort viewPort,
Cancellable cancel,
double scale,
PrintAttributes properties)
Prints all the group in one pass.
|
void |
draw(java.awt.image.BufferedImage image,
java.awt.Graphics2D g,
ViewPort viewPort,
Cancellable cancel,
double scale)
Draws all the group in one pass
You have to implements the doDraw method.
|
void |
print(java.awt.Graphics2D g,
ViewPort viewPort,
Cancellable cancel,
double scale,
PrintAttributes properties)
Prints all the group in one pass
You have to implements the doDraw method.
|
void |
setMapContext(MapContext mapContext) |
public void setMapContext(MapContext mapContext)
public abstract boolean canAdd(FLayer layer)
layer
- public final void add(FLayer layer) throws java.lang.Exception
layer
- java.lang.Exception
canAdd(FLayer)
public final void draw(java.awt.image.BufferedImage image, java.awt.Graphics2D g, ViewPort viewPort, Cancellable cancel, double scale) throws ReadException
public final void print(java.awt.Graphics2D g, ViewPort viewPort, Cancellable cancel, double scale, PrintAttributes properties) throws ReadException
protected abstract void doAdd(FLayer layer) throws java.lang.Exception
layer
- java.lang.Exception
add(FLayer)
,
canAdd(FLayer)
protected abstract void doDraw(java.awt.image.BufferedImage image, java.awt.Graphics2D g, ViewPort viewPort, Cancellable cancel, double scale) throws ReadException
protected abstract void doPrint(java.awt.Graphics2D g, ViewPort viewPort, Cancellable cancel, double scale, PrintAttributes properties) throws ReadException
ReadException
org.gvsig.fmap.mapcontext.layers.operations.ComposedLayer#print(Graphics2D, ViewPort, Cancellable, double)
,
org.gvsig.fmap.mapcontext.layers.FLayer#print(Graphics2D, ViewPort, Cancellable, double)