|
|||||||||||
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.piccolo.nodes.PPath
edu.umd.cs.piccolox.nodes.PClip
PClip is a simple node that applies a clip before rendering or picking its children. PClip is a subclass of PPath, the clip applies is the GeneralPath wrapped by its super class. See piccolo/examples ClipExample.
Field Summary |
Fields inherited from class edu.umd.cs.piccolo.nodes.PPath |
PROPERTY_PATH, PROPERTY_STROKE, PROPERTY_STROKE_PAINT |
Fields inherited from class edu.umd.cs.piccolo.PNode |
PROPERTY_BOUNDS, PROPERTY_CHILDREN, PROPERTY_CHILDREN_PICKABLE, PROPERTY_CLIENT_PROPERTIES, PROPERTY_FULL_BOUNDS, PROPERTY_PAINT, PROPERTY_PARENT, PROPERTY_PICKABLE, PROPERTY_TRANSFORM, PROPERTY_TRANSPARENCY, PROPERTY_VISIBLE |
Fields inherited from interface java.awt.print.Printable |
NO_SUCH_PAGE, PAGE_EXISTS |
Constructor Summary | |
PClip()
|
Method Summary | |
PBounds |
computeFullBounds(PBounds dstBounds)
Compute and return the full bounds of this node. |
boolean |
fullPick(PPickPath pickPath)
Try to pick this node and all of its descendents. |
protected void |
paint(PPaintContext paintContext)
Paint this node behind any of its children nodes. |
protected void |
paintAfterChildren(PPaintContext paintContext)
Subclasses that wish to do additional painting after their children are painted should override this method and do that painting here. |
void |
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. |
Methods inherited from class edu.umd.cs.piccolo.nodes.PPath |
append, closePath, createEllipse, createLine, createPolyline, createPolyline, createRectangle, curveTo, endResizeBounds, getPathBoundsWithStroke, getPathReference, getStroke, getStrokePaint, internalUpdateBounds, intersects, lineTo, moveTo, paramString, quadTo, reset, setPathTo, setPathToEllipse, setPathToPolyline, setPathToPolyline, setPathToRectangle, setStroke, setStrokePaint, startResizeBounds, updateBoundsFromPath |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public PClip()
Method Detail |
public PBounds computeFullBounds(PBounds dstBounds)
PNode
computeFullBounds
in class PNode
dstBounds
- if not null the new bounds will be stored here
public void repaintFrom(PBounds localBounds, PNode childOrThis)
PNode
repaintFrom
in class PNode
localBounds
- the bounds to repaintchildOrThis
- if childOrThis does not equal this then this nodes transform will be applied to the localBounds paramprotected void paint(PPaintContext paintContext)
PNode
paint
in class PPath
protected void paintAfterChildren(PPaintContext paintContext)
PNode
paintAfterChildren
in class PNode
paintContext
- the paint context to sue for painting after the children are paintedpublic boolean fullPick(PPickPath pickPath)
PNode
pick
or
pickAfterChildren
.
fullPick
in class PNode
pickPath
- the pick path to add the node to if its picked
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |