Overview
Package
Class
Use
Tree
Deprecated
Index
All Classes
Help
Prev Class
Next Class
VAquaRendering - Release 3
Interface org.violetlib.jnr.SliderPainter
Inherited members: ShowHide
Deprecated: ShowHide
org.violetlib.jnr

Interface SliderPainter

  • All Superinterfaces:
    ConfiguredPainter, Painter
    public interface SliderPainter extends ConfiguredPainter
    This interface defines additional methods that may be supported by a painter for sliders.
    • Methods 
      Modifier and Type Method and Description
      Inherited member indicator getFixedHeight Reveal DetailHide Detail
      abstract float getFixedHeight()
       
      float getFixedHeight()
      Inherited member indicator getFixedWidth Reveal DetailHide Detail
      abstract float getFixedWidth()
       
      float getFixedWidth()
      Ordinary member indicator getLabelBounds Reveal DetailHide Detail
      abstract Rectangle2D getLabelBounds(double value, Dimension size)
      Return the recommended bounds for a label corresponding to a given thumb position, based on the configured parameters.
      Rectangle2D getLabelBounds(double value, Dimension size)
      Return the recommended bounds for a label corresponding to a given thumb position, based on the configured parameters.
      Parameters:
      value - The thumb position represented by the label, expressed as a fraction of the slider range, in the range 0 to 1 (inclusive).
      size - The intended size of the label.
      Returns:
      the recommended bounds for the label.
      Ordinary member indicator getThumbBounds Reveal DetailHide Detail
      abstract Rectangle2D getThumbBounds()
      Return the bounds of the thumb area based on the configured parameters.
      Rectangle2D getThumbBounds()
      Return the bounds of the thumb area based on the configured parameters.
      Ordinary member indicator getThumbOutline Reveal DetailHide Detail
      abstract Shape getThumbOutline()
      Return the outline of the thumb based on the configured parameters.
      Shape getThumbOutline()
      Return the outline of the thumb based on the configured parameters.
      Ordinary member indicator getThumbPosition Reveal DetailHide Detail
      abstract double getThumbPosition(int x, int y)
      Map a mouse coordinate to a slider thumb position.
      double getThumbPosition(int x, int y)
      Map a mouse coordinate to a slider thumb position. This method relies on the previously configured widget size.
      Parameters:
      x - The x coordinate relative to the configured bounds.
      y - The y coordinate relative to the configured bounds.
      Returns:
      the thumb position as a fraction of the slider range, if in the range 0 to 1 (inclusive), or a value less than 0 if the coordinate is outside the slider range in the area corresponding to low values, or a value greater than 1 if the coordinate is outside the slider range in the area corresponding to high values.
      Inherited member indicator paint Reveal DetailHide Detail
      abstract void paint(Graphics g, float x, float y)
      Draw the rendering.
      void paint(Graphics g, float x, float y)
      Description copied from interface: Painter
      Draw the rendering.
      Parameters:
      g - The graphics context where the rendering should be drawn.
      x - The X coordinate of the origin of the rendering.
      y - The Y coordinate of the origin of the rendering.