|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.geotools.renderer.j2d.RenderedLayer org.geotools.renderer.j2d.RenderedMarks org.geotools.renderer.j2d.RenderedGridMarks
Renderer grid coverage data as marks. The default appearance depends on the number of bands:
Nested Class Summary | |
protected class |
RenderedGridMarks.Iterator
Iterates through all marks in a RenderedGridMarks . |
Field Summary |
Fields inherited from class org.geotools.renderer.j2d.RenderedMarks |
AREAS_MASK, GLYPHS_MASK, ICONS_MASK, MARKS_MASK |
Fields inherited from class org.geotools.renderer.j2d.RenderedLayer |
listeners |
Constructor Summary | |
RenderedGridMarks(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. |
Unit |
getAmplitudeUnit()
Returns the units for marks amplitude. |
int[] |
getBands()
Returns the bands to use for querying mark values. |
GridCoverage |
getGridCoverage()
Returns the current grid coverage. |
MarkIterator |
getMarkIterator()
Returns an iterator for iterating through the marks. |
java.awt.Paint |
getMarkPaint()
Returns the default fill paint for marks. |
java.awt.Shape |
getMarkShape()
Returns the shape to use for painting marks. |
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. |
double |
getTypicalAmplitude()
Returns the typical amplitude of marks. |
float |
getZOrder()
Returns the z-order for this layer. |
protected void |
paint(RenderingContext context)
Proc?de au tra?age des marques de cette grille. |
void |
setAutoDecimation(int spaceX,
int spaceY)
D?cime automatiquement les points de la grille de fa?on ? conserver un espace d'au moins spaceX et spaceY entre chaque point. |
void |
setBands(int[] bands)
Set the bands to use for querying mark values. |
protected void |
setCoordinateSystem(CoordinateSystem cs)
Set the rendering coordinate system for this layer. |
void |
setDecimation(int decimateX,
int decimateY)
Set a decimation factor. |
void |
setGridCoverage(GridCoverage coverage)
Set the grid coverage for this layer. |
void |
setMarkPaint(java.awt.Paint paint)
Set the default fill paint for marks. |
void |
setMarkShape(java.awt.Shape shape)
Set the shape to use for painting marks. |
Methods inherited from class org.geotools.renderer.j2d.RenderedMarks |
getAction, getToolTipText, invalidate, invalidate, repaint |
Methods inherited from class org.geotools.renderer.j2d.RenderedLayer |
addPropertyChangeListener, addPropertyChangeListener, getCoordinateSystem, getLocale, getPreferredPixelSize, getRenderer, getTreeLock, isVisible, prefetch, 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 RenderedGridMarks(GridCoverage coverage)
coverage
- The grid coverage, or null
if none.Method Detail |
public java.lang.String getName(java.util.Locale locale)
getName
in class RenderedLayer
locale
- 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 RenderedLayer
cs
- The coordinate system. If the specified coordinate system has more than
two dimensions, then it must be a CompoundCoordinateSystem
with
a two dimensional headCS
.
org.opengis.referencing.operation.TransformException
- If cs
can't be reduced to a two-dimensional
coordinate system, or if this method do not accept the new coordinate system
for some other reason. In case of failure, this method should keep the old CS
and leave this layer in a consistent state.public void setGridCoverage(GridCoverage coverage) throws org.opengis.referencing.operation.TransformException
coverage
- The grid coverage, or null
if none.
org.opengis.referencing.operation.TransformException
- is a transformation was required and failed.public GridCoverage getGridCoverage()
public void setBands(int[] bands) throws java.lang.IllegalArgumentException
bands
- The band. This array length should 0, 1 or 2. A length of 0 is equivalents
to a call to setVisible
(false)
.
java.lang.IllegalArgumentException
- if the array length is illegal, or if a band is greater than
the number of bands in the underlying grid coverage.public int[] getBands()
public void setDecimation(int decimateX, int decimateY)
MarkIterator
. Note that points are not actually decimated,
but rather averaged. For example a "decimation" factor of 2 will average two neighbor
points and replace them with new one in the middle of the original points.
decimateX
- Decimation among x, or 1 for none.decimateY
- Decimation among y, or 1 for none.public void setAutoDecimation(int spaceX, int spaceY)
spaceX
et spaceY
entre chaque point.
spaceX
- Espace minimal (en points) selon x ? laisser entre les
points de la grille. La valeur 0 d?sactive la d?cimation selon cet axe.spaceY
- Espace minimal (en points) selon y ? laisser entre les
points de la grille. La valeur 0 d?sactive la d?cimation selon cet axe.public java.awt.Shape getMarkShape()
null
.
setMarkShape(java.awt.Shape)
,
RenderedGridMarks.Iterator.markShape()
public void setMarkShape(java.awt.Shape shape)
RenderedMarks.paint(RenderingContext)
will automatically takes care of rotation, translation and scale in order to adjust this
model to each mark properties.
null
is legal. In this case, this layer will renderer amplitudes
as labels rather than marks.
getMarkShape()
,
RenderedGridMarks.Iterator.markShape()
public java.awt.Paint getMarkPaint()
setMarkPaint(java.awt.Paint)
,
RenderedGridMarks.Iterator.markPaint()
public void setMarkPaint(java.awt.Paint paint)
getMarkPaint()
,
RenderedGridMarks.Iterator.markPaint()
public java.awt.geom.Rectangle2D getPreferredArea()
getPreferredArea
in class RenderedLayer
null
if unknow or not applicable.RenderedLayer.getPreferredPixelSize()
,
RenderedLayer.getCoordinateSystem()
public float getZOrder()
gridCoverage.getEnvelope().getCenter(2)
.
Otherwise, the default value is Float.POSITIVE_INFINITY
in order to paint
the marks over everything else. The default value can be overriden with a call to
RenderedLayer.setZOrder(float)
.
getZOrder
in class RenderedLayer
RenderedLayer.setZOrder(float)
public MarkIterator getMarkIterator()
RenderedGridMarks.Iterator
.
getMarkIterator
in class RenderedMarks
public Unit getAmplitudeUnit()
getAmplitudeUnit
in class RenderedMarks
public double getTypicalAmplitude()
getTypicalAmplitude
in class RenderedMarks
protected void paint(RenderingContext context) throws org.opengis.referencing.operation.TransformException
paint
in class RenderedMarks
org.opengis.referencing.operation.TransformException
- si une projection
cartographique ?tait n?cessaire et a ?chou?e.MarkIterator.position()
,
MarkIterator.markShape()
,
MarkIterator.markIcon()
,
MarkIterator.geographicArea()
,
MarkIterator.label()
,
RenderedMarks.getTypicalAmplitude()
,
RenderedMarks.getAmplitudeUnit()
,
MarkIterator.paint(java.awt.Graphics2D, java.awt.Shape, java.awt.Shape, java.awt.image.RenderedImage, java.awt.geom.AffineTransform, java.awt.font.GlyphVector, java.awt.geom.Point2D.Float)
public void dispose()
dispose
in class RenderedLayer
Renderer.dispose()
,
PlanarImage.dispose()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |