com.ontimize.util.gis.client.styling
Class VectorialColorMap
java.lang.Object
com.ontimize.util.gis.client.styling.VectorialColorMap
public class VectorialColorMap
- extends java.lang.Object
Vectorial color map. Used to simplify the definition of fill and stroke colors on style rules.
Xml definition parameters:
| Name |
Description |
Required |
| cmField |
Data field name. This field will be compared with the defined color map entries for color asignation |
Yes |
| cmType |
Color map type. Possible values:"ramp" and "values". Default: "values" |
No |
| ruleParameter |
Rule color modified with this color map: "fill" or "stroke". Default: "fill" |
No |
Sample code:
<VectorialColorMap>
<Attribute name="cmField" value="population" />
<Attribute name="cmType" value="ramp" />
<Attribute name="ruleParameter" value="fill" />
<VectorialColorMapEntry>
...
</VectorialColorMapEntry>
</VectorialColorMap>
- See Also:
VectorialColorMapEntry
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
colorMapEntries
protected java.util.List<VectorialColorMapEntry> colorMapEntries
recordFieldName
protected java.lang.String recordFieldName
recordQuantityType
protected java.lang.String recordQuantityType
ruleParameter
protected java.lang.String ruleParameter
cmType
protected java.lang.String cmType
VectorialColorMap
public VectorialColorMap()
setFieldName
public void setFieldName(java.lang.String fieldName)
getFieldName
public java.lang.String getFieldName()
setQuantityType
public void setQuantityType(java.lang.String quantityType)
getQuantityType
public java.lang.String getQuantityType()
setType
public void setType(java.lang.String cmType)
getType
public java.lang.String getType()
setRuleParameter
public void setRuleParameter(java.lang.String ruleParameter)
getRuleParameter
public java.lang.String getRuleParameter()
addColorMapEntry
public void addColorMapEntry(VectorialColorMapEntry cmEntry)
getColor
public java.awt.Color getColor(java.util.Map<java.lang.String,java.lang.Object> recordValues)
getRampColor
public java.awt.Color getRampColor(java.util.Map<java.lang.String,java.lang.Object> recordValues)
getValueColor
public java.awt.Color getValueColor(java.util.Map<java.lang.String,java.lang.Object> recordValues)
getColorMapEntries
public java.util.List<VectorialColorMapEntry> getColorMapEntries()