org.simbrain.network.nodes
Class SelectionHandle

java.lang.Object
  extended by edu.umd.cs.piccolo.PNode
      extended by edu.umd.cs.piccolo.nodes.PPath
          extended by edu.umd.cs.piccolox.handles.PHandle
              extended by org.simbrain.network.nodes.SelectionHandle
All Implemented Interfaces:
Printable, Serializable, Cloneable

public final class SelectionHandle
extends PHandle

Selection handle.

Usage:

 PNode node = ...;
 SelectionHandle.addSelectionHandleTo(node)
 
and
 PNode node = ...;
 SelectionHandle.removeSelectionHandleFrom(node)
 

See Also:
addSelectionHandleTo(PNode), removeSelectionHandleFrom(PNode), Serialized Form

Field Summary
 
Fields inherited from class edu.umd.cs.piccolox.handles.PHandle
DEFAULT_COLOR, DEFAULT_HANDLE_SHAPE, DEFAULT_HANDLE_SIZE
 
Fields inherited from class edu.umd.cs.piccolo.nodes.PPath
PROPERTY_PATH, PROPERTY_STROKE, PROPERTY_STROKE_PAINT
 
Fields inherited from class edu.umd.cs.piccolo.PNode
PROPERTY_BOUNDS, PROPERTY_CHILDREN, PROPERTY_CHILDREN_PICKABLE, PROPERTY_CLIENT_PROPERTIES, PROPERTY_FULL_BOUNDS, PROPERTY_PAINT, PROPERTY_PARENT, PROPERTY_PICKABLE, PROPERTY_TRANSFORM, PROPERTY_TRANSPARENCY, PROPERTY_VISIBLE
 
Fields inherited from interface java.awt.print.Printable
NO_SUCH_PAGE, PAGE_EXISTS
 
Method Summary
static void addSelectionHandleTo(PNode node)
          Add a selection handle to the specified node, if one does not exist already.
static Color getSelectionColor()
           
 void parentBoundsChanged()
           
static void removeSelectionHandleFrom(PNode node)
          Remove the selection handle(s) from the specified node, if any exist.
static void setSelectionColor(Color selectionColor)
           
 
Methods inherited from class edu.umd.cs.piccolox.handles.PHandle
dragHandle, endHandleDrag, getHandleDraggerHandler, getLocator, installHandleEventHandlers, relocateHandle, setLocator, setParent, startHandleDrag
 
Methods inherited from class edu.umd.cs.piccolo.nodes.PPath
append, closePath, createEllipse, createLine, createPolyline, createPolyline, createRectangle, curveTo, endResizeBounds, getPathBoundsWithStroke, getPathReference, getStroke, getStrokePaint, internalUpdateBounds, intersects, lineTo, moveTo, paint, paramString, quadTo, reset, setPathTo, setPathToEllipse, setPathToPolyline, setPathToPolyline, setPathToRectangle, setStroke, setStrokePaint, startResizeBounds, updateBoundsFromPath
 
Methods inherited from class edu.umd.cs.piccolo.PNode
addActivity, addChild, addChild, addChildren, addClientProperty, addInputEventListener, addPropertyChangeListener, addPropertyChangeListener, animateToBounds, animateToColor, animateToPositionScaleRotation, animateToTransform, animateToTransparency, centerBoundsOnPoint, centerFullBoundsOnPoint, clone, computeFullBounds, findIntersectingNodes, firePropertyChange, fullIntersects, fullPaint, fullPick, getAllNodes, getAllNodes, getBounds, getBoundsChanged, getBoundsReference, getBoundsVolatile, getChild, getChildBoundsInvalid, getChildBoundsVolatile, getChildPaintInvalid, getChildrenCount, getChildrenIterator, getChildrenPickable, getChildrenReference, getClientProperty, getClientPropertyKeysIterator, getFullBounds, getFullBoundsInvalid, getFullBoundsReference, getGlobalBounds, getGlobalFullBounds, getGlobalRotation, getGlobalScale, getGlobalToLocalTransform, getGlobalTranslation, getHeight, getInverseTransform, getListenerList, getLocalToGlobalTransform, getOccluded, getOffset, getPaint, getPaintInvalid, getParent, getPickable, getRoot, getRotation, getScale, getTransform, getTransformReference, getTransparency, getUnionOfChildrenBounds, getVisible, getWidth, getX, getXOffset, getY, getYOffset, globalToLocal, globalToLocal, globalToLocal, indexOfChild, invalidateFullBounds, invalidateLayout, invalidatePaint, isAncestorOf, isDescendentOf, isDescendentOfRoot, isOpaque, layoutChildren, lerp, localToGlobal, localToGlobal, localToGlobal, localToParent, localToParent, localToParent, moveInBackOf, moveInFrontOf, moveToBack, moveToFront, offset, paintAfterChildren, parentToLocal, parentToLocal, parentToLocal, pick, pickAfterChildren, position, print, print, removeAllChildren, removeChild, removeChild, removeChildren, removeFromParent, removeInputEventListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaintFrom, reparent, replaceWith, resetBounds, rotate, rotateAboutPoint, rotateAboutPoint, rotateInPlace, scale, scaleAboutPoint, scaleAboutPoint, setBounds, setBounds, setBoundsChanged, setChildBoundsInvalid, setChildBoundsVolatile, setChildPaintInvalid, setChildrenPickable, setFullBoundsInvalid, setGlobalRotation, setGlobalScale, setGlobalTranslation, setHeight, setOccluded, setOffset, setOffset, setPaint, setPaintInvalid, setPickable, setRotation, setScale, setTransform, setTransparency, setVisible, setWidth, setX, setY, signalBoundsChanged, toImage, toImage, toString, transformBy, translate, validateFullBounds, validateFullPaint
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

parentBoundsChanged

public void parentBoundsChanged()
Overrides:
parentBoundsChanged in class PHandle
See Also:
PHandle

addSelectionHandleTo

public static void addSelectionHandleTo(PNode node)
Add a selection handle to the specified node, if one does not exist already.

Parameters:
node - node to add the selection handle to, must not be null

removeSelectionHandleFrom

public static void removeSelectionHandleFrom(PNode node)
Remove the selection handle(s) from the specified node, if any exist.

Parameters:
node - node to remove the selection handle(s) from, must not be null

getSelectionColor

public static Color getSelectionColor()
Returns:
Returns the selectionColor.

setSelectionColor

public static void setSelectionColor(Color selectionColor)
Parameters:
selectionColor - The selectionColor to set.