Class InsertState
java.lang.Object
jsimgraph.controller.UIStateDefault
jsimgraph.controller.InsertState
Defines the behaviour of the mouse listener when the UI is in the insert mode
- Author:
- dekkar (Federico Granata) Date: Jun 13, 2003 Time: 11:50:33 AM
-
Field Summary
FieldsFields inherited from class UIStateDefault
mediator -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidinserts a new vertex in the graph at the point where the mouse is pressed the new vertex is selected & then sets the select status.voidsetInsertClass(String className) set vertex, it is used to change the vertex tht will be inserted at next press mouse eventMethods inherited from class UIStateDefault
handleClick, handleDrag, handleExit, handleMove, handleRelease
-
Field Details
-
insertClass
-
-
Constructor Details
-
InsertState
-
-
Method Details
-
handlePress
inserts a new vertex in the graph at the point where the mouse is pressed the new vertex is selected & then sets the select status.- Overrides:
handlePressin classUIStateDefault- Parameters:
e- mouse press event
-
handleEnter
- Overrides:
handleEnterin classUIStateDefault
-
setInsertClass
set vertex, it is used to change the vertex tht will be inserted at next press mouse event- Parameters:
className- of component to be inserted Bertoli Marco
-