clickDetector
Class ClickBTDisplay.ICIScaleManager

java.lang.Object
  extended by clickDetector.ClickBTDisplay.VScaleManager
      extended by clickDetector.ClickBTDisplay.ICIScaleManager
All Implemented Interfaces:
java.awt.event.AdjustmentListener, java.util.EventListener
Enclosing class:
ClickBTDisplay

private class ClickBTDisplay.ICIScaleManager
extends ClickBTDisplay.VScaleManager


Field Summary
 
Fields inherited from class clickDetector.ClickBTDisplay.VScaleManager
currentRange, currentStart, lastZoomShape
 
Constructor Summary
ClickBTDisplay.ICIScaleManager()
           
 
Method Summary
 int getCoordinateType()
           
 double getMax()
           
 double getMin()
           
 double getStep()
          Get unit step for scroll bar (e.g.
 java.lang.String getTitle()
           
 double getYAxisInterval()
           
 double scrollToValue(int scrollPos)
          Convert a scroll bar position back into avalue.
 void setSelected()
           
 void setZoom(ZoomShape zoomShape)
           
 int valueToScroll(double value, int visAmount)
          convert a value to a scroll bar position
 
Methods inherited from class clickDetector.ClickBTDisplay.VScaleManager
adjustmentValueChanged, calculateScales, checkNoZoom, getCurrentEnd, getCurrentRange, getCurrentStart, getLastZoom, restoreDefaults, setupScrollBar
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClickBTDisplay.ICIScaleManager

public ClickBTDisplay.ICIScaleManager()
Method Detail

getCoordinateType

public int getCoordinateType()
Specified by:
getCoordinateType in class ClickBTDisplay.VScaleManager

setSelected

public void setSelected()
Overrides:
setSelected in class ClickBTDisplay.VScaleManager

setZoom

public void setZoom(ZoomShape zoomShape)
Overrides:
setZoom in class ClickBTDisplay.VScaleManager

getMax

public double getMax()
Specified by:
getMax in class ClickBTDisplay.VScaleManager
Returns:
the minimum value for the scroll bar

getMin

public double getMin()
Specified by:
getMin in class ClickBTDisplay.VScaleManager
Returns:
the maximum value for the scroll bar

getStep

public double getStep()
Description copied from class: ClickBTDisplay.VScaleManager
Get unit step for scroll bar (e.g. 0.1 if you want a bearing scroll to be in 1/10 degree steps).

Specified by:
getStep in class ClickBTDisplay.VScaleManager
Returns:
unit step

getTitle

public java.lang.String getTitle()
Specified by:
getTitle in class ClickBTDisplay.VScaleManager
Returns:
Title to use in the display axis.

scrollToValue

public double scrollToValue(int scrollPos)
Description copied from class: ClickBTDisplay.VScaleManager
Convert a scroll bar position back into avalue.

Specified by:
scrollToValue in class ClickBTDisplay.VScaleManager
Parameters:
scrollPos - scroll position
Returns:
new value

valueToScroll

public int valueToScroll(double value,
                         int visAmount)
Description copied from class: ClickBTDisplay.VScaleManager
convert a value to a scroll bar position

Specified by:
valueToScroll in class ClickBTDisplay.VScaleManager
Parameters:
value - value to convert
visAmount - visible amount of scroll br
Returns:
new scroll bar position

getYAxisInterval

public double getYAxisInterval()
Specified by:
getYAxisInterval in class ClickBTDisplay.VScaleManager