|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectpslib.PSCurve
public class PSCurve
PSCurve Class
The PSCurve object allows the creation of value curves. The object iterates between initial and target values over the specified time period and with the desired curvature.
This library is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License along with this library. If not, see http://www.gnu.org/licenses/.
Constructor Summary | |
---|---|
PSCurve(float v)
Create an object instance with the specified initial value |
Method Summary | |
---|---|
float |
get()
Return the current object value |
boolean |
isActive()
Return the activity state of the object |
void |
set(float v)
Set the object value to that specified |
void |
set(float i,
float v,
int t)
Create a curve with the specified initial and target values, and iteration time |
void |
set(float i,
float v,
int t,
float e)
Create a curve with the specified initial and target values, iteration time and curve exponent |
void |
set(float v,
int t)
Create a curve with the specified target value and iteration time |
void |
set(float v,
int t,
float e)
Create a curve with the specified target value, iteration time and curve exponent |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PSCurve(float v)
v
- initial valueMethod Detail |
---|
public final float get()
public final void set(float v)
v
- valuepublic final void set(float v, int t)
v
- target valuet
- iteration timepublic final void set(float v, int t, float e)
v
- target valuet
- iteration timee
- curve exponentpublic final void set(float i, float v, int t)
i
- initial valuev
- target valuet
- iteration timepublic final void set(float i, float v, int t, float e)
i
- initial valuev
- target valuet
- iteration timee
- curve exponentpublic final boolean isActive()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |