org.gwtopenmaps.openlayers.client.feature
Class VectorFeature

java.lang.Object
  extended by org.gwtopenmaps.openlayers.client.util.JSObjectWrapper
      extended by org.gwtopenmaps.openlayers.client.OpenLayersObjectWrapper
          extended by org.gwtopenmaps.openlayers.client.feature.Feature
              extended by org.gwtopenmaps.openlayers.client.feature.VectorFeature

public class VectorFeature
extends Feature

Author:
Edwin Commandeur - Atlis EJS, Lukas Johansson Class name deviates intentionally from OpenLayers class name. Both vector layers and vector features are called Vector in OpenLayers.

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

VectorFeature

protected VectorFeature(JSObject vectorFeature)

VectorFeature

public VectorFeature(Geometry g)

VectorFeature

public VectorFeature(Geometry g,
                     Style s)
Method Detail

narrowToVectorFeature

public static VectorFeature narrowToVectorFeature(JSObject vectorFeature)

getGeometry

public Geometry getGeometry()
Get vector feature geometry. Example: 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()); };


setFeatureId

public void setFeatureId(String feaureID)
Set the featureId on VectoreFeauture. Remember the featureId must be unique

Parameters:
feaureID -

setAttributes

public void setAttributes(Attributes attributes)
Set the attributes. This object (attributes) holds arbitrary properties that describe the feature.

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.

Parameters:
vectorFeatureAttributes - The attributes to set

getAttributes

public Attributes getAttributes()
Returns:
Attributes object

getAttributes

@Deprecated
public Attributes getAttributes(VectorFeature attributes)
Deprecated. 


getRenderIntent

public String getRenderIntent()

redrawParent

public boolean redrawParent()

getVisibility

public boolean getVisibility()
Determine whether the feature is displayed or not


clone

public VectorFeature clone()
Create a clone of this vector feature. Does not set any non-standard properties.

Overrides:
clone in class Object


Copyright © 2011 sourceforge. All Rights Reserved.