|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectclickDetector.ClickBTDisplay.VScaleManager
abstract class ClickBTDisplay.VScaleManager
Class for managing vertical scales and scrolls which will either be bearing, ICI or Amplitude.
Jobs this beast has to do are:
set up the scroll bar at start and after a zoom
set the yStart and yScale values whatever the zoom state
write the correct values and titles on the y axis.
| Field Summary | |
|---|---|
(package private) double |
currentRange
|
(package private) double |
currentStart
|
protected ZoomShape |
lastZoomShape
|
| Constructor Summary | |
|---|---|
ClickBTDisplay.VScaleManager()
|
|
| Method Summary | |
|---|---|
void |
adjustmentValueChanged(java.awt.event.AdjustmentEvent e)
|
void |
calculateScales()
|
boolean |
checkNoZoom()
Check for there being no zooms in this coordinate frame |
abstract int |
getCoordinateType()
|
double |
getCurrentEnd()
Value at the top of the display |
double |
getCurrentRange()
the range from the bottom to the top of the display (may be negative if top of display has smaller values than bottom) |
double |
getCurrentStart()
|
ZoomShape |
getLastZoom()
|
abstract double |
getMax()
|
abstract double |
getMin()
|
abstract double |
getStep()
Get unit step for scroll bar (e.g. |
abstract java.lang.String |
getTitle()
|
abstract double |
getYAxisInterval()
|
void |
restoreDefaults()
|
abstract double |
scrollToValue(int scrollPos)
Convert a scroll bar position back into avalue. |
void |
setSelected()
|
void |
setupScrollBar(double start,
double page)
|
void |
setZoom(ZoomShape zoomShape)
|
abstract int |
valueToScroll(double value,
int visAmount)
convert a value to a scroll bar position |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
double currentStart
double currentRange
protected ZoomShape lastZoomShape
| Constructor Detail |
|---|
ClickBTDisplay.VScaleManager()
| Method Detail |
|---|
public void restoreDefaults()
public void setSelected()
public abstract int getCoordinateType()
public boolean checkNoZoom()
If there was no zoom, restore defaults and return true.
public ZoomShape getLastZoom()
public void setZoom(ZoomShape zoomShape)
public void calculateScales()
public void setupScrollBar(double start,
double page)
public abstract int valueToScroll(double value,
int visAmount)
value - value to convertvisAmount - visible amount of scroll br
public abstract double scrollToValue(int scrollPos)
scrollPos - scroll position
public abstract double getStep()
public abstract double getMin()
public abstract double getMax()
public double getCurrentStart()
public double getCurrentRange()
public double getCurrentEnd()
public abstract java.lang.String getTitle()
public void adjustmentValueChanged(java.awt.event.AdjustmentEvent e)
adjustmentValueChanged in interface java.awt.event.AdjustmentListenerpublic abstract double getYAxisInterval()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||