Package noaa.coastwatch.render.feature
Class PointFeature
java.lang.Object
noaa.coastwatch.render.feature.AbstractFeature
noaa.coastwatch.render.feature.PointFeature
- All Implemented Interfaces:
Iterable<EarthLocation>
,Feature
-
Field Summary
Fields inherited from class noaa.coastwatch.render.feature.AbstractFeature
points
-
Constructor Summary
ConstructorDescriptionPointFeature
(EarthLocation point) Creates a new point feature with no attributes.PointFeature
(EarthLocation point, Object[] attributeArray) Creates a new point feature with attributes. -
Method Summary
Modifier and TypeMethodDescriptionvoid
add
(EarthLocation point) Adds a new point to this feature.void
Adds a number of points from another feature to this feature.get
(int index) Gets a point from this feature.getPoint()
Gets the earth location point.iterator()
Gets an iterator over the one point in this feature.remove
(int index) Removes a point from this feature.void
setPoint
(EarthLocation point) Sets the earth location point.int
size()
Gets the total number of points in this feature.Methods inherited from class noaa.coastwatch.render.feature.AbstractFeature
equals, getAttribute, getAttributeCount, hashCode, setAttributes
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
PointFeature
Creates a new point feature with attributes.- Parameters:
point
- thae point feature location.attributeArray
- the array of feature attributes, or null for no attributes.
-
PointFeature
Creates a new point feature with no attributes.- Parameters:
point
- thae point feature location.
-
-
Method Details
-
iterator
Gets an iterator over the one point in this feature.- Specified by:
iterator
in interfaceFeature
- Specified by:
iterator
in interfaceIterable<EarthLocation>
- Overrides:
iterator
in classAbstractFeature
- Returns:
- the iterator over points.
-
getPoint
Gets the earth location point. -
setPoint
Sets the earth location point. -
add
Description copied from class:AbstractFeature
Adds a new point to this feature.- Overrides:
add
in classAbstractFeature
-
get
Description copied from class:AbstractFeature
Gets a point from this feature.- Overrides:
get
in classAbstractFeature
-
size
public int size()Description copied from class:AbstractFeature
Gets the total number of points in this feature.- Overrides:
size
in classAbstractFeature
-
remove
Description copied from class:AbstractFeature
Removes a point from this feature.- Overrides:
remove
in classAbstractFeature
-
addAll
Description copied from class:AbstractFeature
Adds a number of points from another feature to this feature.- Overrides:
addAll
in classAbstractFeature
-