Class SelectState
java.lang.Object
jsimgraph.controller.UIStateDefault
jsimgraph.controller.SelectState
Handles all the events when the user is in the select mode
- Author:
- dekkar (Federico Granata) Date: Jun 20, 2003 Time: 10:42:28 AM Modified by Bertoli Marco 28-giu-2005
-
Field Summary
FieldsFields inherited from class UIStateDefault
mediator -
Constructor Summary
ConstructorsConstructorDescriptionSelectState(Mediator mediator, GraphMouseListener ml) Creates the select state -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoidvoidHandles press event, it selects the cell that is under the pointer If there is no cell deselects.voidMethods inherited from class UIStateDefault
handleClick, handleExit
-
Field Details
-
ml
-
initialCellPositions
-
finalCellPositions
-
-
Constructor Details
-
SelectState
Creates the select state- Parameters:
mediator-ml-
-
-
Method Details
-
handlePress
Handles press event, it selects the cell that is under the pointer If there is no cell deselects. There is also the possibility of activating the marquee handler- Overrides:
handlePressin classUIStateDefault- Parameters:
e- press mouse event
-
handleMove
- Overrides:
handleMovein classUIStateDefault
-
handleDrag
- Overrides:
handleDragin classUIStateDefault
-
handleRelease
- Overrides:
handleReleasein classUIStateDefault
-
handleEnter
- Overrides:
handleEnterin classUIStateDefault
-