|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.geotools.renderer.j2d.RenderedLayer
org.geotools.renderer.j2d.RenderedGridCoverage
A layer for rendering a grid coverage. More than one
RenderedGridCoverage can share the same grid coverage, for example
in order to display an image in many MapPane with
different zoom.
| Field Summary |
| Fields inherited from class org.geotools.renderer.j2d.RenderedLayer |
listeners |
| Constructor Summary | |
RenderedGridCoverage(GridCoverage coverage)
Construct a new layer for the specified grid coverage. |
|
| Method Summary | |
void |
dispose()
Provides a hint that a layer will no longer be accessed from a reference in user space. |
GridCoverage |
getGridCoverage()
Returns the grid coverage, or null if none. |
java.lang.String |
getName(java.util.Locale locale)
Returns the name of this layer. |
java.awt.geom.Rectangle2D |
getPreferredArea()
Returns the preferred area for this layer. |
java.awt.geom.Dimension2D |
getPreferredPixelSize()
Returns the preferred pixel size in rendering coordinates. |
float |
getZOrder()
Returns the z-order for this layer. |
protected void |
paint(RenderingContext context)
Paint the grid coverage. |
protected void |
prefetch(RenderingContext context)
Hints that this layer might be painted in the near future. |
protected void |
setCoordinateSystem(CoordinateSystem cs)
Set the rendering coordinate system for this layer. |
void |
setGridCoverage(GridCoverage newCoverage)
Set the grid coverage to renderer. |
void |
tileUpdate(java.awt.image.WritableRenderedImage source,
int tileX,
int tileY,
boolean willBeWritable)
Notify that a tile in the coverage's image has
been updated. |
| Methods inherited from class org.geotools.renderer.j2d.RenderedLayer |
addPropertyChangeListener, addPropertyChangeListener, getAction, getCoordinateSystem, getLocale, getRenderer, getToolTipText, getTreeLock, isVisible, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, setPreferredArea, setPreferredPixelSize, setVisible, setZOrder, toString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public RenderedGridCoverage(GridCoverage coverage)
coverage - The grid coverage, or null if none.| Method Detail |
public void setGridCoverage(GridCoverage newCoverage)
throws org.opengis.referencing.operation.TransformException
newCoverage - The new grid coverage, or null if none.
org.opengis.referencing.operation.TransformException - if the specified coverage can't be projected to
the current rendering coordinate
system.public GridCoverage getGridCoverage()
null if none. This is the grid coverage
given to the last call of setGridCoverage(org.geotools.gc.GridCoverage). The rendered grid coverage may
not be the same, since a map projection may be applied at rendering time.
public java.lang.String getName(java.util.Locale locale)
getName in class RenderedLayerlocale - The desired locale, or null for a default locale.
RenderedLayer.getLocale(),
Renderer.getName(java.util.Locale)
protected void setCoordinateSystem(CoordinateSystem cs)
throws org.opengis.referencing.operation.TransformException
setCoordinateSystem in class RenderedLayercs - The coordinate system.
org.opengis.referencing.operation.TransformException - If cs if the grid coverage
can't be resampled to the specified coordinate system.public java.awt.geom.Rectangle2D getPreferredArea()
getPreferredArea in class RenderedLayernull if unknow or not applicable.RenderedLayer.getPreferredPixelSize(),
RenderedLayer.getCoordinateSystem()public java.awt.geom.Dimension2D getPreferredPixelSize()
getPreferredPixelSize in class RenderedLayernull if none.RenderedLayer.getPreferredArea(),
RenderedLayer.getCoordinateSystem()public float getZOrder()
gridCoverage.getEnvelope().getCenter(2).
Otherwise, the default value is Float.NEGATIVE_INFINITY in order to paint
the coverage under anything else. The default value can be overriden with a call
to RenderedLayer.setZOrder(float).
getZOrder in class RenderedLayerRenderedLayer.setZOrder(float)protected void prefetch(RenderingContext context)
PlanarImage.prefetchTiles(java.awt.Point[]).
prefetch in class RenderedLayercontext - Information relatives to the rendering context.PlanarImage.prefetchTiles(java.awt.Point[])
protected void paint(RenderingContext context)
throws org.opengis.referencing.operation.TransformException
paint in class RenderedLayercontext - Information relatives to the rendering context.
org.opengis.referencing.operation.TransformException - If a coordinate transformation failed
during the rendering process.
public void tileUpdate(java.awt.image.WritableRenderedImage source,
int tileX,
int tileY,
boolean willBeWritable)
coverage's image has
been updated. The default implementation repaint the modified tiles
if willBeWritable is false (i.e. the update is finished).
tileUpdate in interface java.awt.image.TileObserversource - The image that owns the tile.tileX - The X index of the tile that is being updated.tileY - The Y index of the tile that is being updated.willBeWritable - If true, the tile will be grabbed for writing;
otherwise it is being released.public void dispose()
dispose in class RenderedLayerRenderer.dispose(),
PlanarImage.dispose()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||