@Api(allMethods=true) public class Feature extends Object implements Serializable
InternalFeature. This object can be sent to the client.| Constructor and Description |
|---|
Feature()
Default constructor - does nothing.
|
Feature(String id)
Initialize a feature with it's identifier.
|
| Modifier and Type | Method and Description |
|---|---|
Map<String,Attribute> |
getAttributes()
Get the full mapping of attributes for this feature.
|
String |
getCrs()
Crs code which is used (or should be used) for the geometry in the feature.
|
org.geomajas.geometry.Geometry |
getGeometry()
Get this feature's geometric attribute.
|
String |
getId()
Get the feature's unique identifier.
|
String |
getLabel()
Get the label-string for this feature.
|
String |
getStyleId()
Get the identifier for the styling that applies on this feature.
|
boolean |
isClipped()
Has this feature's geometry been clipped? If so, it was probably because it was too large for the client to
handle.
|
boolean |
isDeletable()
Is the logged in user allowed to delete this feature?
|
boolean |
isUpdatable()
Is the logged in user allowed to edit this feature?
|
void |
setAttributes(Map<String,Attribute> attributes)
Set the full mapping of attributes for this feature.
|
void |
setClipped(boolean clipped)
Set whether or not the feature's geometry has been clipped.
|
void |
setCrs(String crs)
Set the crs code which us used (or should be used) for the geometry in the feature.
|
void |
setDeletable(boolean deletable)
Set whether the logged in user is allowed to delete this feature.
|
void |
setGeometry(org.geomajas.geometry.Geometry geometry)
Set this feature's geometric attribute.
|
void |
setId(String id)
Set the feature's unique identifier.
|
void |
setLabel(String label)
Set a new label-string for this feature.
|
void |
setStyleId(String styleId)
Set the identifier for the styling that applies on this feature.
|
void |
setUpdatable(boolean editable)
Set whether the logged in user is allowed to edit/update this feature.
|
String |
toString()
Transform this feature to an easily readable string (id + " - " + label).
|
public Feature()
public Feature(String id)
id - The feature's unique identifier in the layer.public String toString()
public String getId()
public void setId(String id)
id - feature idpublic Map<String,Attribute> getAttributes()
Attribute objects contain the actual values for this feature.public void setAttributes(Map<String,Attribute> attributes)
Attribute objects contain the actual values for this feature.attributes - The name-value mapping of attributes for this feature.public org.geomajas.geometry.Geometry getGeometry()
public void setGeometry(org.geomajas.geometry.Geometry geometry)
geometry - The geometric object.public String getLabel()
public void setLabel(String label)
label - The new label value.public boolean isClipped()
public void setClipped(boolean clipped)
clipped - Is the geometry clipped?public boolean isUpdatable()
public void setUpdatable(boolean editable)
editable - true when edit/update is allowed for this featurepublic boolean isDeletable()
public void setDeletable(boolean deletable)
deletable - true when deleting this feature is allowedpublic String getStyleId()
public void setStyleId(String styleId)
styleId - The style configuration identifier from the vector layer's styling configuration.public String getCrs()
public void setCrs(String crs)
crs - crs code for featureCopyright © 2015 Geosparc. All Rights Reserved.