|
|||||||||||
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.RenderedGeometries
A layer for a GeometryCollection
object. Instances of this class are typically
used for isobaths. Each isobath (e.g. sea-level, 50 meters, 100 meters...) may be rendererd
with an instance of RenderedGeometries
.
Field Summary |
Fields inherited from class org.geotools.renderer.j2d.RenderedLayer |
listeners |
Constructor Summary | |
RenderedGeometries(GeometryCollection geometry)
Construct a layer for the specified geometry. |
Method Summary | |
void |
dispose()
Provides a hint that a layer will no longer be accessed from a reference in user space. |
java.awt.Paint |
getContour()
Returns the default contouring color. |
java.awt.Paint |
getForeground()
Returns the default filling color or paint. |
Geometry |
getGeometry()
Returns the geometry for 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. |
protected boolean |
getRenderUsingMapCS()
Returns true if polygon rendering
uses the "real world" coordinate system, or false if it uses the output device
coordinate system. |
protected java.lang.String |
getToolTipText(GeoMouseEvent event)
Returns a tool tip text for the specified coordinates. |
float |
getZOrder()
Returns the z-order for this layer. |
protected void |
paint(java.awt.Graphics2D graphics,
java.awt.Shape polyline,
Style2D style)
Invoked automatically when a polyline is about to be draw. |
protected void |
paint(RenderingContext context)
Draw the geometry. |
void |
setContour(java.awt.Paint paint)
Sets the contouring color or paint. |
protected void |
setCoordinateSystem(CoordinateSystem cs)
Set the rendering coordinate system for this layer. |
void |
setForeground(java.awt.Paint paint)
Sets the filling color or paint. |
void |
setGeometry(GeometryCollection geometry)
Set a new geometry for this layer. |
protected void |
setRenderUsingMapCS(boolean renderUsingMapCS)
Specifies if polygon rendering uses the "real world" coordinate system. |
Methods inherited from class org.geotools.renderer.j2d.RenderedLayer |
addPropertyChangeListener, addPropertyChangeListener, getAction, getCoordinateSystem, getLocale, getName, 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 RenderedGeometries(GeometryCollection geometry)
geometry
- The geometry, or null
if none.setGeometry(org.geotools.renderer.geom.GeometryCollection)
Method Detail |
public Geometry getGeometry()
null
if none.public void setGeometry(GeometryCollection geometry) throws org.opengis.referencing.operation.TransformException
geometry
- The new geometry, or null
if none.
org.opengis.referencing.operation.TransformException
- if the geometry can't be projected in the
rendering coordinate system.protected void setCoordinateSystem(CoordinateSystem cs) throws org.opengis.referencing.operation.TransformException
setCoordinateSystem
in class RenderedLayer
cs
- The coordinate system.
org.opengis.referencing.operation.TransformException
- if the geometry can't be projected
to the specified coordinate system.public java.awt.Paint getContour()
public void setContour(java.awt.Paint paint)
public java.awt.Paint getForeground()
public void setForeground(java.awt.Paint paint)
public java.awt.geom.Rectangle2D getPreferredArea()
getPreferredArea
in class RenderedLayer
null
if unknow or not applicable.RenderedLayer.getPreferredPixelSize()
,
RenderedLayer.getCoordinateSystem()
public java.awt.geom.Dimension2D getPreferredPixelSize()
getPreferredPixelSize
in class RenderedLayer
null
if none.RenderedLayer.getPreferredArea()
,
RenderedLayer.getCoordinateSystem()
public float getZOrder()
GeometryCollection.getValue()
.
getZOrder
in class RenderedLayer
RenderedLayer.setZOrder(float)
protected boolean getRenderUsingMapCS()
true
if polygon rendering
uses the "real world" coordinate system, or false
if it uses the output device
coordinate system. If true
, then stroke and texture attributes are in "real world" units (usually meters); otherwise,
they are in device units (usually pixels).
protected void setRenderUsingMapCS(boolean renderUsingMapCS)
true
, then stroke
and texture attributes are in "real world" units (usually meters);
otherwise, they are in device units (usually pixels). When using "real world" units,
the visual line width will changes with zoom. When using output device units, the
visual line width are constant under any zoom.
protected void paint(java.awt.Graphics2D graphics, java.awt.Shape polyline, Style2D style)
graphics
- The graphics in which to draw.polyline
- The polyline to draw.style
- The style to apply, or null
if none.protected void paint(RenderingContext context) throws org.opengis.referencing.operation.TransformException
paint
in class RenderedLayer
context
- The set of transformations needed for transforming geographic
coordinates (longitude,latitude) into pixels coordinates.
org.opengis.referencing.operation.TransformException
- If a transformation failed.protected java.lang.String getToolTipText(GeoMouseEvent event)
GeometryCollection.getPolygonName(java.awt.geom.Point2D, java.util.Locale)
.
getToolTipText
in class RenderedLayer
event
- The mouve event with geographic coordin?tes.
null
if there
in no tool tips for this location.Renderer.getToolTipText(org.geotools.renderer.j2d.GeoMouseEvent)
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 |