org.problets.lib.conceptmap.view
Class MouseClickedInfo

java.lang.Object
  extended by org.problets.lib.conceptmap.view.MouseClickedInfo

public class MouseClickedInfo
extends java.lang.Object

Used to store information about the mouse click, namely if a particular node was clicked and the the name of the clicked node (if any).

Author:
Adrain Maries

Constructor Summary
MouseClickedInfo(boolean inIsClicked, java.lang.String inNodeName)
          Creates a MouseClickedInfo using the flag which indicates if the node was clicked or not and the name of node as arguments.
 
Method Summary
 java.lang.String getNodeName()
          Returns the sequence of nodes clicked by the user.
 boolean isClicked()
          Returns true if a node was clicked and false otherwise.
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

MouseClickedInfo

public MouseClickedInfo(boolean inIsClicked,
                        java.lang.String inNodeName)
Creates a MouseClickedInfo using the flag which indicates if the node was clicked or not and the name of node as arguments.

Parameters:
inIsClicked - true if the node was clicked, false otherwise
inNodeName - the name of the node
Method Detail

getNodeName

public java.lang.String getNodeName()
Returns the sequence of nodes clicked by the user.

Returns:
the vector which contains the sequence of nodes clicked by the user.

isClicked

public boolean isClicked()
Returns true if a node was clicked and false otherwise.

Returns:
true if a node was clicked and false otherwise

main

public static void main(java.lang.String[] args)