Package net.sf.jaxodraw.object
Interface JaxoWiggleObject
-
- All Known Implementing Classes:
JaxoGlArc,JaxoGlBezier,JaxoGlLine,JaxoGlLoop,JaxoPArc,JaxoPBezier,JaxoPLine,JaxoPLoop,JaxoZigZagLine
public interface JaxoWiggleObjectAn interface for objects that have wiggles.- Since:
- 2.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description intgetAmp()Gets the amplitude of this WiggleObject.floatgetFrequency()Gets the current frequency (number of wiggles per unit length) of this WiggleObject.intgetWiggles()Gets the number of wiggles of this WiggleObject.voidsetAmp(int amp)Sets the amplitude of this WiggleObject.voidsetFrequencyFromWiggles(int wiggles)Sets the number of wiggles to the given value and derives the frequency from it.voidsetWiggles(int wiggles)Sets the number of wiggles of this WiggleObject.voidsetWigglesFromFrequency()Sets the number of wiggles from the current frequency.voidsetWigglesFromFrequency(float frequency)Sets the frequency to the given value and derives the number of wiggles from it.
-
-
-
Method Detail
-
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.
-
-