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
ConstructorsConstructorDescriptionPointFeature(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 TypeMethodDescriptionvoidadd(EarthLocation point) Adds a new point to this feature.voidAdds 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.voidsetPoint(EarthLocation point) Sets the earth location point.intsize()Gets the total number of points in this feature.Methods inherited from class noaa.coastwatch.render.feature.AbstractFeature
equals, getAttribute, getAttributeCount, hashCode, setAttributesMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods 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:
iteratorin interfaceFeature- Specified by:
iteratorin interfaceIterable<EarthLocation>- Overrides:
iteratorin classAbstractFeature- Returns:
- the iterator over points.
-
getPoint
Gets the earth location point. -
setPoint
Sets the earth location point. -
add
Description copied from class:AbstractFeatureAdds a new point to this feature.- Overrides:
addin classAbstractFeature
-
get
Description copied from class:AbstractFeatureGets a point from this feature.- Overrides:
getin classAbstractFeature
-
size
public int size()Description copied from class:AbstractFeatureGets the total number of points in this feature.- Overrides:
sizein classAbstractFeature
-
remove
Description copied from class:AbstractFeatureRemoves a point from this feature.- Overrides:
removein classAbstractFeature
-
addAll
Description copied from class:AbstractFeatureAdds a number of points from another feature to this feature.- Overrides:
addAllin classAbstractFeature
-