Enum Class Bagatelle.AJ_PerformancePreset

java.lang.Object
java.lang.Enum<Bagatelle.AJ_PerformancePreset>
net.paulhertz.pixelaudio.example.Bagatelle.AJ_PerformancePreset
All Implemented Interfaces:
Serializable, Comparable<Bagatelle.AJ_PerformancePreset>, Constable
Enclosing class:
Bagatelle

static enum Bagatelle.AJ_PerformancePreset extends Enum<Bagatelle.AJ_PerformancePreset>
Presets are applied to each new brush at the moment drawing is completed by releasing the mouse button and calling makeBrush(), the bottleneck method for all brush creation. Presets are best used just for brush modifications. If you want to change application settings, use runPerformanceCue() with your own custom code. You can address the host application with the app parameter, but keep in mind that it is called on every brush.
  • Enum Constant Details

  • Field Details

    • key

      final char key
  • Constructor Details

    • AJ_PerformancePreset

      private AJ_PerformancePreset(char key)
  • Method Details

    • values

      public static Bagatelle.AJ_PerformancePreset[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static Bagatelle.AJ_PerformancePreset valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • fromKey

      static Bagatelle.AJ_PerformancePreset fromKey(char k)
    • apply

      Abstract method for concrete apply() methods implemented by each enum constant. In the preset logic, each constant is in effect its own function, which can be invoked by reference.
      Parameters:
      cfg - configuration parameters for GestureGranularConfig, used to modify audio synthesis
      curve - a PACurveMaker gesture, which can be modifed by the concrete apply() method
      app - a reference to the host application, use with caution
      Returns:
      a reference to the concrete apply() method for an enum constant