public class PointFeature extends AbstractFeature
Constructor and Description |
---|
PointFeature(EarthLocation point)
Creates a new point feature with no attributes.
|
PointFeature(EarthLocation point,
java.lang.Object[] attributeArray)
Creates a new point feature with attributes.
|
Modifier and Type | Method and Description |
---|---|
void |
add(EarthLocation point)
Adds a new point to this feature.
|
void |
addAll(Feature feature)
Adds a number of points from another feature to this feature.
|
EarthLocation |
get(int index)
Gets a point from this feature.
|
EarthLocation |
getPoint()
Gets the earth location point.
|
java.util.Iterator |
iterator()
Gets an iterator over the one point in this feature.
|
EarthLocation |
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.
|
equals, getAttribute, getAttributeCount, hashCode, setAttributes
public PointFeature(EarthLocation point, java.lang.Object[] attributeArray)
point
- thae point feature location.attributeArray
- the array of feature attributes.public PointFeature(EarthLocation point)
point
- thae point feature location.public java.util.Iterator iterator()
iterator
in interface java.lang.Iterable<EarthLocation>
iterator
in interface Feature
iterator
in class AbstractFeature
public EarthLocation getPoint()
public void setPoint(EarthLocation point)
public void add(EarthLocation point)
AbstractFeature
add
in class AbstractFeature
public EarthLocation get(int index)
AbstractFeature
get
in class AbstractFeature
public int size()
AbstractFeature
size
in class AbstractFeature
public EarthLocation remove(int index)
AbstractFeature
remove
in class AbstractFeature
public void addAll(Feature feature)
AbstractFeature
addAll
in class AbstractFeature