|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.washington.biostr.sig.brainj3d.viewvolume.CrossControl
public class CrossControl
Display a cross over the selected point and when processing mouse events, create a LocationEvent that moves the view to the clicked position.
| Constructor Summary | |
|---|---|
CrossControl(int type,
VolumeDataModel m)
The type is one of VolumeView.SAGITTAL, CORONAL or TRANSVERSE |
|
| Method Summary | |
|---|---|
boolean |
doCommand(DoCommand cmd)
Process a command if this command makes sense for this object (the target is is expected). |
int |
getMouseEvents()
Currently this just requires MOUSE_RELEASE |
IconOverlay |
getOverlay()
Return the CrossOverlay |
protected boolean |
handle(double[] newLoc)
Handle the new location and return true if anything changed. |
DoCommand |
process(PercentMouseEvent evt)
Process the event and return a DoEvent that will be dispatched. |
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CrossControl(int type,
VolumeDataModel m)
| Method Detail |
|---|
public int getMouseEvents()
getMouseEvents in interface VolumeControlVolumeControl.getMouseEvents()public IconOverlay getOverlay()
getOverlay in interface VolumeControlVolumeControl.getOverlay()public DoCommand process(PercentMouseEvent evt)
VolumeControl
process in interface VolumeControlprotected boolean handle(double[] newLoc)
newLoc -
public boolean doCommand(DoCommand cmd)
CommandListener
doCommand in interface CommandListenerpublic boolean setState(State s)
CommandListener
setState in interface CommandListener
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||