y.view.hierarchy
Class HierarchySelectionBoxMode

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

public class HierarchySelectionBoxMode
extends SelectionBoxMode

A specialized SelectionBoxMode suitable for graphs that contain group nodes.

 
Your browser does not support SVG content.

Field Summary
 
Fields inherited from class y.view.ViewMode
ACTIVE_PROPERTY, ACTIVE_VIEW_PROPERTY, CHILD_MODE_PROPERTY, EDITING_PROPERTY, GRAB_FOCUS_ENABLED_PROPERTY, lastClickEvent, lastDragEvent, lastMoveEvent, lastPressEvent, lastReleaseEvent, MODIFIER_MASK_PROPERTY, NAME_PROPERTY, originalX, originalY, PARENT_MODE_PROPERTY, view
 
Constructor Summary
HierarchySelectionBoxMode()
           
 
Method Summary
protected  boolean belongsToSelection(Node v, Rectangle2D box)
          Apart from the default behavior 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, addPropertyChangeListener, addPropertyChangeListener, cancelEditing, firePropertyChange, firePropertyChange, firePropertyChange, getChild, getGraph2D, getGridX, getGridY, getHitInfo, getHitInfo, getLastHitInfo, getModifierMask, getName, getParent, init, isActive, isEditing, isGrabFocusEnabled, isGridMode, isModifierPressed, mouseClicked, mouseClicked, mouseDragged, mouseDraggedMiddle, mouseDraggedRight, mouseEntered, mouseExited, mouseMoved, mouseMoved, mousePressed, mousePressedMiddle, mousePressedRight, mouseReleased, mouseReleased, mouseReleasedMiddle, mouseReleasedRight, mouseShiftPressedMiddle, mouseShiftPressedRight, mouseShiftReleasedMiddle, mouseShiftReleasedRight, reactivateParent, removePropertyChangeListener, removePropertyChangeListener, setActiveView, setChild, setChild, setEditing, setGrabFocusEnabled, setGridMode, setLastHitInfo, setModifierMask, 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 behavior 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-2008,
yWorks GmbH.
All rights reserved.