|
||||||||||
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.handles.PStickyHandleManager
public class PStickyHandleManager
This class relays adjustments to its bounds to its target.
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 | |
---|---|
PStickyHandleManager(PCamera newCamera,
PNode newTarget)
Constructs a sticky handle manager responsible for updating the position of its associated node on the camera provided. |
Method Summary | |
---|---|
void |
endResizeBounds()
Dispatches this event to its target as well. |
PBounds |
getBoundsReference()
The sticky handle manager's bounds as computed by examining its target through its camera. |
protected boolean |
getBoundsVolatile()
Since this node's bounds are always dependent on its target, it is volatile. |
boolean |
pickAfterChildren(PPickPath pickPath)
Since this node is invisible, it doesn't make sense to have it be pickable. |
boolean |
setBounds(double x,
double y,
double width,
double height)
By changing this sticky handle's bounds, it propagates that change to its associated node. |
void |
setCameraTarget(PCamera newCamera,
PNode newTarget)
Changes the node and camera on which this manager is operating. |
void |
startResizeBounds()
Dispatches this event to its target as well. |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PStickyHandleManager(PCamera newCamera, PNode newTarget)
newCamera
- camera on which this manager is operatingnewTarget
- node to be positioned on the cameraMethod Detail |
---|
public void setCameraTarget(PCamera newCamera, PNode newTarget)
newCamera
- camera on which this manager is operatingnewTarget
- node to be positioned on the camerapublic 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()
startResizeBounds
in class PNode
public void endResizeBounds()
endResizeBounds
in class PNode
public boolean pickAfterChildren(PPickPath pickPath)
pickAfterChildren
in class PNode
pickPath
- path in which we're trying to determine if this node is
pickable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |