Revision: 563 Author: mr0...@mro.name Date: Sat Jul 25 06:39:02 2009 Log: fix issue#99. http://code.google.com/p/piccolo2d/source/detail?r=563
Modified: /piccolo2d.java/trunk/core/src/main/java/edu/umd/cs/piccolo/PNode.java /piccolo2d.java/trunk/core/src/main/java/edu/umd/cs/piccolo/nodes/PImage.java /piccolo2d.java/trunk/core/src/main/java/edu/umd/cs/piccolo/nodes/PPath.java /piccolo2d.java/trunk/core/src/main/java/edu/umd/cs/piccolo/nodes/PText.java /piccolo2d.java/trunk/swt/src/main/java/edu/umd/cs/piccolox/swt/PSWTImage.java /piccolo2d.java/trunk/swt/src/main/java/edu/umd/cs/piccolox/swt/PSWTPath.java ======================================= --- /piccolo2d.java/trunk/core/src/main/java/edu/umd/cs/piccolo/PNode.java Sat Jul 25 06:29:38 2009 +++ /piccolo2d.java/trunk/core/src/main/java/edu/umd/cs/piccolo/PNode.java Sat Jul 25 06:39:02 2009 @@ -3254,18 +3254,6 @@ in.defaultReadObject(); parent = (PNode) in.readObject(); } - - // **************************************************************** - // Debugging - methods for debugging - // **************************************************************** - - /** - * Returns a string representation of this object for debugging purposes. - */ - public String toString() { - String result = super.toString().replaceAll(".*\\.", ""); - return result + "[" + paramString() + "]"; - } /** * Returns a string representing the state of this node. This method is @@ -3274,34 +3262,10 @@ * returned string may be empty but may not be <code>null</code>. * * @return a string representation of this node's state + * @deprecated */ - protected String paramString() { - StringBuffer result = new StringBuffer(); - - result.append("bounds=" + (bounds == null ? "null" : bounds.toString())); - result.append(",fullBounds=" + (fullBoundsCache == null ? "null" : fullBoundsCache.toString())); - result.append(",transform=" + (transform == null ? "null" : transform.toString())); - result.append(",paint=" + (paint == null ? "null" : paint.toString())); - result.append(",transparency=" + transparency); - result.append(",childrenCount=" + getChildrenCount()); - - if (fullBoundsInvalid) { - result.append(",fullBoundsInvalid"); - } - - if (pickable) { - result.append(",pickable"); - } - - if (childrenPickable) { - result.append(",childrenPickable"); - } - - if (visible) { - result.append(",visible"); - } - - return result.toString(); + protected final String paramString() { + return "this Method (paramString) is deprecated and will go away in the next release."; } public PInputEventListener[] getInputEventListeners() { ======================================= --- /piccolo2d.java/trunk/core/src/main/java/edu/umd/cs/piccolo/nodes/PImage.java Tue Jul 21 07:46:08 2009 +++ /piccolo2d.java/trunk/core/src/main/java/edu/umd/cs/piccolo/nodes/PImage.java Sat Jul 25 06:39:02 2009 @@ -234,22 +234,4 @@ g2.dispose(); return result; } - - /** - * Returns a string representing the state of this node. This method is - * intended to be used only for debugging purposes, and the content and - * format of the returned string may vary between implementations. The - * returned string may be empty but may not be <code>null</code>. - * - * @return a string representation of this node's state - */ - protected String paramString() { - StringBuffer result = new StringBuffer(); - - result.append("image=" + (image == null ? "null" : image.toString())); - result.append(','); - result.append(super.paramString()); - - return result.toString(); - } -} +} ======================================= --- /piccolo2d.java/trunk/core/src/main/java/edu/umd/cs/piccolo/nodes/PPath.java Mon Jul 20 12:41:11 2009 +++ /piccolo2d.java/trunk/core/src/main/java/edu/umd/cs/piccolo/nodes/PPath.java Sat Jul 25 06:39:02 2009 @@ -420,28 +420,4 @@ stroke = PUtil.readStroke(in); path = PUtil.readPath(in); } - - // **************************************************************** - // Debugging - methods for debugging - // **************************************************************** - - /** - * Returns a string representing the state of this node. This method is - * intended to be used only for debugging purposes, and the content and - * format of the returned string may vary between implementations. The - * returned string may be empty but may not be <code>null</code>. - * - * @return a string representation of this node's state - */ - protected String paramString() { - StringBuffer result = new StringBuffer(); - - result.append("path=" + (path == null ? "null" : path.toString())); - result.append(",stroke=" + (stroke == null ? "null" : stroke.toString())); - result.append(",strokePaint=" + (strokePaint == null ? "null" : strokePaint.toString())); - result.append(','); - result.append(super.paramString()); - - return result.toString(); - } -} +} ======================================= --- /piccolo2d.java/trunk/core/src/main/java/edu/umd/cs/piccolo/nodes/PText.java Fri Jul 17 20:04:59 2009 +++ /piccolo2d.java/trunk/core/src/main/java/edu/umd/cs/piccolo/nodes/PText.java Sat Jul 25 06:39:02 2009 @@ -338,27 +338,4 @@ double height) { recomputeLayout(); } - - // **************************************************************** - // Debugging - methods for debugging - // **************************************************************** - - /** - * Returns a string representing the state of this node. This method is - * intended to be used only for debugging purposes, and the content and - * format of the returned string may vary between implementations. The - * returned string may be empty but may not be <code>null</code>. - * - * @return a string representation of this node's state - */ - protected String paramString() { - StringBuffer result = new StringBuffer(); - - result.append("text=" + (text == null ? "null" : text)); - result.append(",font=" + (font == null ? "null" : font.toString())); - result.append(','); - result.append(super.paramString()); - - return result.toString(); - } -} +} ======================================= --- /piccolo2d.java/trunk/swt/src/main/java/edu/umd/cs/piccolox/swt/PSWTImage.java Fri Jan 23 12:30:32 2009 +++ /piccolo2d.java/trunk/swt/src/main/java/edu/umd/cs/piccolox/swt/PSWTImage.java Sat Jul 25 06:39:02 2009 @@ -141,27 +141,4 @@ } } } - - // **************************************************************** - // Debugging - methods for debugging - // **************************************************************** - - /** - * Returns a string representing the state of this node. This method is - * intended to be used only for debugging purposes, and the content and - * format of the returned string may vary between implementations. The - * returned string may be empty but may not be <code>null</code>. - * - * @return a string representation of this node's state - */ - protected String paramString() { - StringBuffer result = new StringBuffer(); - - result.append("image=" + (image == null ? "null" : image.toString())); - - result.append(','); - result.append(super.paramString()); - - return result.toString(); - } -} +} ======================================= --- /piccolo2d.java/trunk/swt/src/main/java/edu/umd/cs/piccolox/swt/PSWTPath.java Sat Jul 25 06:29:38 2009 +++ /piccolo2d.java/trunk/swt/src/main/java/edu/umd/cs/piccolox/swt/PSWTPath.java Sat Jul 25 06:39:02 2009 @@ -425,27 +425,4 @@ } setShape(path); } - - // **************************************************************** - // Debugging - methods for debugging - // **************************************************************** - - /** - * Returns a string representing the state of this node. This method is - * intended to be used only for debugging purposes, and the content and - * format of the returned string may vary between implementations. The - * returned string may be empty but may not be <code>null</code>. - * - * @return a string representation of this node's state - */ - protected String paramString() { - StringBuffer result = new StringBuffer(); - - result.append("path=" + (shape == null ? "null" : shape.toString())); - result.append(",strokePaint=" + (strokePaint == null ? "null" : strokePaint.toString())); - result.append(','); - result.append(super.paramString()); - - return result.toString(); - } -} +} --~--~---------~--~----~------------~-------~--~----~ Piccolo2D Developers Group: http://groups.google.com/group/piccolo2d-dev?hl=en -~----------~----~----~----~------~----~------~--~---