|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.gwtopenmaps.openlayers.client.util.JSObjectWrapper
org.gwtopenmaps.openlayers.client.OpenLayersObjectWrapper
org.gwtopenmaps.openlayers.client.feature.Feature
org.gwtopenmaps.openlayers.client.feature.VectorFeature
public class VectorFeature
| Constructor Summary | |
|---|---|
|
VectorFeature(Geometry g)
|
|
VectorFeature(Geometry g,
Style s)
|
protected |
VectorFeature(JSObject vectorFeature)
|
| Method Summary | |
|---|---|
VectorFeature |
clone()
Create a clone of this vector feature. |
Attributes |
getAttributes()
|
Attributes |
getAttributes(VectorFeature attributes)
Deprecated. |
Geometry |
getGeometry()
Get vector feature geometry. |
String |
getRenderIntent()
|
boolean |
getVisibility()
Determine whether the feature is displayed or not |
static VectorFeature |
narrowToVectorFeature(JSObject vectorFeature)
|
boolean |
redrawParent()
|
void |
setAttributes(Attributes attributes)
Set the attributes. |
void |
setFeatureId(String feaureID)
Set the featureId on VectoreFeauture. |
| Methods inherited from class org.gwtopenmaps.openlayers.client.feature.Feature |
|---|
createPopup, destroy, getCenterLonLat, getFeatureId, getFID, getLayer, getPopup, getStyle, resetPopup, setPopup, setStyle |
| Methods inherited from class org.gwtopenmaps.openlayers.client.OpenLayersObjectWrapper |
|---|
getClassName, getEvents, narrowToOpenLayersObjectWrapper |
| Methods inherited from class org.gwtopenmaps.openlayers.client.util.JSObjectWrapper |
|---|
getJSObject, setJSObject |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected VectorFeature(JSObject vectorFeature)
public VectorFeature(Geometry g)
public VectorFeature(Geometry g,
Style s)
| Method Detail |
|---|
public static VectorFeature narrowToVectorFeature(JSObject vectorFeature)
public Geometry getGeometry()
VectorFeature vf = wkt.read("POINT (1 2)");
Geometry g = vf.getGeometry();
if(g.getClassName().equals(Geometry.POINT_CLASS_NAME){
Point p = Point.narrowToPoint(g.getJSObject());
};
public void setFeatureId(String feaureID)
feaureID - public void setAttributes(Attributes attributes)
Note: the attributes are only applied for styles defined inside a
StyleMap. If just using a single style for the
VectorOptions the attributes will be ignored.
vectorFeatureAttributes - The attributes to setpublic Attributes getAttributes()
@Deprecated public Attributes getAttributes(VectorFeature attributes)
public String getRenderIntent()
public boolean redrawParent()
public boolean getVisibility()
public VectorFeature clone()
clone in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||