Package org.jfree.ui

Class Spinner

All Implemented Interfaces:
MouseListener, ImageObserver, MenuContainer, Serializable, EventListener, Accessible

public class Spinner extends JPanel implements MouseListener
A very basic spinner component, used for demo purposes only.
See Also:
  • Field Details

    • value

      private int value
      The current value.
    • textField

      private JTextField textField
      The text field displaying the value.
    • buttonPanel

      private JPanel buttonPanel
      The arrow button panel.
    • upButton

      private ArrowPanel upButton
      The up button.
    • downButton

      private ArrowPanel downButton
      The down button.
  • 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.
      Specified by:
      mouseClicked in interface MouseListener
      Parameters:
      e - the mouse event.
    • mouseEntered

      public void mouseEntered(MouseEvent e)
      Receives notification of mouse events.
      Specified by:
      mouseEntered in interface MouseListener
      Parameters:
      e - the mouse event.
    • mouseExited

      public void mouseExited(MouseEvent e)
      Receives notification of mouse events.
      Specified by:
      mouseExited in interface MouseListener
      Parameters:
      e - the mouse event.
    • mousePressed

      public void mousePressed(MouseEvent e)
      Receives notification of mouse events.
      Specified by:
      mousePressed in interface MouseListener
      Parameters:
      e - the mouse event.
    • mouseReleased

      public void mouseReleased(MouseEvent e)
      Receives notification of mouse events.
      Specified by:
      mouseReleased in interface MouseListener
      Parameters:
      e - the mouse event.