public class Vector extends Layer
counter, JS_GLOBAL, objectIds| Constructor and Description | 
|---|
Vector(Source source)
Creates a new instance. 
 | 
Vector(Source source,
      ClusterStyle clusterStyle)
Creates a new instance. 
 | 
Vector(Source source,
      Style style)
Creates a new instance. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
Vector | 
addFeatureDataLoadedListener(VectorFeatureDataLoadedListener listener)
Adds a new listener that will be invoked with feature data is loaded into this layer. 
 | 
Vector | 
addFeaturesLoadedListener(VectorFeaturesLoadedListener listener)
Adds a new listener that will be invoked with feature data is loaded into this layer. 
 | 
List<VectorFeatureDataLoadedListener> | 
getFeatureDataLoadedListeners()  | 
List<VectorFeaturesLoadedListener> | 
getFeaturesLoadedListeners()  | 
String | 
getJsType()
Returns a String with the type of Javascript object that this object represents. 
 | 
Style | 
getStyle()
Returns the style used to draw features. 
 | 
void | 
notifyFeatureDataLoadedListeners(org.apache.wicket.ajax.AjaxRequestTarget target,
                                com.google.gson.JsonArray features)
Notifies all registered listeners that features have been loaded into this layer. 
 | 
void | 
notifyFeaturesLoadedListeners(org.apache.wicket.ajax.AjaxRequestTarget target)
Notifies all registered listeners that features have been loaded into this layer. 
 | 
Vector | 
removeFeatureDataLoadedListener(VectorFeatureDataLoadedListener listener)
Removes a listener from the list of listeners that will be invoked when feature data is loaded into this layer. 
 | 
Vector | 
removeFeaturesLoadedListener(VectorFeaturesLoadedListener listener)
Removes a listener from the list of listeners that will be invoked when feature data is loaded into this layer. 
 | 
String | 
renderJs()
Returns a String with containing the rendered Javascript code for this object. 
 | 
void | 
setStyle(Style style)
Sets the style used to draw features. 
 | 
Vector | 
source(Source source)
Sets the source for this layer. 
 | 
Vector | 
style(Style style)
Sets the style used to draw features. 
 | 
getSource, setSource, setVisibleescapeQuoteJs, getJsId, getJsIdWithSuffixpublic Vector(Source source)
source - Source of data for this layerpublic Vector(Source source, Style style)
source - Source Source of data for this layerstyle - Style used when drawing featurespublic Vector(Source source, ClusterStyle clusterStyle)
source - Source Source of data for this layerclusterStyle - Style used when drawing featurespublic Style getStyle()
public void setStyle(Style style)
style - New valuepublic Vector style(Style style)
style - New valuepublic Vector addFeatureDataLoadedListener(VectorFeatureDataLoadedListener listener)
listener - Listener to invoke when feature data is loadedpublic Vector removeFeatureDataLoadedListener(VectorFeatureDataLoadedListener listener)
listener - Listener to removepublic Vector addFeaturesLoadedListener(VectorFeaturesLoadedListener listener)
listener - Listener to invoke when feature data is loadedpublic Vector removeFeaturesLoadedListener(VectorFeaturesLoadedListener listener)
listener - Listener to removepublic List<VectorFeatureDataLoadedListener> getFeatureDataLoadedListeners()
public List<VectorFeaturesLoadedListener> getFeaturesLoadedListeners()
public void notifyFeatureDataLoadedListeners(org.apache.wicket.ajax.AjaxRequestTarget target,
                                    com.google.gson.JsonArray features)
target - Ajax request targetfeatures - JsonArray with the list of loaded featurespublic void notifyFeaturesLoadedListeners(org.apache.wicket.ajax.AjaxRequestTarget target)
target - Ajax request targetpublic Vector source(Source source)
Layerpublic String getJsType()
JavascriptObjectgetJsType in interface IJavascriptObjectgetJsType in class JavascriptObjectpublic String renderJs()
JavascriptObjectrenderJs in interface IJavascriptObjectrenderJs in class JavascriptObjectCopyright © 2015. All rights reserved.