Class R_Slotch

All Implemented Interfaces:
R_Constants, R_Constants_Colour, R_GUI

public class R_Slotch extends R_Slider
  • Constructor Details

    • R_Slotch

      public R_Slotch()
    • R_Slotch

      public R_Slotch(vec2 pos, vec2 size, int num)
  • Method Details

    • set_notch

      public R_Slotch set_notch(int num)
    • set_aspect_notch

      public R_Slotch set_aspect_notch(int c, float thickness)
    • set_aspect_notch

      public R_Slotch set_aspect_notch(int c)
    • set_value

      public R_Slotch set_value(int pos_molette)
    • get_notches_num

      public int get_notches_num()
    • get

      public float get()
      Description copied from class: R_Slider
      Return the normal value for the first molette
      Overrides:
      get in class R_Slider
      Returns:
      float
    • get

      public float get(int index)
      Description copied from class: R_Slider
      Return the normal value for the the index (targret) molette
      Overrides:
      get in class R_Slider
      Returns:
      float
    • get_all

      public float[] get_all()
      Overrides:
      get_all in class R_Slider
    • update

      public void update()
      This function overwrite the method from slider to call the private own function update(float x, float y)
      Specified by:
      update in interface R_GUI
      Overrides:
      update in class R_Slider
    • show_notch

      public void show_notch()
      Show separation between value
    • show_notch

      public void show_notch(int start, int stop)
      Show separation between value
      Parameters:
      start - set the top or left limit of the separation
      stop - et the bottom or right limit of the separation