lt.monarch.chart.legend
Class Legend.RangeRepresentation

java.lang.Object
  extended by lt.monarch.chart.legend.Legend.RangeRepresentation
All Implemented Interfaces:
java.io.Serializable
Enclosing class:
Legend

public static class Legend.RangeRepresentation
extends java.lang.Object
implements java.io.Serializable

Inner range representation class used for representing ranges, such as: 1..6 or 1-6 or [1-6]

See Also:
Serialized Form

Constructor Summary
Constructor and Description
Legend.RangeRepresentation()
           
 
Method Summary
Modifier and Type Method and Description
 java.lang.String getRangeSeparator()
          Gets range separation mark
 boolean isBracketsWithInclusion()
          Gets if showing brackets with inclusion enabled, i.e.
 boolean isShowBrackets()
          Gets if showing brackets is enabled, i.e.
 void setBracketsWithInclusion(boolean bracketsWithInclusion)
          Enable showing brackets with inclusion, i.e.
 void setRangeSeparator(java.lang.String rangeSeparator)
          Sets range separation mark.
 void setShowBrackets(boolean showBrackets)
          Enable showing brackets, i.e.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Legend.RangeRepresentation

public Legend.RangeRepresentation()
Method Detail

getRangeSeparator

public java.lang.String getRangeSeparator()
Gets range separation mark

Returns:
the range separation mark

setRangeSeparator

public void setRangeSeparator(java.lang.String rangeSeparator)
Sets range separation mark. (use something like ":", ";" or "-".

Parameters:
rangeSeparator - the range separation mark

isShowBrackets

public boolean isShowBrackets()
Gets if showing brackets is enabled, i.e. "( )"

Returns:
true if showing brackets is enabled

setShowBrackets

public void setShowBrackets(boolean showBrackets)
Enable showing brackets, i.e. "( )"

Parameters:
showBrackets - true if to enable showing brackets

isBracketsWithInclusion

public boolean isBracketsWithInclusion()
Gets if showing brackets with inclusion enabled, i.e. "[ )".

Returns:
true if showing brackets with inclusion is enabled

setBracketsWithInclusion

public void setBracketsWithInclusion(boolean bracketsWithInclusion)
Enable showing brackets with inclusion, i.e. "[ )". showBrackets option must be enabled for this to take effect.

Parameters:
bracketsWithInclusion - true if enable showing brackets with inclusion.