org.problets.lib.conceptmap.view.collapsible
Class CollapsibleNodeView

java.lang.Object
  extended by org.problets.lib.conceptmap.view.NodeView
      extended by org.problets.lib.conceptmap.view.collapsible.CollapsibleNodeView

public class CollapsibleNodeView
extends NodeView

Derived from NodeView. Adds to the functionality ofa node view in order to handle a collapsible node view.


Field Summary
 
Fields inherited from class org.problets.lib.conceptmap.view.NodeView
NO_NODE_PRESSED, NO_NODE_RELEASED, NON_ROOT_PRESSED, NON_ROOT_RELEASED, ROOT_PRESSED, ROOT_RELEASED
 
Constructor Summary
CollapsibleNodeView(NodeView parent, NodeModel nodeModel)
          Creates a CollapsibleNodeView object using the parent node view and the corresponding model as arguments.
 
Method Summary
 MouseClickedInfo handleMouseClicked(int xCoord, int yCoord)
          Handles the mouseClicked event.
static void main(java.lang.String[] args)
           
 
Methods inherited from class org.problets.lib.conceptmap.view.NodeView
draw, findNode, getChildLink, getChildNode, getCurrentXEnd, getCurrentXStart, getCurrentYEnd, getCurrentYStart, getIndex, getIsExpanded, getIsHighlighted, getIsVisible, getMaxHeightOfDescendants, getMaxWidthOfDescendants, getMouseoverVisible, getMouseoverVisibleNode, getNodeModel, getNumChildren, getParent, handleMouseDragged, handleMouseMoved, handleMousePressed, handleMouseReleased, isOnChildLinks, isOnNode, layout, paintMouseover, setCoord, setExpandedUpToDepth, setIsHighlighted, setIsHighlightedAncestorPath, setIsLastPressed, setIsVisible, setLinksVisible, setMouseoverVisible, setParent, setTextFont
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CollapsibleNodeView

public CollapsibleNodeView(NodeView parent,
                           NodeModel nodeModel)
Creates a CollapsibleNodeView object using the parent node view and the corresponding model as arguments.

Parameters:
parent - this node view's parent
nodeModel - the model representing this node view
Method Detail

handleMouseClicked

public MouseClickedInfo handleMouseClicked(int xCoord,
                                           int yCoord)
Handles the mouseClicked event.

Overrides:
handleMouseClicked in class NodeView
Parameters:
xCoord - the x-coordinate of the mouse event
yCoord - the y-coordinate of the mouse event
Returns:
a MouseClickedInfo object which holds information about the clicked node

main

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