|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.problets.lib.conceptmap.view.MousePressedInfo
public class MousePressedInfo
Used to store information about the mouse pressed event, namely if the mouse was pressed on a node or on a link and.
Constructor Summary | |
---|---|
MousePressedInfo(int inNodePressed,
boolean inLinkPressed)
Creates a MousePressedInfo using the flag which indicates if a node was pressed or not and the flag which indicates if a link was pressed or not. |
Method Summary | |
---|---|
boolean |
getLinkPressed()
Returns true if a link was clicked and false otherwise. |
int |
getNodePressed()
Returns ROOT_PRESSED if the mouse has been pressed on a root, NON_ROOT_PRESSED if the mouse was pressed on a node other than the root and NO_NODE_PRESSED if the was mouse wasn't pressed on any node. |
static void |
main(java.lang.String[] args)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MousePressedInfo(int inNodePressed, boolean inLinkPressed)
inNodePressed
- ROOT_PRESSED if the mouse has been pressed on a root,
NON_ROOT_PRESSED if the mouse was pressed on a node other than the root
and NO_NODE_PRESSED if the was mouse wasn't pressed on any node.inLinkPressed
- true if a link was pressed, false otherwiseMethod Detail |
---|
public int getNodePressed()
public boolean getLinkPressed()
public static void main(java.lang.String[] args)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |