y.view.hierarchy
Class HierarchySelectionBoxMode

java.lang.Object
  |
  +--y.view.ViewMode
        |
        +--y.view.AbstractSelectionBoxMode
              |
              +--y.view.SelectionBoxMode
                    |
                    +--y.view.hierarchy.HierarchySelectionBoxMode
All Implemented Interfaces:
EventListener, MouseInputListener, MouseListener, MouseMotionListener

public class HierarchySelectionBoxMode
extends SelectionBoxMode

A specialized SelectionBoxMode suitable for graphs that contain group nodes.


Field Summary
 
Fields inherited from class y.view.ViewMode
lastClickEvent, lastDragEvent, lastPressEvent, lastReleaseEvent, originalX, originalY, view
 
Constructor Summary
HierarchySelectionBoxMode()
           
 
Method Summary
protected  boolean belongsToSelection(Node v, Rectangle2D box)
          Apart from the default behaviour this method will not accept group nodes whose bounds are not completely contained within the selection box bounds.
 
Methods inherited from class y.view.SelectionBoxMode
belongsToSelection, belongsToSelection, selectionBoxAction
 
Methods inherited from class y.view.AbstractSelectionBoxMode
mouseDraggedLeft, mousePressedLeft, mouseReleasedLeft, mouseShiftPressedLeft, mouseShiftReleasedLeft, selectionBoxAction, updateDoubleSelectionBox
 
Methods inherited from class y.view.ViewMode
activate, getGraph2D, getGridX, getGridY, getHitInfo, getHitInfo, getLastHitInfo, getName, init, isGrabFocusEnabled, isGridMode, mouseClicked, mouseClicked, mouseDragged, mouseDraggedMiddle, mouseDraggedRight, mouseEntered, mouseExited, mouseMoved, mouseMoved, mousePressed, mousePressedMiddle, mousePressedRight, mouseReleased, mouseReleased, mouseReleasedMiddle, mouseReleasedRight, mouseShiftPressedMiddle, mouseShiftPressedRight, mouseShiftReleasedMiddle, mouseShiftReleasedRight, reactivateParent, setActiveView, setChild, setChild, setGrabFocusEnabled, setGridMode, setLastHitInfo, setName, setParent, translateX, translateY
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HierarchySelectionBoxMode

public HierarchySelectionBoxMode()
Method Detail

belongsToSelection

protected boolean belongsToSelection(Node v,
                                     Rectangle2D box)
Apart from the default behaviour this method will not accept group nodes whose bounds are not completely contained within the selection box bounds.

Overrides:
belongsToSelection in class SelectionBoxMode

© Copyright 2000-2003,
yWorks GmbH.
All rights reserved.

2003