Interface JaxoWiggleObject

All Known Implementing Classes:
JaxoGlArc, JaxoGlBezier, JaxoGlLine, JaxoGlLoop, JaxoPArc, JaxoPBezier, JaxoPLine, JaxoPLoop, JaxoZigZagLine

public interface JaxoWiggleObject
An interface for objects that have wiggles.
Since:
2.0
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Gets the amplitude of this WiggleObject.
    float
    Gets the current frequency (number of wiggles per unit length) of this WiggleObject.
    int
    Gets the number of wiggles of this WiggleObject.
    void
    setAmp(int amp)
    Sets the amplitude of this WiggleObject.
    void
    Sets the number of wiggles to the given value and derives the frequency from it.
    void
    setWiggles(int wiggles)
    Sets the number of wiggles of this WiggleObject.
    void
    Sets the number of wiggles from the current frequency.
    void
    setWigglesFromFrequency(float frequency)
    Sets the frequency to the given value and derives the number of wiggles from it.
  • Method Details

    • setWiggles

      void setWiggles(int wiggles)
      Sets the number of wiggles of this WiggleObject.
      Parameters:
      wiggles - The number of wiggles.
    • getWiggles

      int getWiggles()
      Gets the number of wiggles of this WiggleObject.
      Returns:
      The number of wiggles.
    • setAmp

      void setAmp(int amp)
      Sets the amplitude of this WiggleObject.
      Parameters:
      amp - The amplitude to set.
    • getAmp

      int getAmp()
      Gets the amplitude of this WiggleObject.
      Returns:
      The amplitude.
    • getFrequency

      float getFrequency()
      Gets the current frequency (number of wiggles per unit length) of this WiggleObject.
      Returns:
      The frequency.
    • setWigglesFromFrequency

      void setWigglesFromFrequency()
      Sets the number of wiggles from the current frequency.
    • setWigglesFromFrequency

      void setWigglesFromFrequency(float frequency)
      Sets the frequency to the given value and derives the number of wiggles from it.
      Parameters:
      frequency - The frequency to set.
    • setFrequencyFromWiggles

      void setFrequencyFromWiggles(int wiggles)
      Sets the number of wiggles to the given value and derives the frequency from it.
      Parameters:
      wiggles - The number of wiggles to set.