-
Deprecated FieldsFieldDescriptionsince it falsely assumes that there is only one PCanvas per programin favor of PROPERTY_INTERACTINGthis is a typo and clients should change their code to reflect the correct spellingwill disappear as soon as possible Global for accessing the current paint context while painting.This has been moved into a private static class of PObjectOutputStream
-
Deprecated MethodsMethodDescriptionsee http://code.google.com/p/piccolo2d/issues/detail?id=99see http://code.google.com/p/piccolo2d/issues/detail?id=99Renamed to animateViewToPanToBoundsby
PCamera.repaintFromLayer(PBounds, PLayer). Will be removed in version 2.0.in favor or getNormalRenderQualityuse addAttribute(Object key, Object value)instead.use getAttribute(Object key)instead.use getClientPropertyKeysEnumerator() instead.see http://code.google.com/p/piccolo2d/issues/detail?id=99in favor of animateToRelativePosition It will calculate the necessary transform in order to make this node appear at a particular position relative to the specified bounding box. The source point specifies a point in the unit square (0, 0) - (1, 1) that represents an anchor point on the corresponding node to this transform. The destination point specifies an anchor point on the reference node. The position method then computes the transform that results in transforming this node so that the source anchor point coincides with the reference anchor point. This can be useful for layout algorithms as it is straightforward to position one object relative to another.For example, If you have two nodes, A and B, and you call
Point2D srcPt = new Point2D.Double(1.0, 0.0); Point2D destPt = new Point2D.Double(0.0, 0.0); A.position(srcPt, destPt, B.getGlobalBounds(), 750, null);
The result is that A will move so that its upper-right corner is at the same place as the upper-left corner of B, and the transition will be smoothly animated over a period of 750 milliseconds.in favor of popCamera()