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.
-
StatusBar(String)
- Constructs status bar with given label.
-
addActionListener(ActionListener)
- Adds the specified action listener to receive action events from
this component.
-
extractTimeStep()
- Returns string presentation of time step.
-
focusGained(FocusEvent)
- Handles the focusGained.
-
focusLost(FocusEvent)
- Handles the focusLost.
-
getLabel()
- Returns label.
-
getTip(int)
- Returns tool tip for the status bar.
-
getTipLocation(Container)
- Returns tool tip location for the status bar.
-
keyPressed(KeyEvent)
- Handles the keyPressed event.
-
keyReleased(KeyEvent)
- Handles the keyReleased event.
-
keyTyped(KeyEvent)
- Handles the keyTyped event.
-
mouseClicked(MouseEvent)
- Handles the mouseClicked event - switches between time step label and text field.
-
mouseEntered(MouseEvent)
- Handles the mouseEntered event - updates tool tips information.
-
mouseExited(MouseEvent)
- Handles the mouseExited event - updates tool tips information.
-
mousePressed(MouseEvent)
- Handles the mousePressed event.
-
mouseReleased(MouseEvent)
- Handles the mouseReleased event.
-
removeActionListener(ActionListener)
- Removes the specified action listener so that it no longer
receives action events from this component.
-
setLabel(String)
- Sets new label.
StatusBar
public StatusBar(String label)
- Constructs status bar with given label.
- Parameters:
- label - text representation of label.
getLabel
public Label getLabel()
- Returns label.
- Returns:
- label of status bar.
setLabel
public void setLabel(String label)
- Sets new label.
- Parameters:
- label - text representation of label.
extractTimeStep
public String extractTimeStep()
- Returns string presentation of time step.
- Returns:
- string presentation of time step
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
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
getTip
public String getTip(int type)
- Returns tool tip for the status bar.
- Returns:
- tool tip.
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.
focusGained
public void focusGained(FocusEvent f)
- Handles the focusGained. Changes position of caret of text field.
- Parameters:
- e - the focus event
focusLost
public void focusLost(FocusEvent f)
- Handles the focusLost.
- Parameters:
- e - the focus event
keyTyped
public void keyTyped(KeyEvent k)
- Handles the keyTyped event.
- Parameters:
- e - the key event
keyReleased
public void keyReleased(KeyEvent k)
- Handles the keyReleased event.
- Parameters:
- e - the key event
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
mouseReleased
public void mouseReleased(MouseEvent e)
- Handles the mouseReleased event.
- Parameters:
- e - the mouse event
mousePressed
public void mousePressed(MouseEvent e)
- Handles the mousePressed event.
- Parameters:
- e - the mouse event
mouseClicked
public void mouseClicked(MouseEvent e)
- Handles the mouseClicked event - switches between time step label and text field.
- Parameters:
- e - the mouse event
mouseEntered
public void mouseEntered(MouseEvent e)
- Handles the mouseEntered event - updates tool tips information.
- Parameters:
- e - the mouse event
mouseExited
public void mouseExited(MouseEvent e)
- Handles the mouseExited event - updates tool tips information.
- Parameters:
- e - the mouse event