public class Feature
extends java.lang.Object
Constructor and Description |
---|
Feature() |
Modifier and Type | Method and Description |
---|---|
void |
addProperty(java.lang.String name,
java.lang.Object value)
Adds a general property to the feature.
|
com.codename1.maps.BoundingBox |
calculateBounds()
Calculates a bounding box for this feature.
|
com.codename1.ui.geom.GeneralPath |
getGeometry()
Gets the geometry of this features.
|
java.util.Map |
getProperties()
Gets the properties associated with this feature.
|
void |
setGeometry(com.codename1.ui.geom.GeneralPath path)
Sets the geometry of the feature.
|
public void addProperty(java.lang.String name, java.lang.Object value)
name
- The property namevalue
- The property value.public void setGeometry(com.codename1.ui.geom.GeneralPath path)
path
- The path to represent the geometry of this feature.public com.codename1.ui.geom.GeneralPath getGeometry()
public java.util.Map getProperties()
public com.codename1.maps.BoundingBox calculateBounds()