Package | Description |
---|---|
org.piccolo2d |
Piccolo is a general-purpose Java-based engine that supports 2D visualizations.
|
org.piccolo2d.util |
This package defines several utility classes that are likely
to be useful for Piccolo applications.
|
Modifier and Type | Method and Description |
---|---|
PBounds |
PNode.computeFullBounds(PBounds dstBounds)
Compute and return the full bounds of this node.
|
PBounds |
PNode.getBounds()
Return a copy of this node's bounds.
|
PBounds |
PNode.getBoundsReference()
Return a direct reference to this node's bounds.
|
PBounds |
PNode.getFullBounds()
Return a copy of this node's full bounds.
|
PBounds |
PNode.getFullBoundsReference()
Return a reference to this node's full bounds cache.
|
PBounds |
PNode.getGlobalBounds()
Return a copy of the bounds of this node in the global coordinate system.
|
PBounds |
PNode.getGlobalFullBounds()
Return a copy of the full bounds of this node in the global coordinate
system.
|
PBounds |
PNode.getUnionOfChildrenBounds(PBounds dstBounds)
Compute and return the union of the full bounds of all the children of
this node.
|
PBounds |
PCamera.getUnionOfLayerFullBounds()
Return the union of the full bounds of each layer in the list of layers
viewed by this camera, or empty bounds if the list of layers viewed by
this camera is empty.
|
PBounds |
PCamera.getViewBounds()
Return the bounds of this camera in the view coordinate system.
|
Modifier and Type | Method and Description |
---|---|
PBounds |
PNode.computeFullBounds(PBounds dstBounds)
Compute and return the full bounds of this node.
|
PBounds |
PNode.getUnionOfChildrenBounds(PBounds dstBounds)
Compute and return the union of the full bounds of all the children of
this node.
|
protected void |
PLayer.notifyCameras(PBounds parentBounds)
Dispatches repaint notification to all registered cameras.
|
void |
POffscreenCanvas.repaint(PBounds repaintBounds)
Called to notify PComponent that given bounds need repainting.
|
void |
PComponent.repaint(PBounds bounds)
Called to notify PComponent that given bounds need repainting.
|
void |
PCanvas.repaint(PBounds bounds)
Called to notify PComponent that given bounds need repainting.
|
void |
PNode.repaintFrom(PBounds localBounds,
PNode childOrThis)
Pass the given repaint request up the tree, so that any cameras can
invalidate that region on their associated canvas.
|
void |
PLayer.repaintFrom(PBounds localBounds,
PNode repaintSource)
Override repaints and forward them to the cameras that are viewing this
layer.
|
void |
PCamera.repaintFrom(PBounds localBounds,
PNode sourceNode)
Repaint this camera and forward the repaint request to the component
for this camera, if it is non-null.
|
void |
PCamera.repaintFromLayer(PBounds viewBounds,
PLayer repaintedLayer)
Repaint from one of the camera's layers.
|
Modifier and Type | Method and Description |
---|---|
PBounds |
PPickPath.getPickBounds()
Returns the bounds of the entire PickPath taken as a whole.
|
PBounds |
PBounds.inset(double dx,
double dy)
Adjust the measurements of this bounds so that they are the amounts given
"in" from their previous border.
|
PBounds |
PBounds.moveBy(double dx,
double dy)
Translates the bounds by the given deltas.
|
PBounds |
PBounds.reset()
Flags this bounds as empty.
|
PBounds |
PBounds.resetToZero()
Resets the bounds to (0,0,0,0) and flags it as empty.
|
PBounds |
PBounds.setOrigin(double x,
double y)
Changes the origin of these bounds.
|
Modifier and Type | Method and Description |
---|---|
void |
PBounds.add(PBounds bounds)
Changes this bounds to contain the provided bounds.
|
void |
PBounds.setRect(PBounds b)
Sets the bounds to the same shape as the bounds provided.
|
Constructor and Description |
---|
PBounds(PBounds aBounds)
Creates a bounds identical to the one provided.
|
PPickPath(PCamera camera,
PBounds aScreenPickBounds)
Creates a pick pack originating from the provided camera and with the
given screen pick bounds.
|
Copyright © 1995-2013 Piccolo2D. All Rights Reserved.