|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.google.gwt.core.client.JavaScriptObject
com.google.gwt.maps.client.maptypes.MapTypeStyler
public class MapTypeStyler
A styler affects how a map's elements will be styled. Each MapTypeStyler should contain one and only one key. If more
than one key is specified in a single MapTypeStyler, all but one will be ignored. For example: var rule = {hue:
'#ff0000'}.
See MapTypeStyler API
Doc
| Constructor Summary | |
|---|---|
protected |
MapTypeStyler()
A styler affects how a map's elements will be styled. |
| Method Summary | |
|---|---|
double |
getGamma()
gets Gamma. |
String |
getHue()
gets Sets the hue of the feature to match the hue of the color supplied. |
boolean |
getInvertLightness()
gets Inverts lightness. |
int |
getLightness()
gets Lightness. |
int |
getSaturation()
gets Saturation. |
String |
getVisibility()
gets Visibility: Valid values: 'on', 'off' or 'simplifed'. |
static MapTypeStyler |
newGammaStyler(double gamma)
Create gamma styler. |
static MapTypeStyler |
newHueStyler(String hue)
Create a hue styler. |
static MapTypeStyler |
newInvertLightnessStyler(boolean invertLightness)
Create invert_lightness styler. |
static MapTypeStyler |
newLightnessStyler(int lightness)
Create lightness styler. |
static MapTypeStyler |
newSaturationStyler(int saturation)
Create saturation styler. |
static MapTypeStyler |
newVisibilityStyler(String visibility)
Create visibility styler. |
| Methods inherited from class com.google.gwt.core.client.JavaScriptObject |
|---|
cast, createArray, createFunction, createObject, equals, hashCode, toSource, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
protected MapTypeStyler()
| Method Detail |
|---|
public static final MapTypeStyler newHueStyler(String hue)
hue - i.e. #445566public static final MapTypeStyler newGammaStyler(double gamma)
gamma - [0.01,10]public static final MapTypeStyler newLightnessStyler(int lightness)
lightness - [-100,100]public static final MapTypeStyler newInvertLightnessStyler(boolean invertLightness)
invertLightness - public static final MapTypeStyler newSaturationStyler(int saturation)
saturation - [-100, 100]public static final MapTypeStyler newVisibilityStyler(String visibility)
visibility - {'on'|'off'|'simplifed'}public final double getGamma()
public final String getHue()
public final boolean getInvertLightness()
public final int getLightness()
public final int getSaturation()
public final String getVisibility()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||