|
||||||||||
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.PSWTStickyHandleManager
public class PSWTStickyHandleManager
A class for managing the position of a sticky handle.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class edu.umd.cs.piccolo.PNode |
---|
PNode.PSceneGraphDelegate |
Field Summary |
---|
Fields inherited from interface java.awt.print.Printable |
---|
NO_SUCH_PAGE, PAGE_EXISTS |
Constructor Summary | |
---|---|
PSWTStickyHandleManager(PCamera camera,
PNode target)
Creates a sticky handle that will be displayed on the given camera and will update the provided target. |
Method Summary | |
---|---|
void |
endResizeBounds()
Notify this node that you have finished a resize bounds sequence. |
PBounds |
getBoundsReference()
Return a direct reference to this node's bounds. |
protected boolean |
getBoundsVolatile()
Always returns true to ensure that they will always be displayed appropriately. |
boolean |
pickAfterChildren(PPickPath pickPath)
Since PSWTStickyHandle manager is not visible on screen, it just returns false when it is asked to be repainted. |
boolean |
setBounds(double x,
double y,
double width,
double height)
Set the bounds of this node to the given position and size. |
void |
setCameraTarget(PCamera newCamera,
PNode newTarget)
Changes the associated camera and target for this sticky handle. |
void |
startResizeBounds()
Notify this node that you will begin to repeatedly call setBounds
. |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PSWTStickyHandleManager(PCamera camera, PNode target)
camera
- camera on which to display the sticky handletarget
- target being controlled by the handleMethod Detail |
---|
public void setCameraTarget(PCamera newCamera, PNode newTarget)
newCamera
- new camera onto which this handle should appearnewTarget
- new target which this handle will controlpublic boolean setBounds(double x, double y, double width, double height)
setBounds
in class PNode
x
- x position of boundsy
- y position of boundswidth
- width to apply to the boundsheight
- height to apply to the bounds
protected boolean getBoundsVolatile()
getBoundsVolatile
in class PNode
public PBounds getBoundsReference()
getBoundsReference
in class PNode
public void startResizeBounds()
setBounds
. When you
are done call endResizeBounds
to let the node know that you
are done.
startResizeBounds
in class PNode
public void endResizeBounds()
endResizeBounds
in class PNode
public boolean pickAfterChildren(PPickPath pickPath)
pickAfterChildren
in class PNode
pickPath
- path of this node in which the interaction occurred that
required the repaint
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |