com.esri.core.renderer
Class ClassBreakInfo

java.lang.Object
  extended by com.esri.core.renderer.ClassBreakInfo

public final class ClassBreakInfo
extends Object

Holds information required to define a class break.


Constructor Summary
ClassBreakInfo(double minimum, double maximum, Symbol symbol)
          Create a class break definition.
ClassBreakInfo(org.codehaus.jackson.JsonNode node, double minValue)
          Creates a break definition from a JSON node.
 
Method Summary
 boolean equals(Object obj)
           
 String getDescription()
          Gets the description associated with this break.
 String getLabel()
          Gets the label associated with this break.
 double getMaximum()
          Gets the maximum value for this break.
 double getMinimum()
          Gets the minimum value for this break.
 Symbol getSymbol()
          Gets the symbol used for this break.
 int hashCode()
           
 String toJson()
          Converts into a JSON string.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClassBreakInfo

public ClassBreakInfo(double minimum,
                      double maximum,
                      Symbol symbol)
Create a class break definition. The range of the break includes the minimum value but does not include the maximum value.

Parameters:
minimum - Minimum value of the break.
maximum - Maximum value of the break.
symbol - The symbol to use for the break.

ClassBreakInfo

public ClassBreakInfo(org.codehaus.jackson.JsonNode node,
                      double minValue)
Creates a break definition from a JSON node.

Parameters:
node - The node to use.
minValue - The minimum value to use - JSON does not provide a minimum.
Method Detail

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

getMinimum

public double getMinimum()
Gets the minimum value for this break.

Returns:
The minimum value.

getMaximum

public double getMaximum()
Gets the maximum value for this break.

Returns:
The maximum value.

getSymbol

public Symbol getSymbol()
Gets the symbol used for this break.

Returns:
The symbol used for this break.

getLabel

public String getLabel()
Gets the label associated with this break.

Returns:
The label.

getDescription

public String getDescription()
Gets the description associated with this break.

Returns:
The description.

toJson

public String toJson()
              throws Exception
Converts into a JSON string.

Returns:
a JSON string
Throws:
Exception


Copyright © 2012. All Rights Reserved.