public abstract class ComposedLayer extends 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(BufferedImage image,
Graphics2D g,
ViewPort viewPort,
Cancellable cancel,
double scale)
Draws all the group in one pass.
|
protected abstract void |
doPrint(Graphics2D g,
ViewPort viewPort,
Cancellable cancel,
double scale,
PrintAttributes properties)
Prints all the group in one pass.
|
void |
draw(BufferedImage image,
Graphics2D g,
ViewPort viewPort,
Cancellable cancel,
double scale)
Draws all the group in one pass
You have to implements the doDraw method.
|
void |
print(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 Exception
layer
- Exception
canAdd(FLayer)
public final void draw(BufferedImage image, Graphics2D g, ViewPort viewPort, Cancellable cancel, double scale) throws ReadException
public final void print(Graphics2D g, ViewPort viewPort, Cancellable cancel, double scale, PrintAttributes properties) throws ReadException
protected abstract void doAdd(FLayer layer) throws Exception
layer
- Exception
add(FLayer)
,
canAdd(FLayer)
protected abstract void doDraw(BufferedImage image, Graphics2D g, ViewPort viewPort, Cancellable cancel, double scale) throws ReadException
protected abstract void doPrint(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)