Class R_Slider

All Implemented Interfaces:
R_Constants, R_Constants_Colour, R_GUI
Direct Known Subclasses:
R_Sladj, R_Slotch

public class R_Slider extends Crope implements R_GUI
  • Constructor Details

    • R_Slider

      public R_Slider()
    • R_Slider

      public R_Slider(vec2 pos, vec2 size)
    • R_Slider

      public R_Slider(float x, float y, float sx, float sy)
  • Method Details

    • set_value

      public R_Slider set_value(float... pos_norm)
      Parameters:
      pos_norm - normal 0 to 1 array value to define the position of each molette on the slider
      Returns:
      this
    • set_curve

      public R_Slider set_curve(int type, float power)
      Set curve is used to set a non linear value between the minimum and the maximum value of the slider.
      Parameters:
      type - set the type of curve you want, for now only r.POW is available
      power - set the power of the curve
      Returns:
      this
    • set_min_max

      @Deprecated public R_Slider set_min_max(float min, float max)
      Deprecated.
      insteand use set_range(float min, float max);
      Parameters:
      min - define the minimum final value of the slider
      max - define the maximum final value of the slider
      Returns:
      void
    • set_range

      public R_Slider set_range(float min, float max)
      this function is used to set the final value of the slider
      Parameters:
      min - define the minimum final value of the slider
      max - define the maximum final value of the slider
      Returns:
      this
    • set_range

      public R_Slider set_range(vec2 range)
      this function is used to set the final value of the slider
      Parameters:
      range - vec2 who define the minimum and the maximum final value of the slider
      Returns:
      this
    • set_mol_num

      public R_Slider set_mol_num(int num)
    • set_mol

      public R_Slider set_mol(int type)
    • set_size_mol

      public R_Slider set_size_mol(vec2 size)
    • set_size_mol

      public R_Slider set_size_mol(float x, float y)
    • set_pos_mol

      public R_Slider set_pos_mol()
    • set_pos_mol

      public R_Slider set_pos_mol(int index)
    • set_pos_mol

      public R_Slider set_pos_mol(vec2... pos_mol)
    • set_pos_mol

      public R_Slider set_pos_mol(int index, float x, float y)
    • set_fill_mol

      public R_Slider set_fill_mol(int c)
    • set_fill_mol

      public R_Slider set_fill_mol(int c_in, int c_out)
    • set_stroke_mol

      public R_Slider set_stroke_mol(int c)
    • set_stroke_mol

      public R_Slider set_stroke_mol(int c_in, int c_out)
    • set_thickness_mol

      public R_Slider set_thickness_mol(float thickness)
    • get_final

      public float get_final(int index)
      Return the value for the the index (targret) molette, the value is mapped with the min max value
      Parameters:
      index -
      Returns:
      float
    • get_final

      public float get_final()
      Return the value for the the main molette, the value is mapped with the min max value
      Returns:
      float
    • get_min

      public float get_min()
    • get_max

      public float get_max()
    • get

      public float get()
      Return the normal value for the first molette
      Overrides:
      get in class Crope
      Returns:
      float
    • get

      public float get(int index)
      Return the normal value for the the index (targret) molette
      Overrides:
      get in class Crope
      Parameters:
      index -
      Returns:
      float
    • get_all

      public float[] get_all()
      Overrides:
      get_all in class Crope
    • get_mol

      public R_Mol[] get_mol()
    • get_mol

      public R_Mol get_mol(int index)
    • get_min_norm

      public float get_min_norm()
    • get_max_norm

      public float get_max_norm()
    • get_min_pos

      public vec2 get_min_pos()
    • get_max_pos

      public vec2 get_max_pos()
    • show_struc

      public void show_struc()
      Specified by:
      show_struc in interface R_GUI
      Overrides:
      show_struc in class Crope
    • show_mol

      public void show_mol()
    • show_value

      public void show_value()
      Specified by:
      show_value in interface R_GUI
      Overrides:
      show_value in class Crope
    • show_value

      public void show_value(float... value)
    • update

      public void update()
      UPDATE
      Specified by:
      update in interface R_GUI
      Overrides:
      update in class Crope
    • get_mol_pos

      public vec2[] get_mol_pos()
    • get_mol_pos

      public vec2 get_mol_pos(int index)
    • get_molette_size

      public vec2 get_molette_size(int index)
    • molette_used_is

      public boolean molette_used_is(int index)
      Parameters:
      index -
      Returns:
    • molette_used_is

      public boolean molette_used_is()
    • inside_molette

      public boolean inside_molette(int index)
      Parameters:
      index -
      Returns:
    • inside_molette

      public boolean inside_molette()
    • select_is

      public boolean select_is()
    • select_is

      public boolean select_is(int index)
    • used_is

      public boolean used_is()
    • used_is

      public boolean used_is(int index)
    • wheel

      public void wheel(boolean wheel_is)
    • update_midi

      public void update_midi(int... value)
    • update_midi

      public void update_midi(int index, int value)
    • keep_selection

      public void keep_selection(boolean is)
    • select

      public void select(boolean auth)
    • select

      public void select(boolean auth_1, boolean auth_2)