org.jfree.ui

Class Spinner

public class Spinner extends JPanel implements MouseListener

A very basic spinner component, used for demo purposes only.

Author: David Gilbert

Constructor Summary
Spinner(int value)
Creates a new spinner.
Method Summary
intgetValue()
Returns the current value.
voidmouseClicked(MouseEvent e)
Receives notification of mouse clicks.
voidmouseEntered(MouseEvent e)
Receives notification of mouse events.
voidmouseExited(MouseEvent e)
Receives notification of mouse events.
voidmousePressed(MouseEvent e)
Receives notification of mouse events.
voidmouseReleased(MouseEvent e)
Receives notification of mouse events.

Constructor Detail

Spinner

public Spinner(int value)
Creates a new spinner.

Parameters: value the initial value.

Method Detail

getValue

public int getValue()
Returns the current value.

Returns: the current value.

mouseClicked

public void mouseClicked(MouseEvent e)
Receives notification of mouse clicks.

Parameters: e the mouse event.

mouseEntered

public void mouseEntered(MouseEvent e)
Receives notification of mouse events.

Parameters: e the mouse event.

mouseExited

public void mouseExited(MouseEvent e)
Receives notification of mouse events.

Parameters: e the mouse event.

mousePressed

public void mousePressed(MouseEvent e)
Receives notification of mouse events.

Parameters: e the mouse event.

mouseReleased

public void mouseReleased(MouseEvent e)
Receives notification of mouse events.

Parameters: e the mouse event.