|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectetomica.modifier.ModifyAction
public class ModifyAction
Wraps a Modifier instance so that the modification can be performed as the consequence of an action. Permits for example a modification initiated by a user-interface thread to be executed by the controller thread. Call to setValueForAction stores value for modifier, which is then invoked when a subsequent call to actionPerformed is made.
| Constructor Summary | |
|---|---|
ModifyAction(Modifier modifier)
Constuctor requires the wrapped Modifier, which is final. |
|
| Method Summary | |
|---|---|
void |
actionPerformed()
Executes the setValue method of the wrapped modifier, using the value given in the most recent call to this.setValue. |
Dimension |
getDimension()
|
double |
getValue()
|
Modifier |
getWrappedModifier()
|
void |
setValueForAction(double newValue)
Stores the new value to be set by the wrapped modifier. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ModifyAction(Modifier modifier)
| Method Detail |
|---|
public void actionPerformed()
actionPerformed in interface IActionpublic void setValueForAction(double newValue)
public double getValue()
public Dimension getDimension()
public Modifier getWrappedModifier()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||