lt.monarch.chart.mapper
Interface AxisMapperRange

All Superinterfaces:
Range<java.lang.Double>
All Known Implementing Classes:
AbstractAxisMapperRange, SimpleAxisMapperRange

public interface AxisMapperRange
extends Range<java.lang.Double>

Manages a logical range within an axis mapper. Range defines an axis region of a scrollable axis mapper. The entire axis range is considered to be [0,1]. AxisMapperRange defines a sub-range of the entire [0,1] range.


Method Summary
Modifier and Type Method and Description
 void addListener(AxisMapperRangeListener listener)
          Adds a range change listener.
 boolean isAdjusting()
          Returns true is the range is being changed and has not been finalized yet.
 boolean isMoreZoomAvailable()
          Returns true if the axis can more zoom, false otherwise.
 void removeListener(AxisMapperRangeListener listener)
          Removes a range change listener.
 void setExtent(double ext)
          Sets the range extent.
 void setIsAdjusting(boolean adjusting)
          Sets/unsets adjustment mode.
 void setMinimum(double min)
          Sets the lower range bound.
 void setRange(double min, double max)
          Sets the range.
 
Methods inherited from interface lt.monarch.chart.mapper.Range
getMaximum, getMinimum
 

Method Detail

addListener

void addListener(AxisMapperRangeListener listener)
Adds a range change listener.

Parameters:
listener - listener

removeListener

void removeListener(AxisMapperRangeListener listener)
Removes a range change listener.

Parameters:
listener - listener

isAdjusting

boolean isAdjusting()
Returns true is the range is being changed and has not been finalized yet.

Returns:
is range still adjusting

setMinimum

void setMinimum(double min)
Sets the lower range bound. The upper bound is shifted accordingly.

Parameters:
min - range lower bound

setExtent

void setExtent(double ext)
Sets the range extent. The upper bound is shifted accordingly.

Parameters:
ext - range extent

setRange

void setRange(double min,
              double max)
Sets the range.

Parameters:
min - range lower bound
max - range upper bound

setIsAdjusting

void setIsAdjusting(boolean adjusting)
Sets/unsets adjustment mode. Informs that values are not final and may change.

Parameters:
adjusting - true, if values are final. false otherwise

isMoreZoomAvailable

boolean isMoreZoomAvailable()
Returns true if the axis can more zoom, false otherwise.

Returns:
true, if is more zoom available. false otherwise