public class MapTypeStyler extends MapObject
Modifier and Type | Class and Description |
---|---|
protected static class |
MapTypeStyler.ArrayProperty |
Constructor and Description |
---|
MapTypeStyler()
Creates new MapTypeStyler object.
|
MapTypeStyler(Map map)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getColor()
Returns value of color property.
|
double |
getGamma()
Returns value of gamma property.
|
java.lang.String |
getHue()
Returns value of hue property.
|
boolean |
getInvertLightness()
Returns value of invertLightness property.
|
double |
getLightness()
Returns value of lightness property.
|
double |
getSaturation()
Returns value of saturation property.
|
java.lang.String |
getVisibility()
Returns value of visibility property.
|
double |
getWeight()
Returns value of weight property.
|
void |
setColor(java.lang.String color)
Sets new value for color property.
|
void |
setGamma(double gamma)
Sets new value for gamma property
|
void |
setHue(java.lang.String hue)
Sets new value for hue property.
|
void |
setInvertLightness(boolean invert)
Sets new value for invertLightness property.
|
void |
setLightness(double lightness)
Sets new value for lightness property.
|
void |
setSaturation(double saturation)
Sets new value for styles property.
|
void |
setVisibility(java.lang.String visibility)
Sets new value for visibility property.
|
void |
setWeight(double weight)
Sets new value for weight property.
|
addEventListener, attachObject, cacheProperties, cacheProperties, clone, createJSValue, dispose, fromJSValue, getJSObject, getMap, getProperties, invokeMethod, propertyChanged, removeEventListener, updateProperty
public MapTypeStyler()
@Deprecated public MapTypeStyler(Map map)
map
- owner Map objectpublic java.lang.String getColor()
Sets the color of the feature. Valid values: An RGB hex string, i.e. '#ff0000'.
setColor(java.lang.String)
public void setColor(java.lang.String color)
color
- new property valuegetColor()
public double getGamma()
Modifies the gamma by raising the lightness to the given power. Valid values: Floating point numbers, [0.01, 10], with 1.0 representing no change.
setGamma(double)
public void setGamma(double gamma)
gamma
- new property value.getGamma()
public java.lang.String getHue()
Sets the hue of the feature to match the hue of the color supplied. Note that the saturation and lightness of the feature is conserved, which means that the feature will not match the color supplied exactly. Valid values: An RGB hex string, i.e. '#ff0000'.
setHue(java.lang.String)
public void setHue(java.lang.String hue)
hue
- new property valuegetHue()
public boolean getInvertLightness()
A value of true will invert the lightness of the feature while preserving the hue and saturation.
setInvertLightness(boolean)
public void setInvertLightness(boolean invert)
invert
- new property valuegetInvertLightness()
public double getLightness()
Shifts lightness of colors by a percentage of the original value if decreasing and a percentage of the remaining value if increasing. Valid values: [-100, 100].
setLightness(double)
public void setLightness(double lightness)
lightness
- new property valuegetLightness()
public double getSaturation()
Shifts the saturation of colors by a percentage of the original value if decreasing and a percentage of the remaining value if increasing. Valid values: [-100, 100].
setSaturation(double)
public void setSaturation(double saturation)
saturation
- new property valuegetSaturation()
public java.lang.String getVisibility()
Sets the visibility of the feature. Valid values: 'on', 'off' or 'simplified'.
setVisibility(java.lang.String)
public void setVisibility(java.lang.String visibility)
visibility
- new property valuegetVisibility()
public double getWeight()
Sets the weight of the feature, in pixels. Valid values: Integers greater than or equal to zero.
setWeight(double)
public void setWeight(double weight)
weight
- new property valuegetWeight()