jscicalc.DisplayLabel.ScrollData Class Reference

This class is used to hold the information required for scrolling left and right. More...

Collaboration diagram for jscicalc.DisplayLabel.ScrollData:

Collaboration graph
[legend]

List of all members.

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.


Detailed Description

This class is used to hold the information required for scrolling left and right.

Constructor & Destructor Documentation

jscicalc.DisplayLabel.ScrollData.ScrollData ( DisplayLabel  displayLabel  ) 

The constructor takes information from a DisplayLabel.

Parameters:
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.


Member Function Documentation

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]

void jscicalc.DisplayLabel.ScrollData.left (  ) 

void jscicalc.DisplayLabel.ScrollData.right (  ) 


Member Data Documentation

final java.util.Vector<Integer> jscicalc.DisplayLabel.ScrollData.dots [private]

java.util.Vector<Integer> jscicalc.DisplayLabel.ScrollData.distances [private]


The documentation for this class was generated from the following file:

Generated on Sun Jun 1 08:57:40 2008 for Java Scientific Calculator by  doxygen 1.5.5