|
||||||||||
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.piccolox.swt.PSWTPath
edu.umd.cs.piccolox.swt.PSWTHandle
public class PSWTHandle
PHandle is used to modify some aspect of Piccolo when it is dragged. Each handle has a PLocator that it uses to automatically position itself. See PBoundsHandle for an example of a handle that resizes the bounds of another node.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class edu.umd.cs.piccolo.PNode |
---|
PNode.PSceneGraphDelegate |
Field Summary | |
---|---|
static java.awt.Color |
DEFAULT_COLOR
|
static java.awt.Shape |
DEFAULT_HANDLE_SHAPE
|
static float |
DEFAULT_HANDLE_SIZE
|
Fields inherited from class edu.umd.cs.piccolox.swt.PSWTPath |
---|
PROPERTY_SHAPE |
Fields inherited from interface java.awt.print.Printable |
---|
NO_SUCH_PAGE, PAGE_EXISTS |
Constructor Summary | |
---|---|
PSWTHandle(PLocator aLocator)
Construct a new handle that will use the given locator to locate itself on its parent node. |
Method Summary | |
---|---|
void |
dragHandle(PDimension aLocalDimension,
PInputEvent aEvent)
Override this method to get notified as the handle is dragged. |
void |
endHandleDrag(java.awt.geom.Point2D aLocalPoint,
PInputEvent aEvent)
Override this method to get notified when the handle stops getting dragged. |
PDragSequenceEventHandler |
getHandleDraggerHandler()
Return the event handler that is responsible for the drag handle interaction. |
PLocator |
getLocator()
Get the locator that this handle uses to position itself on its parent node. |
protected void |
installHandleEventHandlers()
|
void |
parentBoundsChanged()
A notification that the bounds of this node's parent have changed. |
void |
relocateHandle()
Force this handle to relocate itself using its locator. |
void |
setLocator(PLocator aLocator)
Set the locator that this handle uses to position itself on its parent node. |
void |
setParent(PNode newParent)
Set the parent of this node. |
void |
startHandleDrag(java.awt.geom.Point2D aLocalPoint,
PInputEvent aEvent)
Override this method to get notified when the handle starts to get dragged. |
Methods inherited from class edu.umd.cs.piccolox.swt.PSWTPath |
---|
cloneShape, createEllipse, createPolyline, createPolyline, createRectangle, createRoundRectangle, getStrokePaint, internalUpdateBounds, intersects, paint, paramString, setPathToEllipse, setPathToPolyline, setPathToPolyline, setPathToRectangle, setPathToRoundRectangle, setShape, setStrokeColor, updateBoundsFromPath, updateShapePoints |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static float DEFAULT_HANDLE_SIZE
public static java.awt.Shape DEFAULT_HANDLE_SHAPE
public static java.awt.Color DEFAULT_COLOR
Constructor Detail |
---|
public PSWTHandle(PLocator aLocator)
Method Detail |
---|
protected void installHandleEventHandlers()
public PDragSequenceEventHandler getHandleDraggerHandler()
public PLocator getLocator()
public void setLocator(PLocator aLocator)
public void startHandleDrag(java.awt.geom.Point2D aLocalPoint, PInputEvent aEvent)
public void dragHandle(PDimension aLocalDimension, PInputEvent aEvent)
public void endHandleDrag(java.awt.geom.Point2D aLocalPoint, PInputEvent aEvent)
public void setParent(PNode newParent)
PNode
setParent
in class PNode
public void parentBoundsChanged()
PNode
parentBoundsChanged
in class PNode
public void relocateHandle()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |