|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.umd.cs.piccolo.PNode
edu.umd.cs.piccolo.nodes.PPath
edu.umd.cs.piccolox.handles.PHandle
edu.umd.cs.piccolox.handles.PBoundsHandle
public class PBoundsHandle
PBoundsHandle a handle for resizing the bounds of another node. If a bounds handle is dragged such that the other node's width or height becomes negative then the each drag handle's locator assciated with that other node is "flipped" so that they are attached to and dragging a different corner of the nodes bounds.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class edu.umd.cs.piccolo.PNode |
---|
edu.umd.cs.piccolo.PNode.PSceneGraphDelegate |
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_CODE_PATH, PROPERTY_CODE_STROKE, PROPERTY_CODE_STROKE_PAINT, PROPERTY_PATH, PROPERTY_STROKE, PROPERTY_STROKE_PAINT |
Fields inherited from class edu.umd.cs.piccolo.PNode |
---|
FILL_STRATEGY_ASPECT_COVER, FILL_STRATEGY_ASPECT_FIT, FILL_STRATEGY_EXACT_FIT, PROPERTY_BOUNDS, PROPERTY_CHILDREN, PROPERTY_CHILDREN_PICKABLE, PROPERTY_CLIENT_PROPERTIES, PROPERTY_CODE_BOUNDS, PROPERTY_CODE_CHILDREN, PROPERTY_CODE_CHILDREN_PICKABLE, PROPERTY_CODE_CLIENT_PROPERTIES, PROPERTY_CODE_FULL_BOUNDS, PROPERTY_CODE_PAINT, PROPERTY_CODE_PARENT, PROPERTY_CODE_PICKABLE, PROPERTY_CODE_TRANSFORM, PROPERTY_CODE_TRANSPARENCY, PROPERTY_CODE_VISIBLE, PROPERTY_FULL_BOUNDS, PROPERTY_PAINT, PROPERTY_PARENT, PROPERTY_PICKABLE, PROPERTY_TRANSFORM, PROPERTY_TRANSPARENCY, PROPERTY_VISIBLE, SCENE_GRAPH_DELEGATE |
Fields inherited from interface java.awt.print.Printable |
---|
NO_SUCH_PAGE, PAGE_EXISTS |
Constructor Summary | |
---|---|
PBoundsHandle(PBoundsLocator aLocator)
|
Method Summary | |
---|---|
static void |
addBoundsHandlesTo(edu.umd.cs.piccolo.PNode aNode)
|
static void |
addStickyBoundsHandlesTo(edu.umd.cs.piccolo.PNode aNode,
edu.umd.cs.piccolo.PCamera camera)
|
void |
dragHandle(edu.umd.cs.piccolo.util.PDimension aLocalDimension,
edu.umd.cs.piccolo.event.PInputEvent aEvent)
Override this method to get notified as the handle is dragged. |
void |
endHandleDrag(java.awt.geom.Point2D aLocalPoint,
edu.umd.cs.piccolo.event.PInputEvent aEvent)
Override this method to get notified when the handle stops getting dragged. |
void |
flipHandleIfNeeded(boolean flipX,
boolean flipY)
|
void |
flipSiblingBoundsHandles(boolean flipX,
boolean flipY)
|
java.awt.Cursor |
getCursorFor(int side)
|
edu.umd.cs.piccolo.event.PBasicInputEventHandler |
getHandleCursorEventHandler()
Return the event handler that is responsible for setting the mouse cursor when it enters/exits this handle. |
protected void |
installHandleEventHandlers()
|
static void |
removeBoundsHandlesFrom(edu.umd.cs.piccolo.PNode aNode)
|
void |
startHandleDrag(java.awt.geom.Point2D aLocalPoint,
edu.umd.cs.piccolo.event.PInputEvent aEvent)
Override this method to get notified when the handle starts to get dragged. |
Methods inherited from class edu.umd.cs.piccolox.handles.PHandle |
---|
getHandleDraggerHandler, getLocator, parentBoundsChanged, relocateHandle, setLocator, setParent |
Methods inherited from class edu.umd.cs.piccolo.nodes.PPath |
---|
append, closePath, createEllipse, createLine, createPolyline, createPolyline, createRectangle, createRoundRectangle, curveTo, endResizeBounds, getPathBoundsWithStroke, getPathReference, getStroke, getStrokePaint, internalUpdateBounds, intersects, lineTo, moveTo, paint, quadTo, reset, setPathTo, setPathToEllipse, setPathToPolyline, setPathToPolyline, setPathToRectangle, setStroke, setStrokePaint, startResizeBounds, updateBoundsFromPath |
Methods inherited from class edu.umd.cs.piccolo.PNode |
---|
addActivity, addAttribute, addChild, addChild, addChildren, addClientProperty, addInputEventListener, addPropertyChangeListener, addPropertyChangeListener, animateToBounds, animateToColor, animateToPositionScaleRotation, animateToRelativePosition, animateToTransform, animateToTransparency, animateTransformToBounds, centerBoundsOnPoint, centerFullBoundsOnPoint, clone, computeFullBounds, findIntersectingNodes, fireChildPropertyChange, firePropertyChange, fullIntersects, fullPaint, fullPick, getAllNodes, getAllNodes, getAttribute, getAttribute, getBooleanAttribute, getBounds, getBoundsChanged, getBoundsReference, getBoundsVolatile, getChild, getChildBoundsInvalid, getChildBoundsVolatile, getChildPaintInvalid, getChildrenCount, getChildrenIterator, getChildrenPickable, getChildrenReference, getClientProperties, getClientProperty, getClientPropertyKeysEnumeration, getClientPropertyKeysIterator, getDoubleAttribute, getFullBounds, getFullBoundsInvalid, getFullBoundsReference, getGlobalBounds, getGlobalFullBounds, getGlobalRotation, getGlobalScale, getGlobalToLocalTransform, getGlobalTranslation, getHeight, getInputEventListeners, getIntegerAttribute, getInverseTransform, getListenerList, getLocalToGlobalTransform, getName, getOccluded, getOffset, getPaint, getPaintInvalid, getParent, getPickable, getPropertyChangeParentMask, 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, paramString, 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, setName, setOccluded, setOffset, setOffset, setPaint, setPaintInvalid, setPickable, setPropertyChangeParentMask, setRotation, setScale, setTransform, setTransparency, setVisible, setWidth, setX, setY, signalBoundsChanged, toImage, toImage, toImage, toImage, transformBy, translate, validateFullBounds, validateFullPaint |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PBoundsHandle(PBoundsLocator aLocator)
Method Detail |
---|
public static void addBoundsHandlesTo(edu.umd.cs.piccolo.PNode aNode)
public static void addStickyBoundsHandlesTo(edu.umd.cs.piccolo.PNode aNode, edu.umd.cs.piccolo.PCamera camera)
public static void removeBoundsHandlesFrom(edu.umd.cs.piccolo.PNode aNode)
protected void installHandleEventHandlers()
installHandleEventHandlers
in class PHandle
public edu.umd.cs.piccolo.event.PBasicInputEventHandler getHandleCursorEventHandler()
public void startHandleDrag(java.awt.geom.Point2D aLocalPoint, edu.umd.cs.piccolo.event.PInputEvent aEvent)
PHandle
startHandleDrag
in class PHandle
public void dragHandle(edu.umd.cs.piccolo.util.PDimension aLocalDimension, edu.umd.cs.piccolo.event.PInputEvent aEvent)
PHandle
dragHandle
in class PHandle
public void endHandleDrag(java.awt.geom.Point2D aLocalPoint, edu.umd.cs.piccolo.event.PInputEvent aEvent)
PHandle
endHandleDrag
in class PHandle
public void flipSiblingBoundsHandles(boolean flipX, boolean flipY)
public void flipHandleIfNeeded(boolean flipX, boolean flipY)
public java.awt.Cursor getCursorFor(int side)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |