sonification.dataimport.visbards_resourcetoolkit.model
Class DefaultRangeModel

java.lang.Object
  extended by sonification.dataimport.visbards_resourcetoolkit.model.DefaultRangeModel
All Implemented Interfaces:
RangeModel

public class DefaultRangeModel
extends java.lang.Object
implements RangeModel


Constructor Summary
DefaultRangeModel()
           
DefaultRangeModel(Range overall)
           
DefaultRangeModel(Range overall, Range selected)
           
 
Method Summary
 void addListener(RangeModelListener listener)
          Registers a listener.
 Range getOverallRange()
          Returns the overall time range, i.e.
 Range getSelectedRange()
          Returns the selected time range.
 boolean isValidRange(Range range)
          returns true if the range is valid, false otherwise
 boolean isWithinScope(Range range)
          returns true if the given range is within the current scope, false otherwise
 void removeListener(RangeModelListener listener)
          Unregisters a listener.
 void setOverallRange(Range range)
          set the overall time range, i.e.
 void setSelectedRange(Range range)
          set the selected time range, i.e.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultRangeModel

public DefaultRangeModel(Range overall,
                         Range selected)

DefaultRangeModel

public DefaultRangeModel(Range overall)

DefaultRangeModel

public DefaultRangeModel()
Method Detail

setOverallRange

public void setOverallRange(Range range)
set the overall time range, i.e. the maximum possible selected range

Specified by:
setOverallRange in interface RangeModel

getOverallRange

public Range getOverallRange()
Returns the overall time range, i.e. the maximum possible selected range

Specified by:
getOverallRange in interface RangeModel

setSelectedRange

public void setSelectedRange(Range range)
set the selected time range, i.e. the extent

Specified by:
setSelectedRange in interface RangeModel

getSelectedRange

public Range getSelectedRange()
Returns the selected time range.

Specified by:
getSelectedRange in interface RangeModel

isWithinScope

public boolean isWithinScope(Range range)
returns true if the given range is within the current scope, false otherwise

Specified by:
isWithinScope in interface RangeModel

isValidRange

public boolean isValidRange(Range range)
returns true if the range is valid, false otherwise

Specified by:
isValidRange in interface RangeModel

addListener

public void addListener(RangeModelListener listener)
Registers a listener.

Specified by:
addListener in interface RangeModel

removeListener

public void removeListener(RangeModelListener listener)
Unregisters a listener.

Specified by:
removeListener in interface RangeModel