Package noaa.coastwatch.render.feature
Class PointFeatureSource
java.lang.Object
noaa.coastwatch.render.feature.AbstractFeatureSource
noaa.coastwatch.render.feature.PointFeatureSource
- All Implemented Interfaces:
Iterable<Feature>
,FeatureSource
- Direct Known Subclasses:
ColocatedPointFeatureSource
,GriddedPointGenerator
,IQuamNCReader
The
PointFeatureSource
class supplies and renders
PointFeature
data with user-supplied plot symbols.- Since:
- 3.2.0
- Author:
- Peter Hollemans
-
Field Summary
Fields inherited from class noaa.coastwatch.render.feature.AbstractFeatureSource
area, featureList
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
render
(Graphics2D g, EarthImageTransform trans, PointFeatureSymbol symbol) Renders the selected point feature data to a graphics context.void
render
(Graphics2D g, EarthImageTransform trans, PointFeatureSymbol symbol, Map<Rectangle, PointFeature> rectToFeatureMap) Renders the selected point feature data to a graphics context.Methods inherited from class noaa.coastwatch.render.feature.AbstractFeatureSource
getArea, getAttributeCount, getAttributeNameMap, getAttributes, getFilter, iterator, select, select, setAttributes, setFilter
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
PointFeatureSource
public PointFeatureSource()
-
-
Method Details
-
render
Renders the selected point feature data to a graphics context.- Parameters:
g
- the graphics context for drawing.trans
- the earth image transform for converting Earth locations to image points.symbol
- the symbol to use for rendering each point feature.
-
render
public void render(Graphics2D g, EarthImageTransform trans, PointFeatureSymbol symbol, Map<Rectangle, PointFeature> rectToFeatureMap) Renders the selected point feature data to a graphics context.- Parameters:
g
- the graphics context for drawing.trans
- the earth image transform for converting Earth locations to image points.symbol
- the symbol to use for rendering each point feature.rectToFeatureMap
- the map of rectangle to point feature for the rendering operation, or null to not save this information. This map can later be used to easily recall what point features were drawn where.
-