|
|||||||||
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()
|
PBounds |
getBoundsReference()
|
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)
|
void |
setCameraTarget(PCamera newCamera,
PNode newTarget)
Changes the associated camera and target for this sticky handle. |
void |
startResizeBounds()
|
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
protected boolean getBoundsVolatile()
getBoundsVolatile
in class PNode
public PBounds getBoundsReference()
getBoundsReference
in class PNode
public void startResizeBounds()
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 |