public abstract class AbstractFeature extends java.lang.Object implements GeoObject
Constructor and Description |
---|
AbstractFeature() |
Modifier and Type | Method and Description |
---|---|
AbstractFeature |
clone()
A shallow clone
|
AbstractFeature |
deepClone()
A deep clone (except the layer reference)
|
boolean |
equals(java.lang.Object obj) |
Field |
getAttribute(java.lang.String attrName) |
java.util.Set<java.lang.String> |
getAttributeNames()
return the set of attribute names.
|
Field[] |
getAttributes() |
Field[] |
getAttributes(java.lang.String[] names)
Returns the field values for attribute names.
|
java.lang.Object |
getKey()
Gets the key of the selected object.
|
Layer |
getLayer()
Gets the associated layer for this object.
|
abstract java.awt.geom.Rectangle2D |
getMBR()
Returns the minimum bounding rectangle of the spatial attribute.
|
java.lang.Object |
getSpatialAttribute()
Returns the spatial attribute object.
|
abstract java.lang.Object |
getSpatialAttributeClone()
Returns a clone of the spatial attribute
|
abstract int |
getSpatialDimension()
Returns the feature spatial dimension.
|
abstract java.awt.geom.Point2D[] |
getSpatialJavaPoints()
Returns an array of java points representing the vertexes location of the spatial object.
|
boolean |
removeAttribute(java.lang.String attrName) |
boolean |
setAttribute(java.lang.String attrName, Field value) |
void |
setAttributes(Field[] fields)
Sets the field attributes.
|
java.lang.Object |
setKey(java.lang.Object key)
Sets a new key on the object.
|
void |
setLayer(Layer layer)
Sets the layer to be associated with this object.
|
void |
setSpatialAttribute(java.lang.Object spatialAttr)
Sets the spatial attribute object
|
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getDrawable, hashCode, isSubElementOf, substract
public AbstractFeature clone()
clone
in class java.lang.Object
public AbstractFeature deepClone()
public boolean equals(java.lang.Object obj)
public Field getAttribute(java.lang.String attrName)
attrName
-public java.util.Set<java.lang.String> getAttributeNames()
public boolean setAttribute(java.lang.String attrName, Field value)
attrName
-value
-public boolean removeAttribute(java.lang.String attrName)
attrName
-public java.lang.Object getKey()
GeoObject
public java.lang.Object setKey(java.lang.Object key)
GeoObject
public Field[] getAttributes()
public Field[] getAttributes(java.lang.String[] names)
names
- attributespublic void setAttributes(Field[] fields)
fields
-public Layer getLayer()
GeoObject
public void setLayer(Layer layer)
GeoObject
public java.lang.Object getSpatialAttribute()
public void setSpatialAttribute(java.lang.Object spatialAttr)
spatialAttr
-public abstract java.lang.Object getSpatialAttributeClone()
public abstract java.awt.geom.Rectangle2D getMBR()
public abstract int getSpatialDimension()
public abstract java.awt.geom.Point2D[] getSpatialJavaPoints()