edu.washington.biostr.sig.brainj3d.doevents
Interface CommandListener
- All Known Subinterfaces:
- VolumeControl
- All Known Implementing Classes:
- AbstractDataController, BrainInfoAtlasController, CrossControl, CutawayController, IsosurfaceController, MapController, MapController3D, Model3DGenerator, Model3DViewPort, SimpleController, SurfaceAppearanceController, SurfaceVolumeDataController, VolumeDataController, VolumeMapController, VolumePlaneView, VolumeViewPort
public interface CommandListener
CommandListeners listen for both stateless and stateful commands.
- Author:
- eider
|
Method Summary |
boolean |
doCommand(DoCommand cmd)
Process a command if this command makes sense for this object
(the target is is expected). |
boolean |
setState(State s)
Listeners should be careful that the s's ident matches what they
are expecting and disregard all other state events.
This implementation provides advantages and disadvantages. |
setState
boolean setState(State s)
- Listeners should be careful that the s's ident matches what they
are expecting and disregard all other state events.
This implementation provides advantages and disadvantages.
The advantage is that you don't need to register for the right
states, all states are fired at you and you can monitor what is
going on around you.
The disadvantage is that this may add overhead and it is a potential
pitfall.
- Parameters:
s -
- Returns:
- true if anything changed.
doCommand
boolean doCommand(DoCommand cmd)
- Process a command if this command makes sense for this object
(the target is is expected).
- Parameters:
cmd -
- Returns:
- true if any state changed.
Copyright © 2006 University of Washington. All Rights Reserved.