Class R_Knob

All Implemented Interfaces:
R_Constants, R_Constants_Colour

public class R_Knob extends R_Button
  • Constructor Details

    • R_Knob

      public R_Knob()
    • R_Knob

      public R_Knob(String type)
    • R_Knob

      public R_Knob(vec2 pos, float size)
  • Method Details

    • size

      public R_Knob size(float size)
      overwrite the Parent method, to set the guide
      Overrides:
      size in class Crope
      Parameters:
      size - set the diameter of knob
      Returns:
      this
    • set_value

      public R_Knob set_value(float pos_norm)
      Overrides:
      set_value in class R_Button
      Parameters:
      pos_norm - must be a normal position from 0 to 1, where 1 is like 2PI
      Returns:
      this
    • set_value

      public R_Knob set_value(float... pos_norm)
      Parameters:
      pos_norm - must be an array of normal positions from 0 to 1, where 1 is like 2PI
      Returns:
      this
    • set_offset

      public R_Knob set_offset(float offset_angle)
      Work with set_fov()
      Parameters:
      offset_angle - define the direction in radiant of your knob
      Returns:
      this
    • get_start

      public float get_start()
      Returns:
      value of the current start angle pie knob
    • get_stop

      public float get_stop()
      Returns:
      value of the current stop angle pie knob
    • get_start_limit

      public float get_start_limit()
      Returns:
      value of start limit value knob, corrected
    • get_stop_limit

      public float get_stop_limit()
      Returns:
      value of stop limit value knob, corrected
    • set_fov

      public R_Knob set_fov(float min, float max)
      Function to set the opening angle of your knob, by default the angle if from 0 to 2PI (TAU)
      Parameters:
      min - angle in radian, must be lower than max, if not the value is reversed
      max - angle in radian, must be upper than min, if not the value is reversed
      Returns:
      this
    • set_limit

      @Deprecated public R_Knob set_limit(float angle_a, float angle_b)
      Deprecated.
      instead used set_fov()
      Parameters:
      angle_a - start angle
      angle_b - stop angle
      Returns:
      this
    • set_range

      @Deprecated public R_Knob set_range(float angle_a, float angle_b)
      Deprecated.
      instead used set_fov()
      Parameters:
      angle_a -
      angle_b -
      Returns:
    • use_limit

      public R_Knob use_limit(boolean use_limit_is)
      Parameters:
      use_limit_is -
      Returns:
    • limit

      @Deprecated public R_Knob limit(boolean open_knob)
      Deprecated.
      instead use use_limit(boolean is)
      Parameters:
      open_knob -
      Returns:
    • set_size_limit

      public R_Knob set_size_limit(float min, float max)
    • set_type_mol

      public R_Knob set_type_mol(int molette_type)
    • set_size_mol

      public R_Knob set_size_mol(vec2 size)
    • set_size_mol

      public R_Knob set_size_mol(float size)
    • set_size_mol

      public R_Knob set_size_mol(float w, float h)
    • set_dist_mol

      public R_Knob set_dist_mol(float dist)
    • set_dist_guide

      public R_Knob set_dist_guide(float dist)
      GUIDE
    • set_size_guide

      public R_Knob set_size_guide(float size)
    • set_size_guide

      public R_Knob set_size_guide(float w, float h)
    • set_drag

      public R_Knob set_drag(int direction)
    • set_drag_force

      public R_Knob set_drag_force(float force)
    • set_fill_mol

      public R_Knob set_fill_mol(int c)
      ASPECT MOLETTE and GUIDE
    • set_fill_mol

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

      public R_Knob set_stroke_mol(int c)
    • set_stroke_mol

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

      public R_Knob set_thickness_mol(float thickness)
    • get

      public float get(int index)
      for the future when there is more molette
      Overrides:
      get in class Crope
    • get

      public float get()
      Overrides:
      get in class R_Button
    • get_all

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

      public float get_guide()
    • get_mol

      public R_Mol[] get_mol()
    • get_mol

      public R_Mol get_mol(int index)
    • show_limit

      public void show_limit()
    • show_mol

      public void show_mol()
    • show_guide

      public void show_guide()
    • show_struc_pie

      public void show_struc_pie()
    • show_value

      public void show_value()
      Overrides:
      show_value in class R_Button
    • update

      public void update()
      Overrides:
      update in class R_Button