|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.fhpotsdam.unfolding.data.Feature
de.fhpotsdam.unfolding.data.ShapeFeature
public class ShapeFeature
Stores a list of locations. Is used for lines and polygons.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class de.fhpotsdam.unfolding.data.Feature |
---|
Feature.FeatureType |
Field Summary | |
---|---|
java.util.List<Location> |
locations
The list of locations. |
Fields inherited from class de.fhpotsdam.unfolding.data.Feature |
---|
properties |
Constructor Summary | |
---|---|
ShapeFeature(Feature.FeatureType type)
Creates a shape feature with the type. |
Method Summary | |
---|---|
void |
addLocation(Location location)
Adds a location to this shape feature. |
java.util.List<Location> |
getLocations()
Returns all locations of this shape feature. |
Methods inherited from class de.fhpotsdam.unfolding.data.Feature |
---|
addProperty, getId, getProperties, getProperty, getStringProperty, getType, putProperty, setId, setProperties |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public java.util.List<Location> locations
Constructor Detail |
---|
public ShapeFeature(Feature.FeatureType type)
type
- The type. Should be either Feature.FeatureType.LINES
or Feature.FeatureType.POLYGON
.Method Detail |
---|
public java.util.List<Location> getLocations()
public void addLocation(Location location)
location
- A location.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |