
Public Member Functions | |
| ScrollData (DisplayLabel displayLabel) | |
| The constructor takes information from a DisplayLabel. | |
| void | update () |
| This function calculates distances used by left() and right() but should never be called directly. | |
| void | left () |
| Scroll left if possible. | |
| void | right () |
| Scroll right if possible. | |
Package Functions | |
| final LeftOrRight | getScrollDirections () |
| Find the directions in which it is possible to scroll. | |
Package Attributes | |
| boolean | atRight |
| Keep a record of whether dot postion is or is not at right of display. | |
Private Attributes | |
| DisplayLabel | displayLabel |
| Keep a reference to owning object. | |
| final java.util.Vector< Integer > | dots |
| Keep a reference to dots. | |
| java.util.Vector< Integer > | distances |
| Distances between dot posistion. | |
| jscicalc.DisplayLabel.ScrollData.ScrollData | ( | DisplayLabel | displayLabel | ) |
The constructor takes information from a DisplayLabel.
| displayLabel | The object used for construction |
References jscicalc.DisplayLabel.ScrollData.atRight, jscicalc.DisplayLabel.ScrollData.distances, jscicalc.Navigator.dots, jscicalc.DisplayLabel.ScrollData.dots, and jscicalc.ScrollableLabel.navigator.
| void jscicalc.DisplayLabel.ScrollData.update | ( | ) |
This function calculates distances used by left() and right() but should never be called directly.
Instead, set the updateFlag of displayCaret and the values get calculated when the Caret is repainted.
References jscicalc.DisplayLabel.ScrollData.distances, jscicalc.DisplayLabel.ScrollData.dots, and jscicalc.ScrollableLabel.textPane.
Referenced by jscicalc.DisplayLabel.DisplayCaret.paint().
| final LeftOrRight jscicalc.DisplayLabel.ScrollData.getScrollDirections | ( | ) | [package] |
Find the directions in which it is possible to scroll.
References jscicalc.DisplayLabel.ScrollData.atRight, jscicalc.DisplayLabel.ScrollData.displayLabel, jscicalc.DisplayLabel.ScrollData.distances, jscicalc.ScrollableLabel.dotPosition, jscicalc.DisplayLabel.ScrollData.dots, jscicalc.DisplayLabel.ScrollData.left(), and jscicalc.DisplayLabel.ScrollData.right().
Referenced by jscicalc.DisplayLabel.getScrollDirections().
| void jscicalc.DisplayLabel.ScrollData.left | ( | ) |
Scroll left if possible.
References jscicalc.DisplayLabel.ScrollData.atRight, jscicalc.DisplayLabel.ScrollData.displayLabel, jscicalc.DisplayLabel.ScrollData.distances, jscicalc.ScrollableLabel.dotPosition, jscicalc.DisplayLabel.ScrollData.dots, and jscicalc.ScrollableLabel.textPane.
Referenced by jscicalc.DisplayLabel.ScrollData.getScrollDirections(), and jscicalc.DisplayLabel.left().
| void jscicalc.DisplayLabel.ScrollData.right | ( | ) |
Scroll right if possible.
References jscicalc.DisplayLabel.ScrollData.atRight, jscicalc.DisplayLabel.ScrollData.displayLabel, jscicalc.DisplayLabel.ScrollData.distances, jscicalc.ScrollableLabel.dotPosition, jscicalc.DisplayLabel.ScrollData.dots, and jscicalc.ScrollableLabel.textPane.
Referenced by jscicalc.DisplayLabel.ScrollData.getScrollDirections(), and jscicalc.DisplayLabel.right().
Keep a reference to owning object.
Referenced by jscicalc.DisplayLabel.ScrollData.getScrollDirections(), jscicalc.DisplayLabel.ScrollData.left(), and jscicalc.DisplayLabel.ScrollData.right().
final java.util.Vector<Integer> jscicalc.DisplayLabel.ScrollData.dots [private] |
java.util.Vector<Integer> jscicalc.DisplayLabel.ScrollData.distances [private] |
Distances between dot posistion.
Referenced by jscicalc.DisplayLabel.ScrollData.getScrollDirections(), jscicalc.DisplayLabel.ScrollData.left(), jscicalc.DisplayLabel.ScrollData.right(), jscicalc.DisplayLabel.ScrollData.ScrollData(), and jscicalc.DisplayLabel.ScrollData.update().
boolean jscicalc.DisplayLabel.ScrollData.atRight [package] |
Keep a record of whether dot postion is or is not at right of display.
Referenced by jscicalc.DisplayLabel.ScrollData.getScrollDirections(), jscicalc.DisplayLabel.ScrollData.left(), jscicalc.DisplayLabel.ScrollData.right(), and jscicalc.DisplayLabel.ScrollData.ScrollData().
1.5.5