Class FlatIntegerVerticalSlider

java.lang.Object
java.awt.Component
java.awt.Container
javax.swing.JComponent
org.jjazz.flatcomponents.api.FlatIntegerVerticalSlider
All Implemented Interfaces:
MouseListener, MouseMotionListener, MouseWheelListener, ImageObserver, MenuContainer, Serializable, EventListener

public class FlatIntegerVerticalSlider extends JComponent implements MouseListener, MouseMotionListener, MouseWheelListener
A vertical flat slider.

Whatever the actual component size, the drawing is done at preferred size.

See Also:
  • Field Details

  • Constructor Details

    • FlatIntegerVerticalSlider

      public FlatIntegerVerticalSlider()
  • Method Details

    • getPreferredSize

      public Dimension getPreferredSize()
      Overrides:
      getPreferredSize in class JComponent
    • paintComponent

      public void paintComponent(Graphics g)
    • getLastMouseEvent

      public MouseEvent getLastMouseEvent()
      The last MouseEvent corresponding to the last mouse drag or wheel user action to change the slider value.

      Can be used by listeners to retrieve the shift/ctrl/alt modifiers after having received a value property change.

      Returns:
      Can be null if last user action was not a mouse drag/wheel (e.g. if he used the inline editor)
    • getValueLineColor

      public Color getValueLineColor()
      Returns:
      the valueLineColor
    • setValueLineColor

      public void setValueLineColor(Color valueLineColor)
      Parameters:
      valueLineColor - the valueLineColor to set
    • getButtonHeight

      public int getButtonHeight()
      Returns:
      the buttonHeight
    • setButtonHeight

      public void setButtonHeight(int buttonHeight)
      The unique data to compute the preferred size.
      Parameters:
      buttonHeight -
    • getButtonColor

      public Color getButtonColor()
      Returns:
      the buttonColor
    • setButtonColor

      public void setButtonColor(Color buttonColor)
      Parameters:
      buttonColor - the buttonColor to set
    • getMinValue

      public int getMinValue()
      Returns:
      the minValue
    • setMinValue

      public void setMinValue(int minValue)
      Parameters:
      minValue - the minValue to set
    • getMaxValue

      public int getMaxValue()
      Returns:
      the maxValue
    • setMaxValue

      public void setMaxValue(int maxValue)
      Parameters:
      maxValue - the maxValue to set
    • setValue

      public void setValue(int v)
    • getValue

      public int getValue()
    • setEnabled

      public void setEnabled(boolean b)
      Overrides:
      setEnabled in class JComponent
    • getTooltipLabel

      public String getTooltipLabel()
    • setTooltipLabel

      public void setTooltipLabel(String tooltipLabel)
    • getButtonContourColor

      public Color getButtonContourColor()
      Returns:
      the buttonContourColor
    • setButtonContourColor

      public void setButtonContourColor(Color buttonContourColor)
      Parameters:
      buttonContourColor - the buttonContourColor to set
    • getGrooveUpperColor

      public Color getGrooveUpperColor()
      Returns:
      the grooveUpperColor
    • setGrooveUpperColor

      public void setGrooveUpperColor(Color grooveUpperColor)
      Parameters:
      grooveUpperColor - the grooveUpperColor to set
    • getGrooveLowerColor

      public Color getGrooveLowerColor()
      Returns:
      the grooveLowerColor
    • setGrooveLowerColor

      public void setGrooveLowerColor(Color grooveLowerColor)
      Parameters:
      grooveLowerColor - the grooveLowerColor to set
    • getButtonColorDisabled

      public Color getButtonColorDisabled()
      Returns:
      the buttonColorDisabled
    • setButtonColorDisabled

      public void setButtonColorDisabled(Color buttonColorDisabled)
      Parameters:
      buttonColorDisabled - the buttonColorDisabled to set
    • getPadding

      public int getPadding()
      Returns:
      the padding
    • setPadding

      public void setPadding(int padding)
      Parameters:
      padding - the padding to set
    • mouseClicked

      public void mouseClicked(MouseEvent e)
      Specified by:
      mouseClicked in interface MouseListener
    • mousePressed

      public void mousePressed(MouseEvent e)
      Specified by:
      mousePressed in interface MouseListener
    • mouseReleased

      public void mouseReleased(MouseEvent e)
      Specified by:
      mouseReleased in interface MouseListener
    • mouseEntered

      public void mouseEntered(MouseEvent e)
      Specified by:
      mouseEntered in interface MouseListener
    • mouseExited

      public void mouseExited(MouseEvent e)
      Specified by:
      mouseExited in interface MouseListener
    • mouseDragged

      public void mouseDragged(MouseEvent e)
      Specified by:
      mouseDragged in interface MouseMotionListener
    • mouseMoved

      public void mouseMoved(MouseEvent e)
      Specified by:
      mouseMoved in interface MouseMotionListener
    • mouseWheelMoved

      public void mouseWheelMoved(MouseWheelEvent e)
      Specified by:
      mouseWheelMoved in interface MouseWheelListener