Class StatusBar

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Container
                   |
                   +----StatusBar

public class StatusBar
extends Container
implements KeyListener, FocusListener, MouseListener, ToolTips
This class represents status bar below the matrix with switching time step label/text field.


Constructor Index

 o StatusBar(String)
Constructs status bar with given label.

Method Index

 o addActionListener(ActionListener)
Adds the specified action listener to receive action events from this component.
 o extractTimeStep()
Returns string presentation of time step.
 o focusGained(FocusEvent)
Handles the focusGained.
 o focusLost(FocusEvent)
Handles the focusLost.
 o getLabel()
Returns label.
 o getTip(int)
Returns tool tip for the status bar.
 o getTipLocation(Container)
Returns tool tip location for the status bar.
 o keyPressed(KeyEvent)
Handles the keyPressed event.
 o keyReleased(KeyEvent)
Handles the keyReleased event.
 o keyTyped(KeyEvent)
Handles the keyTyped event.
 o mouseClicked(MouseEvent)
Handles the mouseClicked event - switches between time step label and text field.
 o mouseEntered(MouseEvent)
Handles the mouseEntered event - updates tool tips information.
 o mouseExited(MouseEvent)
Handles the mouseExited event - updates tool tips information.
 o mousePressed(MouseEvent)
Handles the mousePressed event.
 o mouseReleased(MouseEvent)
Handles the mouseReleased event.
 o removeActionListener(ActionListener)
Removes the specified action listener so that it no longer receives action events from this component.
 o setLabel(String)
Sets new label.

Constructors

 o StatusBar
 public StatusBar(String label)
Constructs status bar with given label.

Parameters:
label - text representation of label.

Methods

 o getLabel
 public Label getLabel()
Returns label.

Returns:
label of status bar.
 o setLabel
 public void setLabel(String label)
Sets new label.

Parameters:
label - text representation of label.
 o extractTimeStep
 public String extractTimeStep()
Returns string presentation of time step.

Returns:
string presentation of time step
 o addActionListener
 public void addActionListener(ActionListener listener)
Adds the specified action listener to receive action events from this component.

Parameters:
l - the action listener.
See Also:
ActionListener
 o removeActionListener
 public void removeActionListener(ActionListener listener)
Removes the specified action listener so that it no longer receives action events from this component.

Parameters:
l - the action listener.
See Also:
ActionListener
 o getTip
 public String getTip(int type)
Returns tool tip for the status bar.

Returns:
tool tip.
 o getTipLocation
 public Point getTipLocation(Container painter)
Returns tool tip location for the status bar.

Parameters:
painter - container which paints the tip.
Returns:
desired location for tool tip.
 o focusGained
 public void focusGained(FocusEvent f)
Handles the focusGained. Changes position of caret of text field.

Parameters:
e - the focus event
 o focusLost
 public void focusLost(FocusEvent f)
Handles the focusLost.

Parameters:
e - the focus event
 o keyTyped
 public void keyTyped(KeyEvent k)
Handles the keyTyped event.

Parameters:
e - the key event
 o keyReleased
 public void keyReleased(KeyEvent k)
Handles the keyReleased event.

Parameters:
e - the key event
 o keyPressed
 public void keyPressed(KeyEvent k)
Handles the keyPressed event. Escape terminates text field mode. Enter updates time step value.

Parameters:
e - the key event
 o mouseReleased
 public void mouseReleased(MouseEvent e)
Handles the mouseReleased event.

Parameters:
e - the mouse event
 o mousePressed
 public void mousePressed(MouseEvent e)
Handles the mousePressed event.

Parameters:
e - the mouse event
 o mouseClicked
 public void mouseClicked(MouseEvent e)
Handles the mouseClicked event - switches between time step label and text field.

Parameters:
e - the mouse event
 o mouseEntered
 public void mouseEntered(MouseEvent e)
Handles the mouseEntered event - updates tool tips information.

Parameters:
e - the mouse event
 o mouseExited
 public void mouseExited(MouseEvent e)
Handles the mouseExited event - updates tool tips information.

Parameters:
e - the mouse event