edu.washington.biostr.sig.brainj3d.doevents
Class BulkParameterEvent
java.lang.Object
edu.washington.biostr.sig.brainj3d.doevents.DoCommand
edu.washington.biostr.sig.brainj3d.doevents.BulkParameterEvent
- All Implemented Interfaces:
- ParameterChange, Undoable
public class BulkParameterEvent
- extends DoCommand
- implements ParameterChange
|
Constructor Summary |
BulkParameterEvent(Object source,
Object target,
Map<String,Object> newValue,
DataView view)
|
BulkParameterEvent(Object source,
Object target,
Map<String,Object> newValue,
DataView view,
boolean isAdjusting)
|
BulkParameterEvent(Object source,
Object target,
Map<String,Object> newValue,
Map<String,Object> oldValue)
|
BulkParameterEvent(Object source,
Object target,
Map<String,Object> newValue,
Map<String,Object> oldValue,
boolean isAdjusting)
|
BulkParameterEvent
public BulkParameterEvent(Object source,
Object target,
Map<String,Object> newValue,
Map<String,Object> oldValue)
BulkParameterEvent
public BulkParameterEvent(Object source,
Object target,
Map<String,Object> newValue,
Map<String,Object> oldValue,
boolean isAdjusting)
BulkParameterEvent
public BulkParameterEvent(Object source,
Object target,
Map<String,Object> newValue,
DataView view)
BulkParameterEvent
public BulkParameterEvent(Object source,
Object target,
Map<String,Object> newValue,
DataView view,
boolean isAdjusting)
isStateful
public boolean isStateful()
- Description copied from class:
DoCommand
- Return true if this changes the state and false if it instead encodes
a change. If isStateful() returns true, then change(State) has some
effect. If isStateful() returns false, invert() must work.
- Overrides:
isStateful in class DoCommand
- Returns:
equals
public boolean equals(Object obj)
- Overrides:
equals in class DoCommand
getParameters
public Map<String,Object> getParameters()
- Specified by:
getParameters in interface ParameterChange
hashCode
public int hashCode()
- Overrides:
hashCode in class DoCommand
toString
public String toString()
- Overrides:
toString in class DoCommand
invert
public DoCommand invert()
throws UnsupportedOperationException
- Description copied from class:
DoCommand
- invert this command. applying a DoCommand followed by its inverse
will result in no net change.
If isStateful() returns true, then this will throw an
UnsupportedOperationException and if isStateful() is false, this
cannot throw an UnsupportedOperationException.
- Overrides:
invert in class DoCommand
- Returns:
- the inverse of this command. By Default return this
- Throws:
UnsupportedOperationException - if isStateful()
getOldParameters
public Map<String,Object> getOldParameters()
- Specified by:
getOldParameters in interface ParameterChange
coalesce
public BulkParameterEvent coalesce(Undoable laterEvt)
- Description copied from class:
DoCommand
- Coalesce these commands if we can. Any result other than null renders this event unusable.
- Specified by:
coalesce in interface Undoable- Overrides:
coalesce in class DoCommand
- Parameters:
laterEvt - the later event
- Returns:
- an event if we can coalesce, null if we can't.
Copyright © 2006 University of Washington. All Rights Reserved.