![]() | [using it] | Interface Manipulation Package v4.0 (2008-06-25) | ![]() | ©copyright | ![]() |
java.lang.Objectimp.gui.MouseInteraction
public abstract class MouseInteraction
Defines mouse interaction with a graphical pane.
Constructor Summary | |
---|---|
MouseInteraction(JComponent pane)
Constructs a mouse-interaction for the given component. |
Method Summary | |
---|---|
void |
interaction(String interaction)
Sets the interaction with the component and return this. |
abstract void |
outputValue(String value)
Called when a mouse interaction is output. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MouseInteraction(JComponent pane)
Method Detail |
---|
public void interaction(String interaction)
interaction
- The mouse interaction:none | No interaction. |
point | Outputs a click when the user press a button. |
reticule | Outputs a click when the user press a button, using a reticule to locate the point. |
move | Moves an element and defines the so-called move cursor. |
select | Selects an element drawn in the canvas and outputs its string representation. |
rectangle | Selects a rectangle and outputs its representation. |
line | Selects a line (2 points polygon) and outputs its representation. |
2,3,4,.. | Selects a fixed size polygon (2,3,4,.. points) and outputs its representation. |
polygon | Selects a variable size polygon (double clicked to stop) and outputs its representation. |
cross-hair | Defines the so-called cross-hair cursor. |
hand | Defines the so-called hand cursor. |
text | Defines the cursor used to input text . |
wait | Defines the so-called wait cursor. |
public abstract void outputValue(String value)
value
- The mouse interaction value: