org.jfree.ui

Class Spinner

Implemented Interfaces:
MouseListener

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

int
getValue()
Returns the current value.
void
mouseClicked(MouseEvent e)
Receives notification of mouse clicks.
void
mouseEntered(MouseEvent e)
Receives notification of mouse events.
void
mouseExited(MouseEvent e)
Receives notification of mouse events.
void
mousePressed(MouseEvent e)
Receives notification of mouse events.
void
mouseReleased(MouseEvent e)
Receives notification of mouse events.

Constructor Details

Spinner

public Spinner(int value)
Creates a new spinner.
Parameters:
value - the initial value.

Method Details

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.