Deprecated API


Contents
Deprecated Fields
edu.umd.cs.piccolo.util.PPaintContext.CURRENT_PAINT_CONTEXT
          will disappear as soon as possible Global for accessing the current paint context while painting. 
edu.umd.cs.piccolo.PCanvas.CURRENT_ZCANVAS
          since it falsely assumes that there is only one PCanvas per program 
edu.umd.cs.piccolo.PCanvas.INTERACTING_CHANGED_NOTIFICATION
          in favor of PROPERTY_INTERACTING 
edu.umd.cs.piccolo.PCanvas.INTERATING_CHANGED_NOTIFICATION
          this is a typo and clients should change their code to reflect the correct spelling 
edu.umd.cs.piccolo.util.PUtil.NULL_OUTPUT_STREAM
          This has been moved into a private static class of PObjectOutputStream 
 

Deprecated Methods
edu.umd.cs.piccolo.PNode.addClientProperty(Object, Object)
          use addAttribute(Object key, Object value)instead. 
edu.umd.cs.piccolo.PCamera.animateViewToIncludeBounds(Rectangle2D, long)
          Renamed to animateViewToPanToBounds 
edu.umd.cs.piccolo.PNode.getClientProperty(Object)
          use getAttribute(Object key)instead. 
edu.umd.cs.piccolo.PNode.getClientPropertyKeysIterator()
          use getClientPropertyKeysEnumerator() instead. 
edu.umd.cs.piccolo.PCanvas.getDefaultRenderQuality()
          in favor or getNormalRenderQuality 
edu.umd.cs.piccolo.nodes.PText.getJustification()
          by PText.getHorizontalAlignment() 
edu.umd.cs.piccolo.activities.PActivity.paramString()
          see http://code.google.com/p/piccolo2d/issues/detail?id=99 
edu.umd.cs.piccolo.event.PBasicInputEventHandler.paramString()
          see http://code.google.com/p/piccolo2d/issues/detail?id=99 
edu.umd.cs.piccolo.PNode.paramString()
          see http://code.google.com/p/piccolo2d/issues/detail?id=99 
edu.umd.cs.piccolo.util.PPaintContext.popCamera(PCamera)
          in favor of popCamera() 
edu.umd.cs.piccolo.PNode.position(Point2D, Point2D, Rectangle2D, int)
          in 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.
 
edu.umd.cs.piccolo.PCamera.repaintFromLayer(PBounds, PNode)
          by PCamera.repaintFromLayer(PBounds, PLayer). Will be removed in version 2.0. 
edu.umd.cs.piccolo.nodes.PText.setJustification(float)
          by PText.setHorizontalAlignment(float) 
 



Copyright © 1995-2011 Piccolo2D. All Rights Reserved.