public final class PArea extends PShape
PNode.PSceneGraphDelegateDEFAULT_PAINT, DEFAULT_STROKE, DEFAULT_STROKE_PAINTFILL_STRATEGY_ASPECT_COVER, FILL_STRATEGY_ASPECT_FIT, FILL_STRATEGY_EXACT_FIT, PROPERTY_BOUNDS, PROPERTY_CHILDREN, PROPERTY_CHILDREN_PICKABLE, PROPERTY_CLIENT_PROPERTIES, PROPERTY_CODE_BOUNDS, PROPERTY_CODE_CHILDREN, PROPERTY_CODE_CHILDREN_PICKABLE, PROPERTY_CODE_CLIENT_PROPERTIES, PROPERTY_CODE_FULL_BOUNDS, PROPERTY_CODE_PAINT, PROPERTY_CODE_PARENT, PROPERTY_CODE_PICKABLE, PROPERTY_CODE_TRANSFORM, PROPERTY_CODE_TRANSPARENCY, PROPERTY_CODE_VISIBLE, PROPERTY_FULL_BOUNDS, PROPERTY_PAINT, PROPERTY_PARENT, PROPERTY_PICKABLE, PROPERTY_TRANSFORM, PROPERTY_TRANSPARENCY, PROPERTY_VISIBLE, SCENE_GRAPH_DELEGATENO_SUCH_PAGE, PAGE_EXISTS| Constructor and Description |
|---|
PArea()
Create a new area node with an empty area.
|
PArea(Area area)
Create a new area node with the specified area.
|
PArea(Area area,
Stroke stroke)
Create a new area node with the specified area and stroke.
|
PArea(Shape shape)
Create a new area node with the specified shape.
|
PArea(Shape shape,
Stroke stroke)
Create a new area node with the specified shape and stroke.
|
PArea(Stroke stroke)
Create a new area node with an empty area and the specified stroke.
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(Area area)
Add the shape of the specified area to the shape of this area node.
|
void |
exclusiveOr(Area area)
Set the shape of this area node to be the combined area of its current
shape and the shape of the specified area, minus their intersection.
|
Area |
getArea()
Return a copy of the area backing this area node.
|
Area |
getAreaReference()
Return the area backing this node.
|
protected Shape |
getShape()
Return the shape for this shape node.
|
void |
intersect(Area area)
Set the shape of this area node to the intersection of its current shape
and the shape of the specified area.
|
boolean |
isEmpty()
Return true if this area node represents an empty area.
|
boolean |
isPolygonal()
Return true if this area node consists entirely of straight-edged polygonal geometry.
|
boolean |
isRectangular()
Return true if this area node is rectangular in shape.
|
boolean |
isSingular()
Return true if this area node is comprised of a single closed subpath.
|
void |
reset()
Removes all of the geometry from this area node and restores it to an empty area.
|
void |
subtract(Area area)
Subtract the shape of the specified area from the shape of this area node.
|
protected void |
transform(AffineTransform transform)
Apply the specified transform to the shape for this shape node.
|
getBoundsWithStroke, getStroke, getStrokePaint, internalUpdateBounds, intersects, paint, setStroke, setStrokePaint, updateBoundsFromShapeaddActivity, addAttribute, addChild, addChild, addChildren, addInputEventListener, addPropertyChangeListener, addPropertyChangeListener, animateToBounds, animateToColor, animateToPositionScaleRotation, animateToRelativePosition, animateToTransform, animateToTransparency, animateTransformToBounds, centerBoundsOnPoint, centerFullBoundsOnPoint, clone, computeFullBounds, endResizeBounds, findIntersectingNodes, fireChildPropertyChange, firePropertyChange, fullIntersects, fullPaint, fullPick, getAllNodes, getAllNodes, getAttribute, getAttribute, getBooleanAttribute, getBounds, getBoundsChanged, getBoundsReference, getBoundsVolatile, getChild, getChildBoundsInvalid, getChildBoundsVolatile, getChildPaintInvalid, getChildrenCount, getChildrenIterator, getChildrenPickable, getChildrenReference, getClientProperties, getClientPropertyKeysEnumeration, getDoubleAttribute, getFullBounds, getFullBoundsInvalid, getFullBoundsReference, getGlobalBounds, getGlobalFullBounds, getGlobalRotation, getGlobalScale, getGlobalToLocalTransform, getGlobalTranslation, getHeight, getInputEventListeners, getIntegerAttribute, getInverseTransform, getListenerList, getLocalToGlobalTransform, getName, getOccluded, getOffset, getPaint, getPaintInvalid, getParent, getPickable, getPropertyChangeParentMask, getRoot, getRotation, getScale, getTransform, getTransformReference, getTransparency, getUnionOfChildrenBounds, getVisible, getWidth, getX, getXOffset, getY, getYOffset, globalToLocal, globalToLocal, globalToLocal, indexOfChild, invalidateFullBounds, invalidateLayout, invalidatePaint, isAncestorOf, isDescendentOf, isDescendentOfRoot, isOpaque, layoutChildren, lerp, localToGlobal, localToGlobal, localToGlobal, localToParent, localToParent, localToParent, lower, lower, lowerBelow, lowerToBottom, lowerToBottom, offset, paintAfterChildren, parentBoundsChanged, parentToLocal, parentToLocal, parentToLocal, pick, pickAfterChildren, print, print, raise, raise, raiseAbove, raiseToTop, raiseToTop, removeAllChildren, removeChild, removeChild, removeChildren, removeFromParent, removeInputEventListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaintFrom, reparent, replaceWith, resetBounds, rotate, rotateAboutPoint, rotateAboutPoint, rotateInPlace, scale, scaleAboutPoint, scaleAboutPoint, setBounds, setBounds, setBoundsChanged, setChildBoundsInvalid, setChildBoundsVolatile, setChildPaintInvalid, setChildrenPickable, setFullBoundsInvalid, setGlobalRotation, setGlobalScale, setGlobalTranslation, setHeight, setName, setOccluded, setOffset, setOffset, setPaint, setPaintInvalid, setParent, setPickable, setPropertyChangeParentMask, setRotation, setScale, setTransform, setTransparency, setVisible, setWidth, setX, setY, signalBoundsChanged, startResizeBounds, toImage, toImage, toImage, toImage, transformBy, translate, validateFullBounds, validateFullPaintpublic PArea()
public PArea(Stroke stroke)
stroke - strokepublic PArea(Shape shape)
shape - shape, must not be nullpublic PArea(Shape shape, Stroke stroke)
shape - shape, must not be nullstroke - strokepublic PArea(Area area)
area - area, must not be nullpublic Area getArea()
public Area getAreaReference()
area property change listeners will not be notified.public void add(Area area)
area - area to add, must not be nullNullPointerException - if area is nullpublic void exclusiveOr(Area area)
area - area to exclusive or, must not be nullNullPointerException - if area is nullpublic void intersect(Area area)
area - area to intersect, must not be nullNullPointerException - if area is nullpublic void subtract(Area area)
area - area to subtract, must not be nullNullPointerException - if area is nullpublic void reset()
public boolean isEmpty()
public boolean isPolygonal()
public boolean isRectangular()
public boolean isSingular()
SEG_MOVETO segments that appear in the path.protected Shape getShape()
protected void transform(AffineTransform transform)
Copyright © 1995-2013 Piccolo2D. All Rights Reserved.