| Constructor and Description |
|---|
ColorThemingStyle() |
ColorThemingStyle(String attributeName,
Map attributeValueToBasicStyleMap,
BasicStyle defaultStyle) |
| Modifier and Type | Method and Description |
|---|---|
Object |
clone() |
static ColorThemingStyle |
get(Layer layer) |
String |
getAttributeName() |
Map |
getAttributeValueToBasicStyleMap() |
BasicStyle |
getDefaultStyle() |
void |
initialize(Layer layer)
Called before #paint is applied to each Feature.
|
boolean |
isEnabled() |
void |
paint(Feature f,
Graphics2D g,
Viewport viewport) |
void |
setAlpha(int alpha)
Call this method after calling #setAttributeValueToBasicStyleMap
rather than before.
|
void |
setAttributeName(String attributeName) |
void |
setAttributeValueToBasicStyleMap(Map attributeValueToStyleMap)
You can set the keys to Ranges if the Map is a Range.RangeTreeMap.
|
void |
setDefaultStyle(BasicStyle defaultStyle) |
void |
setEnabled(boolean enabled) |
void |
setLineWidth(int lineWidth)
Call this method after calling #setAttributeValueToBasicStyleMap
rather than before.
|
static Object |
trimIfString(Object object) |
public ColorThemingStyle()
public ColorThemingStyle(String attributeName, Map attributeValueToBasicStyleMap, BasicStyle defaultStyle)
defaultStyle - null to prevent drawing features with a null
attribute valuepublic void setAlpha(int alpha)
public void setLineWidth(int lineWidth)
public void paint(Feature f, Graphics2D g, Viewport viewport) throws Exception
public String getAttributeName()
public void setAttributeValueToBasicStyleMap(Map attributeValueToStyleMap)
public void setAttributeName(String attributeName)
public Map getAttributeValueToBasicStyleMap()
public void initialize(Layer layer)
Styleinitialize in interface Stylepublic void setEnabled(boolean enabled)
setEnabled in interface Stylepublic static ColorThemingStyle get(Layer layer)
public BasicStyle getDefaultStyle()
public void setDefaultStyle(BasicStyle defaultStyle)
Copyright © 2015. All rights reserved.