|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectilog.views.prototypes.IlvBehavior
ilog.views.prototypes.IlvSingleBehavior
ilog.views.prototypes.IlvAnimationBehavior
ilog.views.prototypes.IlvInvertBehavior
public class IlvInvertBehavior
The class IlvInvertBehavior is a subclass of IlvAnimationBehavior
that inverts two values of an object at a specified time interval. It can be used, for
example, to invert two colors.
| Constructor Summary | |
|---|---|
IlvInvertBehavior(IlvInputStream in)
Reads the behavior from an IlvInputStream stream. |
|
IlvInvertBehavior(IlvInvertBehavior source)
Creates a new behavior object by copying an existing one. |
|
IlvInvertBehavior(String name,
String period,
String value1,
String value2)
Creates a new IlvInvertBehavior object that inverts the values of
two properties at a specified time interval. |
|
| Method Summary | |
|---|---|
IlvBehavior |
copy()
Returns a copy of the behavior. |
protected void |
doit()
Inverts the values specified by the value1 and
value2 parameters passed to the constructor. |
int |
getSynchronizationCount()
Implementation of the Timer interface. |
String |
getValue1()
Gets the name of the first value to be inverted. |
String |
getValue2()
Gets the name of the second value to be inverted. |
void |
setValue1(String value1)
Sets the name of the first value to be inverted. |
void |
setValue2(String value2)
Sets the name of the second value to be inverted. |
String |
toString()
Returns a short text describing this behavior object. |
void |
write(IlvOutputStream out)
Writes the behavior to an IlvOutputStream. |
| Methods inherited from class ilog.views.prototypes.IlvAnimationBehavior |
|---|
attach, detach, get, getPeriod, getTimerPeriod, set, setPeriod, start, stop, timerTicked |
| Methods inherited from class ilog.views.prototypes.IlvSingleBehavior |
|---|
get, getName, getValueNames, set, setName |
| Methods inherited from class ilog.views.prototypes.IlvBehavior |
|---|
getParameter, isOutput, isReadable, isWritable |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public IlvInvertBehavior(String name,
String period,
String value1,
String value2)
IlvInvertBehavior object that inverts the values of
two properties at a specified time interval.
name - the name of the property defined by this behavior, which is
a boolean value used to start or stop the animation.period - the animation period in milliseconds. This value
can be either an immediate value (for example, 100), or the
name of another behavior which will be read to get the actual
period value.value1 - the name of the first value to be inverted.value2 - the name of the second value to be inverted.public IlvInvertBehavior(IlvInvertBehavior source)
source - the behavior object to be copied.
public IlvInvertBehavior(IlvInputStream in)
throws IlvReadFileException
IlvInputStream stream.
This constructor must be called by the
input constructors of subclasses.
in - The input stream.
IlvReadFileException - if the stream format is not correct.| Method Detail |
|---|
public void write(IlvOutputStream out)
throws IOException
IlvOutputStream.
write in interface IlvPersistentObjectwrite in class IlvAnimationBehaviorout - The output stream.
IOException - thrown when an exception occurs during
the write operation for this object.public IlvBehavior copy()
copy in class IlvBehaviorpublic String toString()
toString in class IlvBehavior
protected void doit()
throws IlvValueException
value1 and
value2 parameters passed to the constructor.
doit in class IlvAnimationBehaviorIlvValueException - if an error occurred while setting or reading a value.public void setValue1(String value1)
public String getValue1()
public void setValue2(String value2)
public String getValue2()
public int getSynchronizationCount()
getSynchronizationCount in class IlvAnimationBehavior
|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||