org.gwtopenmaps.openlayers.client.control
Class GraticuleOptions

java.lang.Object
  extended by org.gwtopenmaps.openlayers.client.util.JSObjectWrapper
      extended by org.gwtopenmaps.openlayers.client.OpenLayersObjectWrapper
          extended by org.gwtopenmaps.openlayers.client.OpenLayersEObjectWrapper
              extended by org.gwtopenmaps.openlayers.client.control.ControlOptions
                  extended by org.gwtopenmaps.openlayers.client.control.GraticuleOptions

public class GraticuleOptions
extends ControlOptions

Author:
lorenzo

Field Summary
 
Fields inherited from class org.gwtopenmaps.openlayers.client.OpenLayersEObjectWrapper
eventListeners
 
Constructor Summary
GraticuleOptions()
           
 
Method Summary
 void setDisplayInLayerSwitcher(boolean isDisplay)
          APIProperty: displayInLayerSwitcher {Boolean} Allows the Graticule control to be switched on and off.
 void setLabelFormat(String format)
          APIProperty: labelFormat {String} the format of the labels, default = 'dm'.
 void setLabelled(boolean isLabelled)
          APIProperty: labelled {Boolean} Should the graticule lines be labelled?.
 void setLabelSymbolizer(TextSymbolizer text)
          APIProperty: labelSymbolizer {symbolizer} the symbolizer used to render labels
 void setLayerName(String name)
          APIProperty: layerName {String} the name to be displayed in the layer switcher
 void setLineSymbolyzer(LineSymbolizer line)
          APIProperty: lineSymbolizer {symbolizer} the symbolizer used to render lines IMPORTANT: when using a lineSymbolizer different from the default, the minimal properties strokeColor, strokeWidth, strokeOpacity have to be set.
 void setNumPoints(int num)
          APIProperty: numPoints {Integer} The number of points to use in each graticule line.
 void setTargetSize(int size)
          APIProperty: targetSize {Integer} The maximum size of the grid in pixels on the map
 void setVisible(boolean isVisible)
          APIProperty: visible {Boolean} should the graticule be initially visible (default=true)
 
Methods inherited from class org.gwtopenmaps.openlayers.client.OpenLayersEObjectWrapper
getListeners, narrowToOpenLayersEObjectWrapper, removeListener
 
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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GraticuleOptions

public GraticuleOptions()
Method Detail

setDisplayInLayerSwitcher

public void setDisplayInLayerSwitcher(boolean isDisplay)
APIProperty: displayInLayerSwitcher {Boolean} Allows the Graticule control to be switched on and off. defaults to true.


setVisible

public void setVisible(boolean isVisible)
APIProperty: visible {Boolean} should the graticule be initially visible (default=true)


setLabelled

public void setLabelled(boolean isLabelled)
APIProperty: labelled {Boolean} Should the graticule lines be labelled?. default=true


setTargetSize

public void setTargetSize(int size)
APIProperty: targetSize {Integer} The maximum size of the grid in pixels on the map


setLabelFormat

public void setLabelFormat(String format)
APIProperty: labelFormat {String} the format of the labels, default = 'dm'. See for other options.


setNumPoints

public void setNumPoints(int num)
APIProperty: numPoints {Integer} The number of points to use in each graticule line. Higher numbers result in a smoother curve for projected maps


setLayerName

public void setLayerName(String name)
APIProperty: layerName {String} the name to be displayed in the layer switcher


setLineSymbolyzer

public void setLineSymbolyzer(LineSymbolizer line)
APIProperty: lineSymbolizer {symbolizer} the symbolizer used to render lines IMPORTANT: when using a lineSymbolizer different from the default, the minimal properties strokeColor, strokeWidth, strokeOpacity have to be set.


setLabelSymbolizer

public void setLabelSymbolizer(TextSymbolizer text)
APIProperty: labelSymbolizer {symbolizer} the symbolizer used to render labels



Copyright © 2011 sourceforge. All Rights Reserved.