com.ontimize.util.gis.client.styling
Class VectorialColorMapEntry

java.lang.Object
  extended by com.ontimize.util.gis.client.styling.VectorialColorMapEntry

public class VectorialColorMapEntry
extends java.lang.Object

Vectorial color map entry.

Xml definition parameters:

Name Description Required
color Color in hex code Yes
quantity Value to assign layer elements color Yes
label Label for legends creation No
opacity Float opacity value No

Sample code:

<VectorialColorMapEntry>
     <Attribute name="color" value="#AA1145" />
     <Attribute name="quantity" value="100.0" />
     <Attribute name="label" value="Maximum" />
</VectorialColorMapEntry>


Field Summary
protected  java.awt.Color entryColor
           
protected  java.lang.String entryLabel
           
protected  float entryOpacity
           
protected  java.lang.Object entryQuantity
           
protected  org.opengis.filter.Filter equalFilter
           
protected  org.opengis.filter.FilterFactory ff
           
protected  org.opengis.filter.Filter greaterFilter
           
protected  org.opengis.filter.Filter lessFilter
           
 
Constructor Summary
VectorialColorMapEntry()
           
VectorialColorMapEntry(java.awt.Color color, float opacity, java.lang.Object quantity, java.lang.String label)
           
VectorialColorMapEntry(java.awt.Color color, java.lang.Object quantity, java.lang.String label)
           
 
Method Summary
 java.awt.Color getColor()
           
 java.lang.String getLabel()
           
 float getOpacity()
           
 java.lang.Object getQuantity()
           
protected  boolean isEqualTo(java.lang.Object value)
           
protected  boolean isGreaterThan(java.lang.Object value)
           
protected  boolean isLessThan(java.lang.Object value)
           
 void setColor(java.awt.Color color)
           
 void setLabel(java.lang.String label)
           
 void setOpacity(float opacity)
           
 void setQuantity(java.lang.Object quantity)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

entryColor

protected java.awt.Color entryColor

entryOpacity

protected float entryOpacity

entryQuantity

protected java.lang.Object entryQuantity

entryLabel

protected java.lang.String entryLabel

equalFilter

protected org.opengis.filter.Filter equalFilter

lessFilter

protected org.opengis.filter.Filter lessFilter

greaterFilter

protected org.opengis.filter.Filter greaterFilter

ff

protected org.opengis.filter.FilterFactory ff
Constructor Detail

VectorialColorMapEntry

public VectorialColorMapEntry()

VectorialColorMapEntry

public VectorialColorMapEntry(java.awt.Color color,
                              java.lang.Object quantity,
                              java.lang.String label)

VectorialColorMapEntry

public VectorialColorMapEntry(java.awt.Color color,
                              float opacity,
                              java.lang.Object quantity,
                              java.lang.String label)
Method Detail

setColor

public void setColor(java.awt.Color color)

getColor

public java.awt.Color getColor()

setOpacity

public void setOpacity(float opacity)

getOpacity

public float getOpacity()

setQuantity

public void setQuantity(java.lang.Object quantity)

getQuantity

public java.lang.Object getQuantity()

setLabel

public void setLabel(java.lang.String label)

getLabel

public java.lang.String getLabel()

isEqualTo

protected boolean isEqualTo(java.lang.Object value)

isLessThan

protected boolean isLessThan(java.lang.Object value)

isGreaterThan

protected boolean isGreaterThan(java.lang.Object value)