[piccolo2d-dev] Issue 225 in piccolo2d: Typo; descriptions out of order

2011-08-23 Thread piccolo2d

Status: New
Owner: 

New issue 225 by young.lu...@gmail.com: Typo; descriptions out of order
http://code.google.com/p/piccolo2d/issues/detail?id=225

on the page http://www.piccolo2d.org/learn/interaction.html, step 1 a  
includes several import lines and then describes what each line imports.  
the descriptions for what the second line and what the third line do are  
backwards; the second line and third lines are, respectively:


import edu.umd.cs.piccolo.event.*;
import edu.umd.cs.piccolo.nodes.*;

and the descriptions are:

The second line includes the default node types that Piccolo2D provides,  
all of which extend PNode.  The third line includes the basic event types.


EITHER the lines should be switched to:

import edu.umd.cs.piccolo.nodes.*;
import edu.umd.cs.piccolo.event.*;

OR the descriptions should be switched to:

The second line includes the basic event types. The third line includes the  
default node types that Piccolo2D provides, all of which extend PNode.


I think the first option is probably preferable.

--
Piccolo2D Developers Group: http://groups.google.com/group/piccolo2d-dev?hl=en


[piccolo2d-dev] Issue 226 in piccolo2d: Visual Studio integrated help file doesn't exist.

2011-08-30 Thread piccolo2d

Status: New
Owner: 

New issue 226 by jru...@gmail.com: Visual Studio integrated help file  
doesn't exist.

http://code.google.com/p/piccolo2d/issues/detail?id=226

What steps will reproduce the problem?
1. Go here: http://www.piccolo2d.org/learn/api.html
2. Click on the download for the Visual Studio integrated help
3. File does not exist.


--
Piccolo2D Developers Group: http://groups.google.com/group/piccolo2d-dev?hl=en


[piccolo2d-dev] Re: Issue 221 in piccolo2d: Cannot draw veritical and horizontal lines of 0 width stroke using PPath

2011-10-22 Thread piccolo2d


Comment #3 on issue 221 by funny...@gmail.com: Cannot draw veritical and  
horizontal lines of 0 width stroke using PPath

http://code.google.com/p/piccolo2d/issues/detail?id=221

I can confirm the bug with my system

* Piccolo2d.java 1.3.1,
* java version 1.6.0_22
OpenJDK Runtime Environment (IcedTea6 1.10.3) (fedora-59.1.10.3.fc15-i386)
OpenJDK Server VM (build 20.0-b11, mixed mode)
* Fedora 15 2.6.40.6-0.fc15.i686

If x1!=x2 or y1!=y2 then a one pixel width line is drawn in every zoom  
level, for stroke width zero. Attached is a test program to show the issue.


Attachments:
ZeroWidthStrokeBug.java  929 bytes

--
Piccolo2D Developers Group: http://groups.google.com/group/piccolo2d-dev?hl=en


[piccolo2d-dev] Re: Issue 225 in piccolo2d: Typo; descriptions out of order

2011-10-25 Thread piccolo2d

Updates:
Status: Accepted
Owner: heue...@gmail.com
	Labels: Type-Defect Priority-Medium Effort-Low OpSys-All  
Toolkit-Piccolo2D.Java Component-Docs Milestone-1.3.1


Comment #1 on issue 225 by heue...@gmail.com: Typo; descriptions out of  
order

http://code.google.com/p/piccolo2d/issues/detail?id=225

Thank you for the suggestion.

--
Piccolo2D Developers Group: http://groups.google.com/group/piccolo2d-dev?hl=en


[piccolo2d-dev] Re: Issue 226 in piccolo2d: Visual Studio integrated help file doesn't exist.

2011-10-25 Thread piccolo2d

Updates:
Status: Accepted
Owner: heue...@gmail.com
	Labels: Type-Defect Priority-Medium Effort-Low OpSys-All  
Toolkit-Piccolo2D.NET Component-Docs


Comment #1 on issue 226 by heue...@gmail.com: Visual Studio integrated help  
file doesn't exist.

http://code.google.com/p/piccolo2d/issues/detail?id=226

Thank you for the suggestion.  I hope this file may still be around  
somewhere, since I would be unable to regenerate it.


--
Piccolo2D Developers Group: http://groups.google.com/group/piccolo2d-dev?hl=en


[piccolo2d-dev] Re: Issue 214 in piccolo2d: PSwing is not serializeable

2011-10-25 Thread piccolo2d


Comment #1 on issue 214 by heue...@gmail.com: PSwing is not serializeable
http://code.google.com/p/piccolo2d/issues/detail?id=214

I agree.  Does this happen with the workarounds for Stroke and Path as  
implemented in PUtil?  I don't remember how those are used.


--
Piccolo2D Developers Group: http://groups.google.com/group/piccolo2d-dev?hl=en


[piccolo2d-dev] Re: Issue 221 in piccolo2d: Cannot draw veritical and horizontal lines of 0 width stroke using PPath

2011-10-25 Thread piccolo2d


Comment #4 on issue 221 by heue...@gmail.com: Cannot draw veritical and  
horizontal lines of 0 width stroke using PPath

http://code.google.com/p/piccolo2d/issues/detail?id=221

Is this a Piccolo2D bug or an AWT one?  I don't see any mention of 1-pixel  
wide stroke width with BasicStroke(0) in the JDK javadocs.


--
Piccolo2D Developers Group: http://groups.google.com/group/piccolo2d-dev?hl=en


[piccolo2d-dev] Re: Issue 225 in piccolo2d: Typo; descriptions out of order

2011-10-25 Thread piccolo2d

Updates:
Status: Fixed

Comment #2 on issue 225 by heue...@gmail.com: Typo; descriptions out of  
order

http://code.google.com/p/piccolo2d/issues/detail?id=225

$ svn commit -m Issue 225 ; apply documentation fix, import statements and  
description were out of order learn/interaction.html

...
Committed revision 1153.


--
Piccolo2D Developers Group: http://groups.google.com/group/piccolo2d-dev?hl=en


[piccolo2d-dev] Issue 229 in piccolo2d: Consider updating maven-checkstyle-plugin to version 2.8

2011-11-01 Thread piccolo2d

Status: New
Owner: 

New issue 229 by heue...@gmail.com: Consider updating  
maven-checkstyle-plugin to version 2.8

http://code.google.com/p/piccolo2d/issues/detail?id=229

The release notes for version 2.8 of maven-checkstyle-plugin say it now  
supports aggregated reports in a multi-modules project, that may help with  
our multi-module site build.


http://jira.codehaus.org/browse/MCHECKSTYLE-62

-- Forwarded message --
From: Mark Hobson ma...@apache.org
Date: Tue, Nov 1, 2011 at 5:09 AM
Subject: [ANN] Maven Checkstyle Plugin 2.8 Released
To: annou...@maven.apache.org, us...@maven.apache.org, d...@maven.apache.org


The Maven team is pleased to announce the release of the Maven Checkstyle  
Plugin, version 2.8


Generates a report on violations of code style and optionally fails the  
build if violations are detected.


http://maven.apache.org/plugins/maven-checkstyle-plugin

You should specify the version in your project's plugin configuration:

plugin
 groupIdorg.apache.maven.plugins/groupId
 artifactIdmaven-checkstyle-plugin/artifactId
 version2.8/version
/plugin


Release Notes - Maven Checkstyle Plugin - Version 2.8

Bug
* [MCHECKSTYLE-159] Optional treeWalker.cacheFile property must not be  
required


New Feature
* [MCHECKSTYLE-62] Support aggregated reports in a multi-modules project


Enjoy,

-The Maven team

--
Piccolo2D Developers Group: http://groups.google.com/group/piccolo2d-dev?hl=en


[piccolo2d-dev] [piccolo2d] r1154 committed - Issue 134 ; do not apply transform if destination transform is null

2011-11-01 Thread piccolo2d

Revision: 1154
Author:   heuermh
Date: Tue Nov  1 10:33:52 2011
Log:  Issue 134 ; do not apply transform if destination transform is  
null

http://code.google.com/p/piccolo2d/source/detail?r=1154

Modified:
  
/piccolo2d.java/branches/release-1.3/core/src/main/java/edu/umd/cs/piccolo/activities/PTransformActivity.java
  
/piccolo2d.java/branches/release-1.3/core/src/test/java/edu/umd/cs/piccolo/activities/PTransformActivityTest.java


===
---  
/piccolo2d.java/branches/release-1.3/core/src/main/java/edu/umd/cs/piccolo/activities/PTransformActivity.java	 
Tue Mar 15 15:28:41 2011
+++  
/piccolo2d.java/branches/release-1.3/core/src/main/java/edu/umd/cs/piccolo/activities/PTransformActivity.java	 
Tue Nov  1 10:33:52 2011

@@ -196,6 +196,9 @@
 public void setRelativeTargetValue(final float zeroToOne) {
 super.setRelativeTargetValue(zeroToOne);

+if (destination == null) {
+return;
+}
 STATIC_TRANSFORM.setTransform(source[0] + zeroToOne *  
(destination[0] - source[0]), source[1] + zeroToOne
 * (destination[1] - source[1]), source[2] + zeroToOne *  
(destination[2] - source[2]), source[3]
 + zeroToOne * (destination[3] - source[3]), source[4] +  
zeroToOne * (destination[4] - source[4]),

===
---  
/piccolo2d.java/branches/release-1.3/core/src/test/java/edu/umd/cs/piccolo/activities/PTransformActivityTest.java	 
Tue Mar 15 15:28:41 2011
+++  
/piccolo2d.java/branches/release-1.3/core/src/test/java/edu/umd/cs/piccolo/activities/PTransformActivityTest.java	 
Tue Nov  1 10:33:52 2011

@@ -28,16 +28,35 @@
  */
 package edu.umd.cs.piccolo.activities;

+import java.awt.geom.AffineTransform;
+
+import edu.umd.cs.piccolo.PNode;
+
 import junit.framework.TestCase;

 /**
  * Unit test for PTransformActivity.
  */
 public class PTransformActivityTest extends TestCase {
+private final PNode node = new PNode();
+private final PTransformActivity.Target target = new  
PTransformActivity.Target() {

+public void setTransform(final AffineTransform aTransform) {
+node.setTransform(aTransform);
+}
+public void getSourceMatrix(final double[] aSource) {
+node.getTransformReference(true).getMatrix(aSource);
+}
+};

 public PTransformActivityTest(final String name) {
 super(name);
 }
+
+public void testNullDestinationTransform() {
+final PTransformActivity transformActivity = new  
PTransformActivity(0, 0, target);

+transformActivity.setDestinationTransform(null);
+transformActivity.setRelativeTargetValue(0.0f);
+}

 public void testToString() {
 final PTransformActivity transformActivity = new  
PTransformActivity(1000, 0, null);


--
Piccolo2D Developers Group: http://groups.google.com/group/piccolo2d-dev?hl=en


[piccolo2d-dev] Re: Issue 122 in piccolo2d: Scaling differences between two layers

2011-11-01 Thread piccolo2d

Updates:
Status: WontFix

Comment #3 on issue 122 by heue...@gmail.com: Scaling differences between  
two layers

http://code.google.com/p/piccolo2d/issues/detail?id=122

(No comment was entered for this change.)

--
Piccolo2D Developers Group: http://groups.google.com/group/piccolo2d-dev?hl=en


[piccolo2d-dev] Re: Issue 155 in piccolo2d: If width or height is zero, the rest of bounds are reset.

2011-11-01 Thread piccolo2d


Comment #7 on issue 155 by heue...@gmail.com: If width or height is zero,  
the rest of bounds are reset.

http://code.google.com/p/piccolo2d/issues/detail?id=155

No update on this issue in some time, would it be ok for me to apply this  
to release-1.3-branch for Milestone-1.3.2?


--
Piccolo2D Developers Group: http://groups.google.com/group/piccolo2d-dev?hl=en


[piccolo2d-dev] Re: Issue 198 in piccolo2d: Remove property code constants, add firePropertyChange(String, T, T) methods

2011-11-01 Thread piccolo2d


Comment #1 on issue 198 by heue...@gmail.com: Remove property code  
constants, add firePropertyChange(String, T, T) methods

http://code.google.com/p/piccolo2d/issues/detail?id=198

I will commit this to svn trunk if there are no objections.

--
Piccolo2D Developers Group: http://groups.google.com/group/piccolo2d-dev?hl=en


[piccolo2d-dev] Re: Issue 207 in piccolo2d: Horizontal scrolling causes an exception

2011-11-01 Thread piccolo2d

Updates:
Status: Accepted
Owner: heue...@gmail.com
	Labels: Type-Defect Priority-Medium Effort-Low OpSys-All  
Toolkit-Piccolo2D.Java Component-Core Milestone-1.3.2


Comment #3 on issue 207 by heue...@gmail.com: Horizontal scrolling causes  
an exception

http://code.google.com/p/piccolo2d/issues/detail?id=207

I would assert Piccolo2D shouldn't throw an exception if getButton()  
returns MouseEvent.NOBUTTON then.  There may be some confusion between  
MouseEvent.MOUSE_DRAGGED and MouseEvent.MOUSE_MOVED though, see e.g.  
PCanvas.java, lines 729-734 and 744-749.


--
Piccolo2D Developers Group: http://groups.google.com/group/piccolo2d-dev?hl=en


[piccolo2d-dev] Re: Issue 208 in piccolo2d: Merge maven reporting plugin versions to parent pom

2011-11-01 Thread piccolo2d

Updates:
Status: Accepted
Owner: heue...@gmail.com
	Labels: Type-Enhancement Priority-Medium Effort-Medium OpSys-All  
Toolkit-Piccolo2D.Java Component-Build Milestone-1.3.2


Comment #1 on issue 208 by heue...@gmail.com: Merge maven reporting plugin  
versions to parent pom

http://code.google.com/p/piccolo2d/issues/detail?id=208

(No comment was entered for this change.)

--
Piccolo2D Developers Group: http://groups.google.com/group/piccolo2d-dev?hl=en


[piccolo2d-dev] Re: Issue 209 in piccolo2d: Update maven site module navigation, add content to parent/src/site/apt/index.apt

2011-11-01 Thread piccolo2d

Updates:
Status: Accepted
Owner: heue...@gmail.com
	Labels: Type-Enhancement Priority-Medium Effort-Medium OpSys-All  
Toolkit-Piccolo2D.Java Component-Build Milestone-1.3.2


Comment #1 on issue 209 by heue...@gmail.com: Update maven site module  
navigation, add content to parent/src/site/apt/index.apt

http://code.google.com/p/piccolo2d/issues/detail?id=209

(No comment was entered for this change.)

--
Piccolo2D Developers Group: http://groups.google.com/group/piccolo2d-dev?hl=en


[piccolo2d-dev] Re: Issue 211 in piccolo2d: Consider using Sonatype oss-parent-7.pom as the parent of parent/pom.xml

2011-11-01 Thread piccolo2d

Updates:
Status: Accepted
Owner: heue...@gmail.com
	Labels: Type-Enhancement Priority-Medium Effort-Medium OpSys-All  
Toolkit-Piccolo2D.Java Component-Build Milestone-1.3.2


Comment #1 on issue 211 by heue...@gmail.com: Consider using Sonatype  
oss-parent-7.pom as the parent of parent/pom.xml

http://code.google.com/p/piccolo2d/issues/detail?id=211

(No comment was entered for this change.)

--
Piccolo2D Developers Group: http://groups.google.com/group/piccolo2d-dev?hl=en


[piccolo2d-dev] Re: Issue 229 in piccolo2d: Consider updating maven-checkstyle-plugin to version 2.8

2011-11-01 Thread piccolo2d

Updates:
Status: Accepted
	Labels: Type-Enhancement Priority-Medium Effort-Medium OpSys-All  
Toolkit-Piccolo2D.Java Component-Build Milestone-1.3.2


Comment #1 on issue 229 by heue...@gmail.com: Consider updating  
maven-checkstyle-plugin to version 2.8

http://code.google.com/p/piccolo2d/issues/detail?id=229

(No comment was entered for this change.)

--
Piccolo2D Developers Group: http://groups.google.com/group/piccolo2d-dev?hl=en


[piccolo2d-dev] Re: Issue 214 in piccolo2d: PSwing is not serializeable

2011-11-01 Thread piccolo2d

Updates:
	Labels: -Type-Other Type-Defect OpSys-All Toolkit-Piccolo2D.Java  
Milestone-1.3.2


Comment #2 on issue 214 by heue...@gmail.com: PSwing is not serializeable
http://code.google.com/p/piccolo2d/issues/detail?id=214

(No comment was entered for this change.)

--
Piccolo2D Developers Group: http://groups.google.com/group/piccolo2d-dev?hl=en


[piccolo2d-dev] Re: Issue 227 in piccolo2d: PCanvas.setCamera() sets new Camera's bounds to Canvas bounds

2011-11-01 Thread piccolo2d


Comment #1 on issue 227 by heue...@gmail.com: PCanvas.setCamera() sets new  
Camera's bounds to Canvas bounds

http://code.google.com/p/piccolo2d/issues/detail?id=227

Sounds like a bug to me, want to code a fix?

--
Piccolo2D Developers Group: http://groups.google.com/group/piccolo2d-dev?hl=en


[piccolo2d-dev] Re: Issue 228 in piccolo2d: Animation with rotation performs scale instead

2011-11-01 Thread piccolo2d

Updates:
Status: Accepted
Owner: heue...@gmail.com
	Labels: Type-Defect Priority-Medium Effort-Medium OpSys-All  
Toolkit-Piccolo2D.Java Component-Core Milestone-1.3.2


Comment #1 on issue 228 by heue...@gmail.com: Animation with rotation  
performs scale instead

http://code.google.com/p/piccolo2d/issues/detail?id=228

Thank you for reporting this.

--
Piccolo2D Developers Group: http://groups.google.com/group/piccolo2d-dev?hl=en


[piccolo2d-dev] Re: Issue 155 in piccolo2d: If width or height is zero, the rest of bounds are reset.

2011-11-01 Thread piccolo2d


Comment #8 on issue 155 by atdi...@gmail.com: If width or height is zero,  
the rest of bounds are reset.

http://code.google.com/p/piccolo2d/issues/detail?id=155

See allain's comment in r970, at which he reverted r923.

--
Piccolo2D Developers Group: http://groups.google.com/group/piccolo2d-dev?hl=en


[piccolo2d-dev] Re: Issue 221 in piccolo2d: Cannot draw veritical and horizontal lines of 0 width stroke using PPath

2011-11-01 Thread piccolo2d


Comment #5 on issue 221 by atdi...@gmail.com: Cannot draw veritical and  
horizontal lines of 0 width stroke using PPath

http://code.google.com/p/piccolo2d/issues/detail?id=221

If you need to render the strokes, you could try setting the stroke width  
to zero, which has the effect of always drawing a one-pixel wide stroke.


This is true for the Win7/Java1.6.27 system I've tested it on, but afaik  
Piccolo doesn't have logic that ensures this, so it would be a side effect  
of what the JDK does. If the JDK doesn't document this as a contract, then  
it must be inadvertent or a bug and not to be relied on.


We might want to remove that comment from the developer faq.

--
Piccolo2D Developers Group: http://groups.google.com/group/piccolo2d-dev?hl=en


[piccolo2d-dev] Re: Issue 198 in piccolo2d: Remove property code constants, add firePropertyChange(String, T, T) methods

2011-11-01 Thread piccolo2d


Comment #2 on issue 198 by atdi...@gmail.com: Remove property code  
constants, add firePropertyChange(String, T, T) methods

http://code.google.com/p/piccolo2d/issues/detail?id=198

I feel uneasy about this...

Say I have a 1000 nodes at depth 100. (Say, a tall parent-child chain of a  
100 nodes and the bottom node has 1000 children.)


Now suppose I modify the 1000 children. Say I animate their  
offset/transform. Say the animation goes through 200 steps.


In the current version of Piccolo the parent node will get 0 events but  
with your proposal, now the parent gets 1000 * 200 events.


The performance of firing isn't costly, but clients will now see any event  
handlers fired unless each of their event handlers checks the source of the  
event to make sure it is just from the parent node.


That seems like quite a burden on the client, and quite a change in Piccolo  
behavior even for a major release.


The current default behavior is to not fire up the parent chain (seemingly  
desirable default behavior) unless you explicitly use  
setPropertyChangeParentMask.


Is my reasoning correct?

--
Piccolo2D Developers Group: http://groups.google.com/group/piccolo2d-dev?hl=en


[piccolo2d-dev] Re: Issue 207 in piccolo2d: Horizontal scrolling causes an exception

2011-11-01 Thread piccolo2d


Comment #4 on issue 207 by atdi...@gmail.com: Horizontal scrolling causes  
an exception

http://code.google.com/p/piccolo2d/issues/detail?id=207

Line 761 creates the button value based on the raw event's getModifiers()  
(see call to copyButtonsFromModifiers).


For the device you are talking about, does event.getModifiers() or  
event.getModifiersEx() give any indication of a special button press? Maybe  
there is a natural translation from that to some state we can track...


--
Piccolo2D Developers Group: http://groups.google.com/group/piccolo2d-dev?hl=en


[piccolo2d-dev] Re: Issue 227 in piccolo2d: PCanvas.setCamera() sets new Camera's bounds to Canvas bounds

2011-11-01 Thread piccolo2d


Comment #2 on issue 227 by atdi...@gmail.com: PCanvas.setCamera() sets new  
Camera's bounds to Canvas bounds

http://code.google.com/p/piccolo2d/issues/detail?id=227

Sure, I'll put some thought into it.

Also wondering if PCanvas.setBounds() is correct wrt to the bounds it sets  
on the camera:


public void setBounds(final int x, final int y, final int width, final  
int height) {

camera.setBounds(camera.getX(), camera.getY(), width, height);
super.setBounds(x, y, width, height);
}


I suppose the fundamental question is, in what cases do clients want the  
canvas's camera to NOT be at (0,0)? Do you know any such use cases?


--
Piccolo2D Developers Group: http://groups.google.com/group/piccolo2d-dev?hl=en


[piccolo2d-dev] Re: Issue 155 in piccolo2d: If width or height is zero, the rest of bounds are reset.

2011-11-01 Thread piccolo2d


Comment #10 on issue 155 by heue...@gmail.com: If width or height is zero,  
the rest of bounds are reset.

http://code.google.com/p/piccolo2d/issues/detail?id=155

I wouldn't say that it is a contract change, since the PBounds javadoc  
doesn't make any comment on this situation, other than to say that  
isEmpty() doesn't necessarily mean that the bounds are empty.


--
Piccolo2D Developers Group: http://groups.google.com/group/piccolo2d-dev?hl=en


[piccolo2d-dev] Re: Issue 207 in piccolo2d: Horizontal scrolling causes an exception

2011-11-02 Thread piccolo2d


Comment #5 on issue 207 by nls...@gmail.com: Horizontal scrolling causes an  
exception

http://code.google.com/p/piccolo2d/issues/detail?id=207

Unfortunately, the event does store much information in this case since  
horizontal scroll wheel support seems not to be implemented in AWT/Swing. I  
have found this related feature request:

http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6440198

Currently on my system two events are generated with the following  
properties:

java.awt.event.MouseEvent[MOUSE_PRESSED,(320,295),absolute(425,421),button=0,clickCount=1]
java.awt.event.MouseEvent[MOUSE_RELEASED,(320,295),absolute(425,421),button=0,clickCount=1]

The methods getModifiers() and getModifiersEx() return 0 for these events.  
Both events cause an exception, I have only reported the fist one above.


--
Piccolo2D Developers Group: http://groups.google.com/group/piccolo2d-dev?hl=en


[piccolo2d-dev] Re: Issue 207 in piccolo2d: Horizontal scrolling causes an exception

2011-11-02 Thread piccolo2d


Comment #6 on issue 207 by heue...@gmail.com: Horizontal scrolling causes  
an exception

http://code.google.com/p/piccolo2d/issues/detail?id=207

I found a comment on

http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6440198

Apple have added a workaround for this in Radar #4631846 - horizontal  
scrolling creates a MouseWheelEvent with the Shift modifier set. This is  
a much lower impact method than that specified above and works quite well.  
Any chance it could be extended across platform?


We could look for this as a workaround on OSX.

--
Piccolo2D Developers Group: http://groups.google.com/group/piccolo2d-dev?hl=en


[piccolo2d-dev] Re: Issue 207 in piccolo2d: Horizontal scrolling causes an exception

2011-11-03 Thread piccolo2d


Comment #7 on issue 207 by nls...@gmail.com: Horizontal scrolling causes an  
exception

http://code.google.com/p/piccolo2d/issues/detail?id=207

Actually it is not even possible to distinguish right from left scrolling  
with the events fired by Sun Java 6. I have also tested this with OpenJDK  
Java 6/7 with the following results for right tilt followed by left tilt:


Sun Java 6:
java.awt.event.MouseEvent[MOUSE_PRESSED,(385,400),absolute(549,601),button=0,clickCount=1]
java.awt.event.MouseEvent[MOUSE_RELEASED,(385,400),absolute(549,601),button=0,clickCount=1]
java.awt.event.MouseEvent[MOUSE_PRESSED,(387,400),absolute(551,601),button=0,clickCount=1]
java.awt.event.MouseEvent[MOUSE_RELEASED,(387,400),absolute(551,601),button=0,clickCount=1]

OpenJDK Java 6:
java.awt.event.MouseEvent[MOUSE_PRESSED,(245,274),absolute(350,400),button=0,clickCount=1]
java.awt.event.MouseEvent[MOUSE_RELEASED,(245,274),absolute(350,400),button=0,clickCount=1]
java.awt.event.MouseEvent[MOUSE_PRESSED,(311,274),absolute(416,400),button=0,clickCount=1]
java.awt.event.MouseEvent[MOUSE_RELEASED,(311,274),absolute(416,400),button=0,clickCount=1]

OpenJDK Java 7:
java.awt.event.MouseEvent[MOUSE_PRESSED,(261,202),absolute(366,328),button=5,extModifiers=Button5,clickCount=1]
java.awt.event.MouseEvent[MOUSE_RELEASED,(261,202),absolute(366,328),button=5,clickCount=1]
java.awt.event.MouseEvent[MOUSE_PRESSED,(261,202),absolute(366,328),button=4,extModifiers=Button4,clickCount=1]
java.awt.event.MouseEvent[MOUSE_RELEASED,(261,202),absolute(366,328),button=4,clickCount=1]

With Java 7 it might be possible to implement a workaround since button 4  
and 5 are used to indicate left and right scrolling, but this might be  
system dependent.


I would suggest just to ignore these events for now instead of throwing an  
exception until Java officially supports horizontal scrolling.


--
Piccolo2D Developers Group: http://groups.google.com/group/piccolo2d-dev?hl=en


[piccolo2d-dev] Re: Issue 207 in piccolo2d: Horizontal scrolling causes an exception

2011-11-03 Thread piccolo2d


Comment #8 on issue 207 by heue...@gmail.com: Horizontal scrolling causes  
an exception

http://code.google.com/p/piccolo2d/issues/detail?id=207

+1 to ignoring these events for now instead of throwing an exception for  
the release-1.3 branch.


A comment in the Sun bug above describes a workaround for OSX

Apple have added a workaround for this in Radar #4631846 - horizontal  
scrolling creates a MouseWheelEvent with the Shift modifier set. This is  
a much lower impact method than that specified above and works quite well.  
Any chance it could be extended across platform?


For svn trunk I think Piccolo2D should forward on events to the best of its  
ability, and add support to e.g. PInputEvent for these platform-specific  
workarounds, in case clients wish to implement horizontal scrolling on  
their own.


--
Piccolo2D Developers Group: http://groups.google.com/group/piccolo2d-dev?hl=en


[piccolo2d-dev] Re: Issue 155 in piccolo2d: If width or height is zero, the rest of bounds are reset.

2011-11-03 Thread piccolo2d


Comment #11 on issue 155 by atdi...@gmail.com: If width or height is zero,  
the rest of bounds are reset.

http://code.google.com/p/piccolo2d/issues/detail?id=155

I agree it doesn't sound like a contract change. His comment seemed to  
suggest some clients were broken by the change:


Reverting r923 since it was a breaking change. It will need to be redone  
in 2.0.

Seems that some apps were making use of this behaviour.

--
Piccolo2D Developers Group: http://groups.google.com/group/piccolo2d-dev?hl=en


[piccolo2d-dev] [piccolo2d] r1155 committed - Issue 227; fixed bounds issue when replacing PCamera on a PCanvas; add...

2011-11-13 Thread piccolo2d

Revision: 1155
Author:   atdixon
Date: Sun Nov 13 11:00:58 2011
Log:  Issue 227; fixed bounds issue when replacing PCamera on a  
PCanvas; added relevant tests

http://code.google.com/p/piccolo2d/source/detail?r=1155

Modified:
  
/piccolo2d.java/branches/release-1.3.1/core/src/main/java/edu/umd/cs/piccolo/PCanvas.java
  
/piccolo2d.java/branches/release-1.3.1/core/src/test/java/edu/umd/cs/piccolo/PCanvasTest.java


===
---  
/piccolo2d.java/branches/release-1.3.1/core/src/main/java/edu/umd/cs/piccolo/PCanvas.java	 
Tue Mar 15 15:28:41 2011
+++  
/piccolo2d.java/branches/release-1.3.1/core/src/main/java/edu/umd/cs/piccolo/PCanvas.java	 
Sun Nov 13 11:00:58 2011

@@ -28,6 +28,19 @@
  */
 package edu.umd.cs.piccolo;

+import edu.umd.cs.piccolo.event.PInputEventListener;
+import edu.umd.cs.piccolo.event.PPanEventHandler;
+import edu.umd.cs.piccolo.event.PZoomEventHandler;
+import edu.umd.cs.piccolo.util.PBounds;
+import edu.umd.cs.piccolo.util.PDebug;
+import edu.umd.cs.piccolo.util.PPaintContext;
+import edu.umd.cs.piccolo.util.PStack;
+import edu.umd.cs.piccolo.util.PUtil;
+
+import javax.swing.FocusManager;
+import javax.swing.JComponent;
+import javax.swing.RepaintManager;
+import javax.swing.Timer;
 import java.awt.Color;
 import java.awt.Component;
 import java.awt.Cursor;
@@ -46,20 +59,6 @@
 import java.awt.event.MouseWheelEvent;
 import java.awt.event.MouseWheelListener;

-import javax.swing.FocusManager;
-import javax.swing.JComponent;
-import javax.swing.RepaintManager;
-import javax.swing.Timer;
-
-import edu.umd.cs.piccolo.event.PInputEventListener;
-import edu.umd.cs.piccolo.event.PPanEventHandler;
-import edu.umd.cs.piccolo.event.PZoomEventHandler;
-import edu.umd.cs.piccolo.util.PBounds;
-import edu.umd.cs.piccolo.util.PDebug;
-import edu.umd.cs.piccolo.util.PPaintContext;
-import edu.umd.cs.piccolo.util.PStack;
-import edu.umd.cs.piccolo.util.PUtil;
-
 /**
  * bPCanvas/b is a simple Swing component that can be used to embed  
Piccolo
  * into a Java Swing application. Canvases view the Piccolo scene graph  
through

@@ -286,7 +285,7 @@

 if (camera != null) {
 camera.setComponent(this);
-camera.setBounds(getBounds());
+camera.setBounds(0, 0, getWidth(), getHeight());
 }
 }

===
---  
/piccolo2d.java/branches/release-1.3.1/core/src/test/java/edu/umd/cs/piccolo/PCanvasTest.java	 
Tue Mar 15 15:28:41 2011
+++  
/piccolo2d.java/branches/release-1.3.1/core/src/test/java/edu/umd/cs/piccolo/PCanvasTest.java	 
Sun Nov 13 11:00:58 2011

@@ -28,12 +28,13 @@
  */
 package edu.umd.cs.piccolo;

-import java.awt.Cursor;
-
-import junit.framework.TestCase;
 import edu.umd.cs.piccolo.event.PInputEventListener;
 import edu.umd.cs.piccolo.util.PBounds;
 import edu.umd.cs.piccolo.util.PPaintContext;
+import edu.umd.cs.piccolo.util.PUtil;
+import junit.framework.TestCase;
+
+import java.awt.Cursor;

 /**
  * Unit test for PCanvas.
@@ -127,6 +128,25 @@
 canvas.setBounds(0, 0, 100, 100);
 assertEquals(new PBounds(0, 0, 100, 100),  
canvas.getCamera().getBounds());

 }
+
+public void testSettingCanvasBoundsNotAtOrigin() {
+canvas.setBounds(50, 50, 100, 100);
+assertEquals(new PBounds(0, 0, 100, 100),  
canvas.getCamera().getBounds()); // camera should remain at (0,0)

+}
+
+public void testSettingCameraAffectsCameraBounds() {
+canvas.setBounds(0, 0, 100, 100);
+PCamera camera = PUtil.createBasicScenegraph();
+canvas.setCamera(camera);
+assertEquals(new PBounds(0, 0, 100, 100),  
canvas.getCamera().getBounds());

+}
+
+public void testSettingCameraOnCanvasNotAtOrigin() {
+canvas.setBounds(50, 50, 100, 100);
+PCamera camera = PUtil.createBasicScenegraph();
+canvas.setCamera(camera);
+assertEquals(new PBounds(0, 0, 100, 100),  
canvas.getCamera().getBounds()); // camera should remain at (0,0)

+}

 public void testAddInputEventListenersIsHonoured() {
 canvas.addInputEventListener(mockListener);

--
Piccolo2D Developers Group: http://groups.google.com/group/piccolo2d-dev?hl=en


[piccolo2d-dev] Re: Issue 227 in piccolo2d: PCanvas.setCamera() sets new Camera's bounds to Canvas bounds

2011-11-13 Thread piccolo2d

Updates:
Status: Fixed

Comment #3 on issue 227 by atdi...@gmail.com: PCanvas.setCamera() sets new  
Camera's bounds to Canvas bounds

http://code.google.com/p/piccolo2d/issues/detail?id=227

Committed revision 1155.

--
Piccolo2D Developers Group: http://groups.google.com/group/piccolo2d-dev?hl=en


[piccolo2d-dev] Re: Issue 227 in piccolo2d: PCanvas.setCamera() sets new Camera's bounds to Canvas bounds

2011-11-13 Thread piccolo2d


Comment #4 on issue 227 by atdi...@gmail.com: PCanvas.setCamera() sets new  
Camera's bounds to Canvas bounds

http://code.google.com/p/piccolo2d/issues/detail?id=227

Committed revision 1156. (TRUNK, same fix as the earlier branch commit.)

--
Piccolo2D Developers Group: http://groups.google.com/group/piccolo2d-dev?hl=en


[piccolo2d-dev] Issue 230 in piccolo2d: Add link to Autocad DXF File Viewer on applications page

2011-11-22 Thread piccolo2d

Status: New
Owner: 

New issue 230 by heue...@gmail.com: Add link to Autocad DXF File Viewer on  
applications page

http://code.google.com/p/piccolo2d/issues/detail?id=230

Add a link to Autocad DXF File Viewer on the Piccolo2D Applications page.

See thread on piccolo2d-dev@

http://groups.google.com/group/piccolo2d-dev/t/625fe456918a7a08

--
Piccolo2D Developers Group: http://groups.google.com/group/piccolo2d-dev?hl=en


[piccolo2d-dev] Re: Issue 230 in piccolo2d: Add link to Autocad DXF File Viewer on applications page

2011-11-22 Thread piccolo2d

Updates:
Status: Started
Owner: heue...@gmail.com
	Labels: Type-Enhancement Priority-Medium Effort-Low OpSys-All Toolkit-All  
Component-Website Milestone-1.3.2


Comment #1 on issue 230 by heue...@gmail.com: Add link to Autocad DXF File  
Viewer on applications page

http://code.google.com/p/piccolo2d/issues/detail?id=230

(No comment was entered for this change.)

--
Piccolo2D Developers Group: http://groups.google.com/group/piccolo2d-dev?hl=en


[piccolo2d-dev] [piccolo2d] r1157 committed - Issue 230 ; adding link to Autocad DXF File Viewer to applications pag...

2011-11-22 Thread piccolo2d

Revision: 1157
Author:   heuermh
Date: Tue Nov 22 09:24:10 2011
Log:  Issue 230 ; adding link to Autocad DXF File Viewer to  
applications page

http://code.google.com/p/piccolo2d/source/detail?r=1157

Added:
 /site/applications/DxfViewerThumbnail.jpg
Modified:
 /site/applications/index.html

===
--- /dev/null   
+++ /site/applications/DxfViewerThumbnail.jpg   Tue Nov 22 09:24:10 2011
Binary file, no diff available.
===
--- /site/applications/index.html   Tue Jul 19 11:33:23 2011
+++ /site/applications/index.html   Tue Nov 22 09:24:10 2011
@@ -386,6 +386,13 @@
   University of California, Irvine/a
 /div

+div class='box'
+  a href='http://nofrillsjava.com/dr/?q=node/5'img  
src='DxfViewerThumbnail.jpg' height='158' alt=

+  'Autocad DXF File Viewer screenshot' width='180' /br /
+  Autocad DXF File Viewerbr /
+  Robert Kovacs/a
+/div
+
 div style='clear:left'
   nbsp;
 /div

--
Piccolo2D Developers Group: http://groups.google.com/group/piccolo2d-dev?hl=en


[piccolo2d-dev] Re: Issue 230 in piccolo2d: Add link to Autocad DXF File Viewer on applications page

2011-11-22 Thread piccolo2d

Updates:
Status: Fixed

Comment #2 on issue 230 by heue...@gmail.com: Add link to Autocad DXF File  
Viewer on applications page

http://code.google.com/p/piccolo2d/issues/detail?id=230

$ svn commit -m Issue 230 ; adding link to Autocad DXF File Viewer to  
applications page .

Adding  (bin)  DxfViewerThumbnail.jpg
Sendingindex.html
Transmitting file data ..
Committed revision 1157.

--
Piccolo2D Developers Group: http://groups.google.com/group/piccolo2d-dev?hl=en


[piccolo2d-dev] Issue 231 in piccolo2d: Mistake in java doc comment

2011-12-10 Thread piccolo2d

Status: New
Owner: 

New issue 231 by 3...@gmx.de: Mistake in java doc comment
http://code.google.com/p/piccolo2d/issues/detail?id=231

See  
http://piccolo2d.org/doc/piccolo2d.java/release-1.3/core/apidocs/edu/umd/cs/piccolo/nodes/PText.html#setConstrainHeightToTextHeight(boolean):


Parameters:
constrainHeightToTextHeight - true if this text node should constrain its  
height to the width of its text


should read

Parameters:
constrainHeightToTextHeight - true if this text node should constrain its  
height to the *height* of its text


--
Piccolo2D Developers Group: http://groups.google.com/group/piccolo2d-dev?hl=en


[piccolo2d-dev] Re: Issue 231 in piccolo2d: Mistake in java doc comment

2011-12-10 Thread piccolo2d

Updates:
Status: Accepted
Owner: heue...@gmail.com
	Labels: Type-Defect Priority-Medium Effort-Low OpSys-All  
Toolkit-Piccolo2D.Java Component-Core Milestone-1.3.2


Comment #1 on issue 231 by heue...@gmail.com: Mistake in java doc comment
http://code.google.com/p/piccolo2d/issues/detail?id=231

Good catch, thanks for the note.

--
Piccolo2D Developers Group: http://groups.google.com/group/piccolo2d-dev?hl=en


[piccolo2d-dev] [piccolo2d] r1158 committed - Issue 231 ; doc fix, width -- height

2011-12-10 Thread piccolo2d

Revision: 1158
Author:   heuermh
Date: Sat Dec 10 12:57:01 2011
Log:  Issue 231 ; doc fix, width -- height
http://code.google.com/p/piccolo2d/source/detail?r=1158

Modified:
 /piccolo2d.java/trunk/core/src/main/java/org/piccolo2d/nodes/PText.java

===
--- /piccolo2d.java/trunk/core/src/main/java/org/piccolo2d/nodes/PText.java	 
Tue Mar 15 15:23:53 2011
+++ /piccolo2d.java/trunk/core/src/main/java/org/piccolo2d/nodes/PText.java	 
Sat Dec 10 12:57:01 2011

@@ -310,7 +310,7 @@
  * the height of its text.
  *
  * @param constrainHeightToTextHeight true if this text node should
- *constrain its height to the width of its text
+ *constrain its height to the height of its text
  */
 public void setConstrainHeightToTextHeight(final boolean  
constrainHeightToTextHeight) {

 this.constrainHeightToTextHeight = constrainHeightToTextHeight;

--
Piccolo2D Developers Group: http://groups.google.com/group/piccolo2d-dev?hl=en


[piccolo2d-dev] [piccolo2d] r1159 committed - Issue 231 ; doc fix, width -- height

2011-12-10 Thread piccolo2d

Revision: 1159
Author:   heuermh
Date: Sat Dec 10 12:59:59 2011
Log:  Issue 231 ; doc fix, width -- height
http://code.google.com/p/piccolo2d/source/detail?r=1159

Modified:
  
/piccolo2d.java/branches/release-1.3/core/src/main/java/edu/umd/cs/piccolo/nodes/PText.java


===
---  
/piccolo2d.java/branches/release-1.3/core/src/main/java/edu/umd/cs/piccolo/nodes/PText.java	 
Tue Mar 15 15:28:41 2011
+++  
/piccolo2d.java/branches/release-1.3/core/src/main/java/edu/umd/cs/piccolo/nodes/PText.java	 
Sat Dec 10 12:59:59 2011

@@ -327,7 +327,7 @@
  * the height of its text.
  *
  * @param constrainHeightToTextHeight true if this text node should
- *constrain its height to the width of its text
+ *constrain its height to the height of its text
  */
 public void setConstrainHeightToTextHeight(final boolean  
constrainHeightToTextHeight) {

 this.constrainHeightToTextHeight = constrainHeightToTextHeight;

--
Piccolo2D Developers Group: http://groups.google.com/group/piccolo2d-dev?hl=en


[piccolo2d-dev] Re: Issue 231 in piccolo2d: Mistake in java doc comment

2011-12-10 Thread piccolo2d

Updates:
Status: Fixed

Comment #2 on issue 231 by heue...@gmail.com: Mistake in java doc comment
http://code.google.com/p/piccolo2d/issues/detail?id=231

Fixed on trunk

$ svn commit -m Issue 231 ; doc fix, width -- height  
src/main/java/org/piccolo2d/nodes/PText.java

...
Committed revision 1158.

and on release-1.3-branch

$ svn commit -m Issue 231 ; doc fix, width -- height  
core/src/main/java/edu/umd/cs/piccolo/nodes/PText.java

...
Committed revision 1159.

--
Piccolo2D Developers Group: http://groups.google.com/group/piccolo2d-dev?hl=en


[piccolo2d-dev] Issue 232 in piccolo2d: adding anchor points on the lines drawn between two nodes

2011-12-13 Thread piccolo2d

Status: New
Owner: 

New issue 232 by vijay.ro...@uniken.com: adding anchor points on the lines  
drawn between two nodes

http://code.google.com/p/piccolo2d/issues/detail?id=232

What steps will reproduce the problem?
1.
2.
3.

What is the expected output? What do you see instead?


What version of the product are you using? On what operating system?
windows xp

Please provide any additional information below.


--
Piccolo2D Developers Group: http://groups.google.com/group/piccolo2d-dev?hl=en


[piccolo2d-dev] Issue 233 in piccolo2d: adding PHandle

2011-12-13 Thread piccolo2d

Status: New
Owner: 

New issue 233 by vijay.ro...@uniken.com: adding PHandle
http://code.google.com/p/piccolo2d/issues/detail?id=233

What steps will reproduce the problem?
1.
2.
3.

What is the expected output? What do you see instead?
After Adding PHandle to a pNode as a child and after applying  
PDragEventHandler the anchor point is moving too fast.It should not move  
that fast.What should i do to slow down it?


What version of the product are you using? On what operating system?
windows xp

Please provide any additional information below.

PPath circle = PPath.createEllipse((float) (pointOne.getX() +  
pointTwo.getX()) / 2,

(float) (pointOne.getY() + pointTwo.getY()) / 2, 7, 7);

final PLocator circleLocator = new PLocator() {
public double locateX() {
return circle.getFullBoundsReference().getCenter2D().getX();
}

public double locateY() {
return circle.getFullBoundsReference().getCenter2D().getX();
}
};

 PHandle pHandle = new PHandle(circleLocator);



circle.addChild(pHandle);
pHandle.addInputEventListener(new PDragEventHandler());

--
Piccolo2D Developers Group: http://groups.google.com/group/piccolo2d-dev?hl=en


[piccolo2d-dev] Re: Issue 232 in piccolo2d: adding anchor points on the lines drawn between two nodes

2011-12-14 Thread piccolo2d


Comment #1 on issue 232 by atdi...@gmail.com: adding anchor points on the  
lines drawn between two nodes

http://code.google.com/p/piccolo2d/issues/detail?id=232

Vijay, can you give more details about the issue you are experiencing?

--
Piccolo2D Developers Group: http://groups.google.com/group/piccolo2d-dev?hl=en


[piccolo2d-dev] Re: Issue 232 in piccolo2d: adding anchor points on the lines drawn between two nodes

2011-12-14 Thread piccolo2d


Comment #2 on issue 232 by vijay.ro...@uniken.com: adding anchor points on  
the lines drawn between two nodes

http://code.google.com/p/piccolo2d/issues/detail?id=232

I want to add anchor points on the line drawn but I am not getting any  
example to add anchor points so can you give me an example which shows how  
to add anchor points on the line.


--
Piccolo2D Developers Group: http://groups.google.com/group/piccolo2d-dev?hl=en


[piccolo2d-dev] Re: Issue 232 in piccolo2d: adding anchor points on the lines drawn between two nodes

2011-12-14 Thread piccolo2d


Comment #3 on issue 232 by vijay.ro...@uniken.com: adding anchor points on  
the lines drawn between two nodes

http://code.google.com/p/piccolo2d/issues/detail?id=232

I wanted to have an example showing anchor points.so please send it to me.

--

Regards,
Vijay Rokde

Implementation Engineer

m: +91 9860610023 | www.uniken.com

UNIKEN INC. � CORPORATE OFFICE
16302, Turnbury Oak Drive, Odessa, Florida 33446. USA | Ph: 1-813-943-3552
UNIKEN INNOVATION CENTER
Shrileela Plaza, Survey No.115, 1st Floor, Baner Road, Pune - 411045. INDIA
| Ph: 91-20-66427970 / 71

--
Piccolo2D Developers Group: http://groups.google.com/group/piccolo2d-dev?hl=en


[piccolo2d-dev] Re: Issue 232 in piccolo2d: adding anchor points on the lines drawn between two nodes

2011-12-18 Thread piccolo2d

Updates:
Status: Invalid

Comment #4 on issue 232 by atdi...@gmail.com: adding anchor points on the  
lines drawn between two nodes

http://code.google.com/p/piccolo2d/issues/detail?id=232

Vijay,

You should ask your question on the users group:

http://groups.google.com/group/piccolo2d-users

I am going to close this issue. Please ask your questions in the users  
group and do not create tickets for them. Thanks.


--
Piccolo2D Developers Group: http://groups.google.com/group/piccolo2d-dev?hl=en


[piccolo2d-dev] Re: Issue 233 in piccolo2d: adding PHandle

2011-12-18 Thread piccolo2d

Updates:
Status: Invalid

Comment #1 on issue 233 by atdi...@gmail.com: adding PHandle
http://code.google.com/p/piccolo2d/issues/detail?id=233

Vijay,

Your locator has a few defects:

1) You are returning the X coordinate in the locateY() method.
2) You should be returning *local* coordinates, not full bounds  
coordinates.


Your locator should look like:

final PLocator locator = new PLocator() {
public double locateX() {
double x = circle.getBounds().getCenter2D().getX();

return x;
}
public double locateY() {
double y = circle.getBounds().getCenter2D().getY();
return y;
}
};



--
Piccolo2D Developers Group: http://groups.google.com/group/piccolo2d-dev?hl=en


[piccolo2d-dev] Issue 234 in piccolo2d: Invisible PClips are reported to be picked by InputEventHandler

2011-12-28 Thread piccolo2d

Status: New
Owner: atdi...@gmail.com
Labels: Priority-Medium Type-Defect Toolkit-Piccolo2D.Java Component-Extras

New issue 234 by atdi...@gmail.com: Invisible PClips are reported to be  
picked by InputEventHandler

http://code.google.com/p/piccolo2d/issues/detail?id=234

I noted in Issue 113, we added a guard in PNode.fullPick() to only proceed  
if the node is visible. PClip duplicates PNode.fullPick() to support the  
clipping behavior.


The easy workaround is to override PClip and reintroduce the guard, but I  
wanted to get this out as an minor issue, b/c it the changed behavior threw  
me when I converted a PNode to a PClip.


Should we make PClip behave like PNode in this regard? Should we introduce  
a protected method in PNode so that PClip doesn't have to override the  
entire PNode's fullPaint() method just to change one line? I recommend we  
do something like this in next major version of Piccolo (don't want to  
change PClip's behavior for a minor version).



--
Piccolo2D Developers Group: http://groups.google.com/group/piccolo2d-dev?hl=en


[piccolo2d-dev] Re: Issue 234 in piccolo2d: Invisible PClips are reported to be picked by InputEventHandler

2011-12-28 Thread piccolo2d


Comment #1 on issue 234 by atdi...@gmail.com: Invisible PClips are reported  
to be picked by InputEventHandler

http://code.google.com/p/piccolo2d/issues/detail?id=234

Let me clarify, as my first paragraph above was unclear...

PClip.fullPick() doesn't have the getVisible() check that PNode.fullPick()  
has, so PClip nodes are picked even if they are invisible.


--
Piccolo2D Developers Group: http://groups.google.com/group/piccolo2d-dev?hl=en


[piccolo2d-dev] Issue 235 in piccolo2d: PSwingEventHandler doesn't dispatch events to nodes at extreme scales

2012-01-07 Thread piccolo2d

Status: Accepted
Owner: atdi...@gmail.com
Labels: Type-Defect Priority-Medium Component-Extras

New issue 235 by atdi...@gmail.com: PSwingEventHandler doesn't dispatch  
events to nodes at extreme scales

http://code.google.com/p/piccolo2d/issues/detail?id=235

User John Marteens reported an error where a Swing component (within a  
PSwing) does not get mouse events when that component is within a node  
lineage that has extreme scale transforms.


For example, if a PSwing is within a parent node with scale = 0.001, events  
are not fired for the component. (I've reproduced this particular case on  
Win7/64bit Java).


John provided a suggested patch that fixes his particular case:

=== PSwingEventHandler ===
...
   if (currentNode instanceof PSwing   
pickedNode.isDescendentOf(canvas.getRoot())) {


   final PSwing swing = (PSwing) currentNode;
   final PNode grabNode = pickedNode;

   point = new Point(mEvent.getX(), mEvent.getY());
//jmes 20111230 replaced
//cameraToLocal(pSwingMouseEvent.getPath().getTopCamera(),  
point, grabNode);
   Point2D.Double pt2D = new Point2D.Double(mEvent.getX(),  
mEvent.getY());
   cameraToLocal(pSwingMouseEvent.getPath().getTopCamera(), pt2D,  
grabNode);

   point.setLocation(pt2D);
//jmes 20111230 end replaced
   prevPoint = (Point) point.clone();
=== END ===

Essentially, the integer Point object does not survive the cameraToLocal  
math. John found that using a Point2D.Double fixes his particular problem.


Does anyone see anything wrong with his solution?





--
Piccolo2D Developers Group: http://groups.google.com/group/piccolo2d-dev?hl=en


[piccolo2d-dev] [piccolo2d] r1161 committed - Issue 235 - PSwingEventHandler now uses Point2D.Double in call to came...

2012-01-07 Thread piccolo2d

Revision: 1161
Author:   atdixon
Date: Sat Jan  7 11:42:05 2012
Log:  Issue 235 - PSwingEventHandler now uses Point2D.Double in call to  
cameraToLocal to avoid under/overflow

http://code.google.com/p/piccolo2d/source/detail?r=1161

Added:
  
/piccolo2d.java/trunk/examples/src/main/java/org/piccolo2d/examples/PSwingScaleExample.java

Modified:
  
/piccolo2d.java/trunk/extras/src/main/java/org/piccolo2d/extras/pswing/PSwingEventHandler.java


===
--- /dev/null
+++  
/piccolo2d.java/trunk/examples/src/main/java/org/piccolo2d/examples/PSwingScaleExample.java	 
Sat Jan  7 11:42:05 2012

@@ -0,0 +1,61 @@
+package org.piccolo2d.examples;
+
+import org.piccolo2d.PCamera;
+import org.piccolo2d.PLayer;
+import org.piccolo2d.PNode;
+import org.piccolo2d.extras.PFrame;
+import org.piccolo2d.extras.pswing.PSwing;
+import org.piccolo2d.extras.pswing.PSwingCanvas;
+import org.piccolo2d.util.PBounds;
+
+import javax.swing.JButton;
+import javax.swing.JOptionPane;
+import java.awt.Color;
+import java.awt.event.ActionEvent;
+import java.awt.event.ActionListener;
+
+/**
+ * Demonstrate that PSwing nodes properly receive events even when they  
are parented by nodes
+ * with extreme scales. This is an effective regression test that  
previously failed before fix

+ * applied to {@link org.piccolo2d.extras.pswing.PSwingEventHandler}.
+ */
+public class PSwingScaleExample extends PFrame {
+
+public static void main(String[] args) {
+new PSwingScaleExample();
+}
+
+public PSwingScaleExample() {
+super(PSwingScaleExample.class.getSimpleName(), false, new  
PSwingCanvas());

+}
+
+public void initialize() {
+final PSwingCanvas canvas = (PSwingCanvas) getCanvas();
+final PLayer layer = canvas.getLayer();
+final PCamera camera = canvas.getCamera();
+
+PNode parent = new PNode();
+parent.setPaint(Color.orange);
+parent.setBounds(0, 0, 200, 200);
+
+JButton button = new JButton(Drink Me);
+button.addActionListener(new ActionListener() {
+public void actionPerformed(ActionEvent e) {
+ 
JOptionPane.showMessageDialog(PSwingScaleExample.this, Thank You);

+}
+});
+final PSwing ps = new PSwing(button);
+centerFullBoundsIn(ps, parent.getGlobalFullBounds());
+parent.addChild(ps);
+parent.scale(0.001);
+
+layer.addChild(parent);
+
+camera.animateViewToCenterBounds(ps.getGlobalFullBounds(), true,  
0);

+}
+
+private static void centerFullBoundsIn(PNode centerMe, PBounds bounds)  
{
+centerMe.centerFullBoundsOnPoint(bounds.getCenterX(),  
bounds.getCenterY());

+}
+
+}
===
---  
/piccolo2d.java/trunk/extras/src/main/java/org/piccolo2d/extras/pswing/PSwingEventHandler.java	 
Tue Mar 15 15:23:53 2011
+++  
/piccolo2d.java/trunk/extras/src/main/java/org/piccolo2d/extras/pswing/PSwingEventHandler.java	 
Sat Jan  7 11:42:05 2012

@@ -28,6 +28,15 @@
  */
 package org.piccolo2d.extras.pswing;

+import org.piccolo2d.PCamera;
+import org.piccolo2d.PLayer;
+import org.piccolo2d.PNode;
+import org.piccolo2d.event.PInputEvent;
+import org.piccolo2d.event.PInputEventListener;
+import org.piccolo2d.util.PAffineTransform;
+import org.piccolo2d.util.PAffineTransformException;
+
+import javax.swing.SwingUtilities;
 import java.awt.Component;
 import java.awt.Container;
 import java.awt.Point;
@@ -38,16 +47,6 @@
 import java.awt.geom.NoninvertibleTransformException;
 import java.awt.geom.Point2D;

-import javax.swing.SwingUtilities;
-
-import org.piccolo2d.PCamera;
-import org.piccolo2d.PLayer;
-import org.piccolo2d.PNode;
-import org.piccolo2d.event.PInputEvent;
-import org.piccolo2d.event.PInputEventListener;
-import org.piccolo2d.util.PAffineTransform;
-import org.piccolo2d.util.PAffineTransformException;
-

 /**
  * Event handler to send MousePressed, MouseReleased, MouseMoved,  
MouseClicked,

@@ -209,9 +208,12 @@
 final PSwing swing = (PSwing) currentNode;
 final PNode grabNode = pickedNode;

-point = new Point(mEvent.getX(), mEvent.getY());
-cameraToLocal(pSwingMouseEvent.getPath().getTopCamera(),  
point, grabNode);

-prevPoint = (Point) point.clone();
+// use a floating point object to perform cameraToLocal to  
survive the transform math
+final Point2D.Double p2d = new Point2D.Double(mEvent.getX(),  
mEvent.getY());
+cameraToLocal(pSwingMouseEvent.getPath().getTopCamera(), p2d,  
grabNode);

+
+point = new Point((int) p2d.getX(), (int) p2d.getY());
+prevPoint = (Point2D) p2d.clone();

 // This is only partially fixed to find the deepest
 // component at pt. It needs to do something like

--
Piccolo2D Developers Group: http://groups.google.com/group/piccolo2d-dev?hl=en


[piccolo2d-dev] Re: Issue 235 in piccolo2d: PSwingEventHandler doesn't dispatch events to nodes at extreme scales

2012-01-07 Thread piccolo2d


Comment #3 on issue 235 by atdi...@gmail.com: PSwingEventHandler doesn't  
dispatch events to nodes at extreme scales

http://code.google.com/p/piccolo2d/issues/detail?id=235

Committed revision 1161. (This is the TRUNK fix.)

--
Piccolo2D Developers Group: http://groups.google.com/group/piccolo2d-dev?hl=en


[piccolo2d-dev] Issue 236 in piccolo2d: Add zoom event handler that responds to mouse wheel events

2012-01-25 Thread piccolo2d

Status: New
Owner: 

New issue 236 by heue...@gmail.com: Add zoom event handler that responds to  
mouse wheel events

http://code.google.com/p/piccolo2d/issues/detail?id=236

Feature request, add a zoom event handler that responds to mouse wheel  
events.


--
Piccolo2D Developers Group: http://groups.google.com/group/piccolo2d-dev?hl=en


[piccolo2d-dev] Re: Issue 236 in piccolo2d: Add zoom event handler that responds to mouse wheel events

2012-01-25 Thread piccolo2d

Updates:
Status: Started
Owner: heue...@gmail.com
	Labels: Type-Enhancement Priority-Medium Effort-Low OpSys-All  
Toolkit-Piccolo2D.Java Component-Core Milestone-2.0


Comment #1 on issue 236 by heue...@gmail.com: Add zoom event handler that  
responds to mouse wheel events

http://code.google.com/p/piccolo2d/issues/detail?id=236

Patch to svn trunk attached.

Attachments:
patch.txt  7.0 KB

--
Piccolo2D Developers Group: http://groups.google.com/group/piccolo2d-dev?hl=en


[piccolo2d-dev] Re: Issue 236 in piccolo2d: Add zoom event handler that responds to mouse wheel events

2012-02-11 Thread piccolo2d


Comment #3 on issue 236 by heue...@gmail.com: Add zoom event handler that  
responds to mouse wheel events

http://code.google.com/p/piccolo2d/issues/detail?id=236

Thank you for the comments.

I was thinking of adding the viewZoomPoint feature, but I don't actually  
like that behavior.  Would you be ok with making that configurable with a  
boolean bound property?  The same might be added to PZoomEventHandler while  
I'm at it.


And one minor fix to the patch above,

-PMouseWheelZoomEventHandler() {
+public PMouseWheelZoomEventHandler() {

--
Piccolo2D Developers Group: http://groups.google.com/group/piccolo2d-dev?hl=en


[piccolo2d-dev] Re: Issue 236 in piccolo2d: Add zoom event handler that responds to mouse wheel events

2012-02-12 Thread piccolo2d


Comment #4 on issue 236 by atdi...@gmail.com: Add zoom event handler that  
responds to mouse wheel events

http://code.google.com/p/piccolo2d/issues/detail?id=236

Yep, I like making it configurable with a boolean option.

--
Piccolo2D Developers Group: http://groups.google.com/group/piccolo2d-dev?hl=en


[piccolo2d-dev] Re: Issue 229 in piccolo2d: Consider updating maven-checkstyle-plugin to version 2.8

2012-02-15 Thread piccolo2d


Comment #2 on issue 229 by heue...@gmail.com: Consider updating  
maven-checkstyle-plugin to version 2.8

http://code.google.com/p/piccolo2d/issues/detail?id=229

Version 2.9 is now available

-- Forwarded message --
From: Dennis Lundberg denn...@apache.org
Date: Sun, Feb 12, 2012 at 10:33 AM
Subject: [ANN] Maven Checkstyle Plugin 2.9 Released
To: annou...@maven.apache.org, us...@maven.apache.org
Cc: d...@maven.apache.org


The Maven team is pleased to announce the release of the Maven Checkstyle  
Plugin, version 2.9


Generates a report on violations of code style and optionally fails the  
build if violations are detected.


http://maven.apache.org/plugins/maven-checkstyle-plugin

You should specify the version in your project's plugin configuration:

plugin
 groupIdorg.apache.maven.plugins/groupId
 artifactIdmaven-checkstyle-plugin/artifactId
 version2.9/version
/plugin


Release Notes - Maven Checkstyle Plugin - Version 2.9

Bug
* [MCHECKSTYLE-170] Test errors and failures on Windows
* [MCHECKSTYLE-168] checkstyle-aggregate give a wrong file count
* [MCHECKSTYLE-167] Unconfigured checkstyle plugin duplicates entries in  
aggregated report
* [MCHECKSTYLE-164] Multimodule Configuration example does not show how to  
configure build-tools pom
* [MCHECKSTYLE-152] encoding property in maven plugin is never set  
correctly to charset property of the checkstyle itself.
* [MCHECKSTYLE-146] mvn checkstyle:checkstyle KO, Unable to find the mojo,  
org/apache/maven/doxia/logging/Log

* [MCHECKSTYLE-145] maven-checkstyle-plugin 2.6 SinkFactory WARNING

Improvement
* [MCHECKSTYLE-165] Upgrade to checkstyle 5.5


Enjoy,

-The Maven team

--
Piccolo2D Developers Group: http://groups.google.com/group/piccolo2d-dev?hl=en


[piccolo2d-dev] Re: Issue 236 in piccolo2d: Add zoom event handler that responds to mouse wheel events

2012-02-15 Thread piccolo2d


Comment #5 on issue 236 by heue...@gmail.com: Add zoom event handler that  
responds to mouse wheel events

http://code.google.com/p/piccolo2d/issues/detail?id=236

Input event handlers don't have property change support, so I just went  
with a ZoomMode enum instead.  Let me know what you think; updated patch  
attached.


Attachments:
zoom-mode-patch.txt  10.2 KB

--
Piccolo2D Developers Group: http://groups.google.com/group/piccolo2d-dev?hl=en


[piccolo2d-dev] Re: Issue 198 in piccolo2d: Remove property code constants, add firePropertyChange(String, T, T) methods

2012-02-15 Thread piccolo2d

Updates:
Status: WontFix

Comment #3 on issue 198 by heue...@gmail.com: Remove property code  
constants, add firePropertyChange(String, T, T) methods

http://code.google.com/p/piccolo2d/issues/detail?id=198

(No comment was entered for this change.)

--
Piccolo2D Developers Group: http://groups.google.com/group/piccolo2d-dev?hl=en


[piccolo2d-dev] Re: Issue 236 in piccolo2d: Add zoom event handler that responds to mouse wheel events

2012-02-17 Thread piccolo2d


Comment #6 on issue 236 by atdi...@gmail.com: Add zoom event handler that  
responds to mouse wheel events

http://code.google.com/p/piccolo2d/issues/detail?id=236

I like it.

--
Piccolo2D Developers Group: http://groups.google.com/group/piccolo2d-dev?hl=en


[piccolo2d-dev] [piccolo2d] r1163 committed - Issue 236 ; adding zoom event handler that responds to mouse wheel eve...

2012-02-23 Thread piccolo2d

Revision: 1163
Author:   heuermh
Date: Thu Feb 23 14:00:48 2012
Log:  Issue 236 ; adding zoom event handler that responds to mouse  
wheel events

http://code.google.com/p/piccolo2d/source/detail?r=1163

Added:
  
/piccolo2d.java/trunk/core/src/main/java/org/piccolo2d/event/PMouseWheelZoomEventHandler.java
  
/piccolo2d.java/trunk/core/src/test/java/org/piccolo2d/event/PMouseWheelZoomEventHandlerTest.java
  
/piccolo2d.java/trunk/examples/src/main/java/org/piccolo2d/examples/MouseWheelZoomExample.java

Modified:
  
/piccolo2d.java/trunk/examples/src/main/java/org/piccolo2d/examples/ExampleRunner.java


===
--- /dev/null
+++  
/piccolo2d.java/trunk/core/src/main/java/org/piccolo2d/event/PMouseWheelZoomEventHandler.java	 
Thu Feb 23 14:00:48 2012

@@ -0,0 +1,169 @@
+/*
+ * Copyright (c) 2008-2012, Piccolo2D project, http://piccolo2d.org
+ * Copyright (c) 1998-2008, University of Maryland
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without  
modification, are permitted provided

+ * that the following conditions are met:
+ *
+ * Redistributions of source code must retain the above copyright notice,  
this list of conditions

+ * and the following disclaimer.
+ *
+ * Redistributions in binary form must reproduce the above copyright  
notice, this list of conditions
+ * and the following disclaimer in the documentation and/or other  
materials provided with the

+ * distribution.
+ *
+ * None of the name of the University of Maryland, the name of the  
Piccolo2D project, or the names of its
+ * contributors may be used to endorse or promote products derived from  
this software without specific

+ * prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS AS  
IS AND ANY EXPRESS OR IMPLIED
+ * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF  
MERCHANTABILITY AND FITNESS FOR A
+ * PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT  
OWNER OR CONTRIBUTORS BE LIABLE FOR
+ * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL  
DAMAGES (INCLUDING, BUT NOT
+ * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,  
DATA, OR PROFITS; OR BUSINESS
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN  
CONTRACT, STRICT LIABILITY, OR
+ * TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE  
USE OF THIS SOFTWARE, EVEN IF

+ * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+package org.piccolo2d.event;
+
+import java.awt.Rectangle;
+import java.awt.geom.Point2D;
+
+import org.piccolo2d.PCamera;
+import org.piccolo2d.PCanvas;
+
+/**
+ * Zoom event handler that scales the camera view transform in response to  
mouse wheel events.

+ *
+ * @since 2.0
+ */
+public final class PMouseWheelZoomEventHandler extends  
PBasicInputEventHandler {

+/** Default scale factor, code0.1d/code. */
+static final double DEFAULT_SCALE_FACTOR = 0.1d;
+
+/** Scale factor. */
+private double scaleFactor = DEFAULT_SCALE_FACTOR;
+
+/** Zoom mode. */
+private ZoomMode zoomMode = ZoomMode.ZOOM_ABOUT_CANVAS_CENTER;
+
+
+/**
+ * Create a new mouse wheel zoom event handler.
+ */
+public PMouseWheelZoomEventHandler() {
+super();
+PInputEventFilter eventFilter = new PInputEventFilter();
+eventFilter.rejectAllEventTypes();
+eventFilter.setAcceptsMouseWheelRotated(true);
+setEventFilter(eventFilter);
+}
+
+
+/**
+ * Return the scale factor for this mouse wheel zoom event handler.   
Defaults to codeDEFAULT_SCALE_FACTOR/code.

+ *
+ * @see #DEFAULT_SCALE_FACTOR
+ * @return the scale factor for this mouse wheel zoom event handler
+ */
+public double getScaleFactor() {
+return scaleFactor;
+}
+
+/**
+ * Set the scale factor for this mouse wheel zoom event handler to  
codescaleFactor/code.

+ *
+ * @param scaleFactor scale factor for this mouse wheel zoom event  
handler

+ */
+public void setScaleFactor(final double scaleFactor) {
+this.scaleFactor = scaleFactor;
+}
+
+/**
+ * Switch to zoom about mouse mode.
+ *
+ * @see ZoomMode#ZOOM_ABOUT_MOUSE
+ */
+public void zoomAboutMouse() {
+zoomMode = ZoomMode.ZOOM_ABOUT_MOUSE;
+}
+
+/**
+ * Switch to zoom about canvas center mode.
+ *
+ * @see ZoomMode#ZOOM_ABOUT_CANVAS_CENTER
+ */
+public void zoomAboutCanvasCenter() {
+zoomMode = ZoomMode.ZOOM_ABOUT_CANVAS_CENTER;
+}
+
+/**
+ * Switch to zoom about view center mode.
+ *
+ * @see ZoomMode#ZOOM_ABOUT_VIEW_CENTER
+ */
+public void zoomAboutViewCenter() {
+zoomMode = ZoomMode.ZOOM_ABOUT_VIEW_CENTER;
+}
+
+/**
+ * Return the zoom mode for this mouse wheel zoom event handler.   
Defaults to

+ * codeZoomMode.ZOOM_ABOUT_CANVAS_CENTER/code

[piccolo2d-dev] [piccolo2d] r1164 committed - removing empty directories from source trees

2012-02-23 Thread piccolo2d

Revision: 1164
Author:   heuermh
Date: Thu Feb 23 14:03:25 2012
Log:  removing empty directories from source trees
http://code.google.com/p/piccolo2d/source/detail?r=1164

Deleted:
 /piccolo2d.java/trunk/core/src/main/java/edu
 /piccolo2d.java/trunk/core/src/test/java/edu
 /piccolo2d.java/trunk/examples/src/main/java/edu
 /piccolo2d.java/trunk/extras/src/main/java/edu
 /piccolo2d.java/trunk/extras/src/test/java/edu
 /piccolo2d.java/trunk/swt/src/main/java/edu
 /piccolo2d.java/trunk/swt/src/test/java/edu
 /piccolo2d.java/trunk/swt-examples/src/main/java/edu

--
Piccolo2D Developers Group: http://groups.google.com/group/piccolo2d-dev?hl=en


[piccolo2d-dev] Re: Issue 236 in piccolo2d: Add zoom event handler that responds to mouse wheel events

2012-02-23 Thread piccolo2d

Updates:
Status: Fixed

Comment #7 on issue 236 by heue...@gmail.com: Add zoom event handler that  
responds to mouse wheel events

http://code.google.com/p/piccolo2d/issues/detail?id=236

Turns out another zoom mode was what I was actually after, zoom about  
canvas center.  I added that and made it the default.


There is also a new MouseWheelZoomExample that demonstrates the different  
modes.


$ svn commit -m Issue 236 ; adding zoom event handler that responds to  
mouse wheel events core/ examples/
Adding  
core/src/main/java/org/piccolo2d/event/PMouseWheelZoomEventHandler.java
Adding  
core/src/test/java/org/piccolo2d/event/PMouseWheelZoomEventHandlerTest.java
Sending 
examples/src/main/java/org/piccolo2d/examples/ExampleRunner.java
Adding  
examples/src/main/java/org/piccolo2d/examples/MouseWheelZoomExample.java

Transmitting file data 
Committed revision 1163.

--
Piccolo2D Developers Group: http://groups.google.com/group/piccolo2d-dev?hl=en


[piccolo2d-dev] Issue 237 in piccolo2d: PSwing added to PCamera not working since PSwing r863

2012-04-11 Thread piccolo2d

Status: New
Owner: 

New issue 237 by julien.b...@gmail.com: PSwing added to PCamera not working  
since PSwing r863

http://code.google.com/p/piccolo2d/issues/detail?id=237

If i use PSwing code from r819 my PSwing added directly to the camera is  
working.


If i use any version more recent it is not working anymore.
This is because in the method listenForCanvas the test for PCamera as  
parent before the test for PCanvas as parent is gone.


If i add the code of this method from r819 it work again.

Can you please update the source code to keep the test for PSwing added  
directly to the camera ?


Julien Blaize

--
Piccolo2D Developers Group: http://groups.google.com/group/piccolo2d-dev?hl=en


[piccolo2d-dev] Issue 238 in piccolo2d: JM GUI error using Piccolo

2012-04-19 Thread piccolo2d

Status: New
Owner: 

New issue 238 by joyjeet...@gmail.com: JM GUI error using Piccolo
http://code.google.com/p/piccolo2d/issues/detail?id=238

When the Job Manager GUI (which uses Piccolo) is launched we perform the  
following to observe the issue:


1.  Click on ‘AG’ button.
2.	Click on White are in left panel of the GUI. This is the Piccolo  
interface area.
3.	A image is seen after clicking and in RHS of the GUI, you can see a text  
box to type the name.
4.	Type something in the text box and then move the mouse cursor in ‘White  
Panel’ on Left hand side(LHS) of GUI.

5.  Now right click on it.
6.  You will see a pop up with Yes, No and cancel button.
7.  Click on any button.
8.  You will see that the image shrinks to a point.

What is the expected output? What do you see instead?
-It should not minimize the icon from the GUI when right clicked.

What version of the product are you using? On what operating system?
- Version 1.0 on sparc machine.

Please provide any additional information below.
- Tried to print the methods being invoked on the console and the below is  
what I got when I right clicked on the GUI after renaming the activity.


right click
startDrag startDrag startDrag startDrag
mousePressed()
madeSelection()
this.model.getSelectedItem() :  
WorkFlowNodeObject@3a835d[image=sun.awt.image.ToolkitImage@107108e,bounds=PBounds[x=3.0,y=3.0,width=15.0,height=15.0],fullBounds=PBounds[x=137.0,y=107.0,width=78.98114013671875,height=34.993408203125],transform=AffineTransform[[1.0,  
0.0, 138.0], [0.0, 1.0,  
108.0]],paint=null,transparency=1.0,childrenCount=2,pickable,childrenPickable,visible]

mouseExited()

Attaching a video depicting the issue.
Can you please look into this and suggest a solution.

Thanks  Regards'
Joyjit

Attachments:
job_editor[1].zip  5.0 MB

--
Piccolo2D Developers Group: http://groups.google.com/group/piccolo2d-dev?hl=en


[piccolo2d-dev] Issue 239 in piccolo2d: Add Heatlamp link to site/applications/index.html

2012-06-24 Thread piccolo2d

Status: Accepted
Owner: heue...@gmail.com
Labels: Type-Enhancement Priority-Low OpSys-All Toolkit-All  
Component-Website


New issue 239 by atdi...@gmail.com: Add Heatlamp link to  
site/applications/index.html

http://code.google.com/p/piccolo2d/issues/detail?id=239

Per post

https://groups.google.com/forum/?fromgroups#!topic/piccolo2d-dev/0Axm40ySsrc

add Heatlamp screenshot and link (http://www.jmolly.com/heatlamp) to  
site/applications/index.html


--
Piccolo2D Developers Group: http://groups.google.com/group/piccolo2d-dev?hl=en


[piccolo2d-dev] Re: Issue 239 in piccolo2d: Add Heatlamp link to site/applications/index.html

2012-06-24 Thread piccolo2d


Comment #1 on issue 239 by atdi...@gmail.com: Add Heatlamp link to  
site/applications/index.html

http://code.google.com/p/piccolo2d/issues/detail?id=239

Heatlamp screenshot is attached

Attachments:
screenshot.png  15.4 KB

--
Piccolo2D Developers Group: http://groups.google.com/group/piccolo2d-dev?hl=en


[piccolo2d-dev] Issue 240 in piccolo2d: ArrayIndexOutOfBoundsException in PStack.pop

2012-08-27 Thread piccolo2d

Status: New
Owner: 

New issue 240 by heue...@gmail.com: ArrayIndexOutOfBoundsException in  
PStack.pop

http://code.google.com/p/piccolo2d/issues/detail?id=240

I'm seeing this occasionally in my LD#24 entry, which uses piccolo2d svn  
trunk


Exception in thread Animation Thread
java.lang.ArrayIndexOutOfBoundsException: -1
at java.util.ArrayList.remove(ArrayList.java:390)
at org.piccolo2d.util.PStack.pop(PStack.java:84)
at org.piccolo2d.util.PPaintContext.popTransform(PPaintContext.java:261)
at org.piccolo2d.PCamera.paint(PCamera.java:350)
at org.piccolo2d.PNode.fullPaint(PNode.java:2757)
at org.piccolo2d.PCamera.fullPaint(PCamera.java:439)
at org.piccolo2d.POffscreenCanvas.render(POffscreenCanvas.java:104)
at org.piccolo2d.processing.Piccolo2D.draw(Piccolo2D.java:96)
at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
	at  
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

at java.lang.reflect.Method.invoke(Method.java:597)
at processing.core.PApplet$RegisteredMethods.handle(PApplet.java:1078)
at processing.core.PApplet$RegisteredMethods.handle(PApplet.java:1071)
at processing.core.PApplet.handleDraw(PApplet.java:2003)
at processing.core.PGraphicsJava2D.requestDraw(PGraphicsJava2D.java:186)
at processing.core.PApplet.run(PApplet.java:1867)
at java.lang.Thread.run(Thread.java:662)


The other things in the stack trace are a Processing library wraps  
POffscreenCanvas


http://github.com/heuermh/piccolo2d-processing


the game itself

http://www.ludumdare.com/compo/ludum-dare-24/?action=previewuid=1864


and Processing

http://processing.org

--
Piccolo2D Developers Group: http://groups.google.com/group/piccolo2d-dev?hl=en


[piccolo2d-dev] [piccolo2d] r1165 committed - Issue 239 ; adding screenshot for Heatmap to applications page

2012-08-31 Thread piccolo2d

Revision: 1165
Author:   heuermh
Date: Fri Aug 31 09:24:37 2012
Log:  Issue 239 ; adding screenshot for Heatmap to applications page
http://code.google.com/p/piccolo2d/source/detail?r=1165

Added:
 /site/applications/heatlamp.png
Modified:
 /site/applications/index.html

===
--- /dev/null   
+++ /site/applications/heatlamp.png Fri Aug 31 09:24:37 2012
Binary file, no diff available.
===
--- /site/applications/index.html   Tue Nov 22 09:24:10 2011
+++ /site/applications/index.html   Fri Aug 31 09:24:37 2012
@@ -393,6 +393,13 @@
   Robert Kovacs/a
 /div

+div class='box'
+  a href='http://www.jmolly.com/heatlamp/'img src='heatlamp.png'  
height='156' alt=

+  Heatlamp screenshot' width='250' /br /
+  Heatlampbr /
+  JMolly/a
+/div
+
 div style='clear:left'
   nbsp;
 /div

--
Piccolo2D Developers Group: http://groups.google.com/group/piccolo2d-dev?hl=en


[piccolo2d-dev] Re: Issue 186 in piccolo2d: Create a new package org.piccolo2d.examples.bugs or .issues

2012-08-31 Thread piccolo2d

Updates:
Status: Fixed
Owner: heue...@gmail.com
	Labels: Type-Enhancement Priority-Low Effort-Low Component-Examples  
OpSys-All Milestone-2.0 Usability


Comment #2 on issue 186 by heue...@gmail.com: Create a new package  
org.piccolo2d.examples.bugs or .issues

http://code.google.com/p/piccolo2d/issues/detail?id=186

$ svn commit -m Issue 186 ; adding org.piccolo2d.examples.issues package .
Adding examples/issues
Committed revision 1166.

$ svn commit -m Issue 186 ; moving issue-related examples to  
examples.issues package, commit 1 of 2 .

Deleting   examples/ActivityMemoryLeakBugExample.java
Deleting   examples/FrameCanvasSizeBugExample.java
Adding examples/issues/ActivityMemoryLeakBugExample.java
Adding examples/issues/FrameCanvasSizeBugExample.java
Committed revision 1167.

$ svn commit -m Issue 186 ; moving issue-related examples to  
examples.issues package, commit 2 of 2 .

Transmitting file data ..
Committed revision 1168.

--
Piccolo2D Developers Group: http://groups.google.com/group/piccolo2d-dev?hl=en


[piccolo2d-dev] Re: Issue 226 in piccolo2d: Visual Studio integrated help file doesn't exist.

2012-08-31 Thread piccolo2d

Updates:
Status: New
Owner: ---

Comment #2 on issue 226 by heue...@gmail.com: Visual Studio integrated help  
file doesn't exist.

http://code.google.com/p/piccolo2d/issues/detail?id=226

Reverting back to New status

--
Piccolo2D Developers Group: http://groups.google.com/group/piccolo2d-dev?hl=en


[piccolo2d-dev] Re: Issue 61 in piccolo2d: Investigate SVG support

2012-08-31 Thread piccolo2d


Comment #8 on issue 61 by heue...@gmail.com: Investigate SVG support
http://code.google.com/p/piccolo2d/issues/detail?id=61

I propose we mark this as WontFix

--
Piccolo2D Developers Group: http://groups.google.com/group/piccolo2d-dev?hl=en


[piccolo2d-dev] Re: Issue 222 in piccolo2d: Port Piccolo2D APIs to Android

2012-08-31 Thread piccolo2d


Comment #2 on issue 222 by heue...@gmail.com: Port Piccolo2D APIs to Android
http://code.google.com/p/piccolo2d/issues/detail?id=222

Hello Kenneth, has any further progress been made on this?

--
Piccolo2D Developers Group: http://groups.google.com/group/piccolo2d-dev?hl=en


[piccolo2d-dev] [piccolo2d] r1169 committed - Issue 221 ; adding ZeroWidthStrokeBug to examples.issues

2012-08-31 Thread piccolo2d

Revision: 1169
Author:   heuermh
Date: Fri Aug 31 09:58:14 2012
Log:  Issue 221 ; adding ZeroWidthStrokeBug to examples.issues
http://code.google.com/p/piccolo2d/source/detail?r=1169

Added:
  
/piccolo2d.java/trunk/examples/src/main/java/org/piccolo2d/examples/issues/ZeroWidthStrokeBug.java


===
--- /dev/null
+++  
/piccolo2d.java/trunk/examples/src/main/java/org/piccolo2d/examples/issues/ZeroWidthStrokeBug.java	 
Fri Aug 31 09:58:14 2012

@@ -0,0 +1,74 @@
+/*
+ * Copyright (c) 2008-2012, Piccolo2D project, http://piccolo2d.org
+ * Copyright (c) 1998-2008, University of Maryland
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without  
modification, are permitted provided

+ * that the following conditions are met:
+ *
+ * Redistributions of source code must retain the above copyright notice,  
this list of conditions

+ * and the following disclaimer.
+ *
+ * Redistributions in binary form must reproduce the above copyright  
notice, this list of conditions
+ * and the following disclaimer in the documentation and/or other  
materials provided with the

+ * distribution.
+ *
+ * None of the name of the University of Maryland, the name of the  
Piccolo2D project, or the names of its
+ * contributors may be used to endorse or promote products derived from  
this software without specific

+ * prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS AS  
IS AND ANY EXPRESS OR IMPLIED
+ * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF  
MERCHANTABILITY AND FITNESS FOR A
+ * PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT  
OWNER OR CONTRIBUTORS BE LIABLE FOR
+ * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL  
DAMAGES (INCLUDING, BUT NOT
+ * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,  
DATA, OR PROFITS; OR BUSINESS
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN  
CONTRACT, STRICT LIABILITY, OR
+ * TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE  
USE OF THIS SOFTWARE, EVEN IF

+ * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+package org.piccolo2d.examples.issues;
+
+import java.awt.BasicStroke;
+
+import org.piccolo2d.PCanvas;
+import org.piccolo2d.nodes.PPath;
+import org.piccolo2d.extras.PFrame;
+
+/**
+ * Example that demonstrates issue with zero width strokes in Issue 221.
+ * p
+ * Cannot draw veritical and horizontal lines of 0 width stroke using  
PPathbr/
+ * a  
href=http://code.google.com/p/piccolo2d/issues/detail?id=221;http://code.google.com/p/piccolo2d/issues/detail?id=221/a

+ * /p
+ */
+public class ZeroWidthStrokeBug extends PFrame {
+
+public ZeroWidthStrokeBug() {
+this(null);
+}
+
+public ZeroWidthStrokeBug(final PCanvas aCanvas) {
+super(ZeroWidthStrokeBug, false, aCanvas);
+}
+
+/** {@inheritDoc} */
+public void initialize() {
+PPath line1 = PPath.createLine(5f, 10f, 5f, 100f);
+line1.setStroke(new BasicStroke(0));
+getCanvas().getLayer().addChild(line1);
+
+PPath line2 = new PPath();
+line2.setStroke(new BasicStroke(0));
+line2.moveTo(15f, 10f);
+line2.lineTo(15f, 100f);
+getCanvas().getLayer().addChild(line2);
+
+PPath line3 = PPath.createLine(25f, 10f, 26f, 100f);
+line3.setStroke(new BasicStroke(0));
+getCanvas().getLayer().addChild(line3);
+}
+
+public static void main(final String[] args) {
+new ZeroWidthStrokeBug();
+}
+}

--
Piccolo2D Developers Group: http://groups.google.com/group/piccolo2d-dev?hl=en


[piccolo2d-dev] Re: Issue 221 in piccolo2d: Cannot draw veritical and horizontal lines of 0 width stroke using PPath

2012-08-31 Thread piccolo2d


Comment #6 on issue 221 by heue...@gmail.com: Cannot draw veritical and  
horizontal lines of 0 width stroke using PPath

http://code.google.com/p/piccolo2d/issues/detail?id=221

Adding example

$ svn commit -m Issue 221 ; adding ZeroWidthStrokeBug to examples.issues .
Committed revision 1169.

--
Piccolo2D Developers Group: http://groups.google.com/group/piccolo2d-dev?hl=en


[piccolo2d-dev] [piccolo2d] r1171 committed - Issue 186 ; moving PSwingMemoryLeakExample to examples.pswing.issues p...

2012-08-31 Thread piccolo2d

Revision: 1171
Author:   heuermh
Date: Fri Aug 31 10:07:38 2012
Log:  Issue 186 ; moving PSwingMemoryLeakExample to  
examples.pswing.issues package, commit 1 of 2

http://code.google.com/p/piccolo2d/source/detail?r=1171

Added:
  
/piccolo2d.java/trunk/examples/src/main/java/org/piccolo2d/examples/pswing/issues/PSwingMemoryLeakExample.java

Deleted:
  
/piccolo2d.java/trunk/examples/src/main/java/org/piccolo2d/examples/pswing/PSwingMemoryLeakExample.java


===
--- /dev/null
+++  
/piccolo2d.java/trunk/examples/src/main/java/org/piccolo2d/examples/pswing/issues/PSwingMemoryLeakExample.java	 
Fri Aug 31 10:07:38 2012

@@ -0,0 +1,261 @@
+/*
+ * Copyright (c) 2008-2011, Piccolo2D project, http://piccolo2d.org
+ * Copyright (c) 1998-2008, University of Maryland
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without  
modification, are permitted provided

+ * that the following conditions are met:
+ *
+ * Redistributions of source code must retain the above copyright notice,  
this list of conditions

+ * and the following disclaimer.
+ *
+ * Redistributions in binary form must reproduce the above copyright  
notice, this list of conditions
+ * and the following disclaimer in the documentation and/or other  
materials provided with the

+ * distribution.
+ *
+ * None of the name of the University of Maryland, the name of the  
Piccolo2D project, or the names of its
+ * contributors may be used to endorse or promote products derived from  
this software without specific

+ * prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS AS  
IS AND ANY EXPRESS OR IMPLIED
+ * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF  
MERCHANTABILITY AND FITNESS FOR A
+ * PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT  
OWNER OR CONTRIBUTORS BE LIABLE FOR
+ * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL  
DAMAGES (INCLUDING, BUT NOT
+ * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,  
DATA, OR PROFITS; OR BUSINESS
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN  
CONTRACT, STRICT LIABILITY, OR
+ * TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE  
USE OF THIS SOFTWARE, EVEN IF

+ * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+package org.piccolo2d.examples.pswing;
+
+import java.awt.BorderLayout;
+import java.awt.Dimension;
+import java.awt.FlowLayout;
+import java.awt.event.ActionEvent;
+import java.awt.event.ActionListener;
+
+import javax.swing.JFrame;
+import javax.swing.JLabel;
+import javax.swing.JPanel;
+import javax.swing.SwingUtilities;
+import javax.swing.Timer;
+
+import org.piccolo2d.PCanvas;
+import org.piccolo2d.extras.pswing.PSwing;
+import org.piccolo2d.extras.pswing.PSwingCanvas;
+import org.piccolo2d.nodes.PText;
+
+
+/**
+ * Attempt to replicate the PSwingRepaintManager-related memory leak  
reported in

+ * Issue 74.
+ */
+public final class PSwingMemoryLeakExample extends JFrame {
+
+/** Default serial version UID. */
+private static final long serialVersionUID = 1L;
+
+/** Active instances. */
+private final PText active;
+
+/** Finalized instances. */
+private final PText finalized;
+
+/** Free memory. */
+private final PText freeMemory;
+
+/** Total memory. */
+private final PText totalMemory;
+
+/** Used memory. */
+private final PText usedMemory;
+
+/** Canvas. */
+private final PCanvas canvas;
+
+/** Main panel, container for PSwingCanvases. */
+private final JPanel mainPanel;
+
+/**
+ * Create a new PSwing memory leak example.
+ */
+public PSwingMemoryLeakExample() {
+super(PSwing memory leak example);
+
+final PText label0 = new PText(Number of active PSwingCanvases:);
+active = new PText(0);
+final PText label4 = new PText(Number of finalized  
PSwingCanvases:);

+finalized = new PText(0);
+final PText label1 = new PText(Total memory:);
+totalMemory = new PText(0);
+final PText label2 = new PText(Free memory:);
+freeMemory = new PText(0);
+final PText label3 = new PText(Used memory:);
+usedMemory = new PText(0);
+
+label0.offset(20.0d, 20.0d);
+active.offset(label0.getFullBounds().getWidth() + 50.0d, 20.0d);
+label4.offset(20.0d, 40.0d);
+finalized.offset(label4.getFullBounds().getWidth() + 50.0d, 40.0d);
+label1.offset(20.0d, 60.0d);
+totalMemory.offset(label1.getFullBounds().getWidth() + 40.0d,  
60.0d);

+label2.offset(20.0d, 80.0d);
+freeMemory.offset(label2.getFullBounds().getWidth() + 40.0d,  
80.0d);

+label3.offset(freeMemory.getFullBounds().getX() + 80.0d, 80.0d);
+usedMemory.offset(label3.getFullBounds().getX() +  
label3.getFullBounds().getWidth() + 20.0d, 80.0d

[piccolo2d-dev] [piccolo2d] r1173 committed - Issue 148 ; adding PSwingCameraBug to examples.pswing.issues package

2012-08-31 Thread piccolo2d

Revision: 1173
Author:   heuermh
Date: Fri Aug 31 10:16:26 2012
Log:  Issue 148 ; adding PSwingCameraBug to examples.pswing.issues  
package

http://code.google.com/p/piccolo2d/source/detail?r=1173

Added:
  
/piccolo2d.java/trunk/examples/src/main/java/org/piccolo2d/examples/pswing/issues/PSwingCameraBug.java


===
--- /dev/null
+++  
/piccolo2d.java/trunk/examples/src/main/java/org/piccolo2d/examples/pswing/issues/PSwingCameraBug.java	 
Fri Aug 31 10:16:26 2012

@@ -0,0 +1,82 @@
+/*
+ * Copyright (c) 2008-2012, Piccolo2D project, http://piccolo2d.org
+ * Copyright (c) 1998-2008, University of Maryland
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without  
modification, are permitted provided

+ * that the following conditions are met:
+ *
+ * Redistributions of source code must retain the above copyright notice,  
this list of conditions

+ * and the following disclaimer.
+ *
+ * Redistributions in binary form must reproduce the above copyright  
notice, this list of conditions
+ * and the following disclaimer in the documentation and/or other  
materials provided with the

+ * distribution.
+ *
+ * None of the name of the University of Maryland, the name of the  
Piccolo2D project, or the names of its
+ * contributors may be used to endorse or promote products derived from  
this software without specific

+ * prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS AS  
IS AND ANY EXPRESS OR IMPLIED
+ * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF  
MERCHANTABILITY AND FITNESS FOR A
+ * PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT  
OWNER OR CONTRIBUTORS BE LIABLE FOR
+ * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL  
DAMAGES (INCLUDING, BUT NOT
+ * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,  
DATA, OR PROFITS; OR BUSINESS
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN  
CONTRACT, STRICT LIABILITY, OR
+ * TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE  
USE OF THIS SOFTWARE, EVEN IF

+ * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+package org.piccolo2d.examples.pswing.issues;
+
+import java.awt.Dimension;
+
+import javax.swing.JFrame;
+import javax.swing.JTextField;
+
+import org.piccolo2d.extras.pswing.PSwing;
+import org.piccolo2d.extras.pswing.PSwingCanvas;
+
+/**
+ * Example that demonstrates the PSwing camera bug described in Issue 148.
+ * p
+ * PSwing nodes doen't handle interactions when added to the camerabr/
+ * a  
href=http://code.google.com/p/piccolo2d/issues/detail?id=148;http://code.google.com/p/piccolo2d/issues/detail?id=148/a

+ * /p
+ */
+public class PSwingCameraBug {
+public static void main(String[] args) {
+JFrame frame = new JFrame();
+frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
+frame.getContentPane().setPreferredSize(new Dimension(600, 600));
+
+frame.getContentPane().add(buildPSwingCanvas());
+frame.pack();
+frame.setVisible(true);
+}
+
+private static PSwingCanvas buildPSwingCanvas() {
+PSwingCanvas canvas = new PSwingCanvas();
+
+addCameraPSwing(canvas);
+addLayerPSwing(canvas);
+
+return canvas;
+}
+
+private static void addCameraPSwing(PSwingCanvas canvas) {
+PSwing swingNode = buildPSwingNode();
+canvas.getCamera().addChild(swingNode);
+}
+
+private static void addLayerPSwing(PSwingCanvas canvas) {
+PSwing swingNode = buildPSwingNode();
+swingNode.setOffset(200, 0);
+canvas.getLayer().addChild(swingNode);
+}
+
+private static PSwing buildPSwingNode() {
+JTextField textField = new JTextField();
+textField.setPreferredSize(new Dimension(100, 20));
+return new PSwing(textField);
+}
+}

--
Piccolo2D Developers Group: http://groups.google.com/group/piccolo2d-dev?hl=en


[piccolo2d-dev] Re: Issue 148 in piccolo2d: PSwing nodes doen't handle interactions when added to the camera

2012-08-31 Thread piccolo2d


Comment #3 on issue 148 by heue...@gmail.com: PSwing nodes doen't handle  
interactions when added to the camera

http://code.google.com/p/piccolo2d/issues/detail?id=148

Added as PSwingCameraBug

$ svn commit -m Issue 148 ; adding PSwingCameraBug to  
examples.pswing.issues package .

Committed revision 1173.

--
Piccolo2D Developers Group: http://groups.google.com/group/piccolo2d-dev?hl=en


[piccolo2d-dev] [piccolo2d] r1174 committed - Issue 207 ; ignore mouse pressed and released events with button Mouse...

2012-08-31 Thread piccolo2d

Revision: 1174
Author:   heuermh
Date: Fri Aug 31 13:06:40 2012
Log:  Issue 207 ; ignore mouse pressed and released events with button  
MouseEvent.NOBUTTON instead of throwing an exception

http://code.google.com/p/piccolo2d/source/detail?r=1174

Modified:
  
/piccolo2d.java/branches/release-1.3.1/core/src/main/java/edu/umd/cs/piccolo/PCanvas.java
  
/piccolo2d.java/branches/release-1.3.1/core/src/test/java/edu/umd/cs/piccolo/PCanvasTest.java


===
---  
/piccolo2d.java/branches/release-1.3.1/core/src/main/java/edu/umd/cs/piccolo/PCanvas.java	 
Sun Nov 13 11:00:58 2011
+++  
/piccolo2d.java/branches/release-1.3.1/core/src/main/java/edu/umd/cs/piccolo/PCanvas.java	 
Fri Aug 31 13:06:40 2012

@@ -789,6 +789,7 @@
 requestFocus();

 boolean shouldBalanceEvent = false;
+boolean shouldSendEvent = false;

 final MouseEvent event = copyButtonsFromModifiers(rawEvent,  
MouseEvent.MOUSE_PRESSED);


@@ -798,6 +799,7 @@
 shouldBalanceEvent = true;
 }
 isButton1Pressed = true;
+shouldSendEvent = true;
 break;

 case MouseEvent.BUTTON2:
@@ -805,6 +807,7 @@
 shouldBalanceEvent = true;
 }
 isButton2Pressed = true;
+shouldSendEvent = true;
 break;

 case MouseEvent.BUTTON3:
@@ -812,22 +815,26 @@
 shouldBalanceEvent = true;
 }
 isButton3Pressed = true;
+shouldSendEvent = true;
 break;
-default:
-throw new RuntimeException(mousePressed without  
buttons specified);


+default:
+break;
 }

 if (shouldBalanceEvent) {
 sendRetypedMouseEventToInputManager(event,  
MouseEvent.MOUSE_RELEASED);

 }

-sendInputEventToInputManager(event, MouseEvent.MOUSE_PRESSED);
+if (shouldSendEvent) {
+sendInputEventToInputManager(event,  
MouseEvent.MOUSE_PRESSED);

+}
 }

 /** {@inheritDoc} */
 public void mouseReleased(final MouseEvent rawEvent) {
 boolean shouldBalanceEvent = false;
+boolean shouldSendEvent = false;

 final MouseEvent event = copyButtonsFromModifiers(rawEvent,  
MouseEvent.MOUSE_RELEASED);


@@ -837,6 +844,7 @@
 shouldBalanceEvent = true;
 }
 isButton1Pressed = false;
+shouldSendEvent = true;
 break;

 case MouseEvent.BUTTON2:
@@ -844,6 +852,7 @@
 shouldBalanceEvent = true;
 }
 isButton2Pressed = false;
+shouldSendEvent = true;
 break;

 case MouseEvent.BUTTON3:
@@ -851,16 +860,21 @@
 shouldBalanceEvent = true;
 }
 isButton3Pressed = false;
+shouldSendEvent = true;
 break;
+
 default:
-throw new RuntimeException(mouseReleased without  
buttons specified);

+shouldBalanceEvent = false;
+shouldSendEvent = false;
 }

 if (shouldBalanceEvent) {
 sendRetypedMouseEventToInputManager(event,  
MouseEvent.MOUSE_PRESSED);

 }

-sendInputEventToInputManager(event, MouseEvent.MOUSE_RELEASED);
+if (shouldSendEvent) {
+sendInputEventToInputManager(event,  
MouseEvent.MOUSE_RELEASED);

+}
 }

 private MouseEvent copyButtonsFromModifiers(final MouseEvent  
rawEvent, final int eventType) {

===
---  
/piccolo2d.java/branches/release-1.3.1/core/src/test/java/edu/umd/cs/piccolo/PCanvasTest.java	 
Sun Nov 13 11:00:58 2011
+++  
/piccolo2d.java/branches/release-1.3.1/core/src/test/java/edu/umd/cs/piccolo/PCanvasTest.java	 
Fri Aug 31 13:06:40 2012

@@ -36,6 +36,11 @@

 import java.awt.Cursor;

+import java.awt.event.MouseEvent;
+import java.awt.event.MouseListener;
+
+import javax.swing.JPanel;
+
 /**
  * Unit test for PCanvas.
  */
@@ -163,4 +168,109 @@
 assertNotNull(listeners);
 assertEquals(2, listeners.length); // zoom + pan + mockListener
 }
+
+public void testMouseNoButtonPressed() {
+JPanel panel = new JPanel();
+panel.add(Center, canvas);
+canvas.addInputEventListener(mockListener);
+MouseEvent mouseEvent = new MouseEvent(canvas, 0,  
System.currentTimeMillis(), 0, 10, 10, 1, false, MouseEvent.NOBUTTON);
+for (int i = 0, size

[piccolo2d-dev] Issue 241 in piccolo2d: Add horizontal scrolling emulation in PCanvas

2012-08-31 Thread piccolo2d

Status: New
Owner: 

New issue 241 by heue...@gmail.com: Add horizontal scrolling emulation in  
PCanvas

http://code.google.com/p/piccolo2d/issues/detail?id=241

Per comments in Issue 207

http://code.google.com/p/piccolo2d/issues/detail?id=207#c8
http://code.google.com/p/piccolo2d/issues/detail?id=207#c9
http://code.google.com/p/piccolo2d/issues/detail?id=207#c10

support horizontal scrolling in PCanvas.  This might mean adding support  
for more buttons and using shift + mousewheel to emulate native horizontal  
scrolling.


--
Piccolo2D Developers Group: http://groups.google.com/group/piccolo2d-dev?hl=en


[piccolo2d-dev] 6 issues changed in piccolo2d

2012-08-31 Thread piccolo2d

Updates:
Status: New

Comment by heue...@gmail.com:
Reverting back to New status

Affected issues:
  issue 16: Support non-rectangular zooming of PCameras on nodes
http://code.google.com/p/piccolo2d/issues/detail?id=16

  issue 18: PSwing doesn't work with certain swing components (tooltips,  
drop-downs, scrollbars (on mouse off), etc.)

http://code.google.com/p/piccolo2d/issues/detail?id=18

  issue 19: PInputEvent does not have camera information for keyboard  
events.

http://code.google.com/p/piccolo2d/issues/detail?id=19

  issue 24: Keyboard focus doesn't work for multiple cameras
http://code.google.com/p/piccolo2d/issues/detail?id=24

  issue 26: PSwing components don't handle events across multiple cameras
http://code.google.com/p/piccolo2d/issues/detail?id=26

  issue 57: Hierarchical Input Events
http://code.google.com/p/piccolo2d/issues/detail?id=57



--
You received this message because you are listed in the owner
or CC fields of these issues, or because you starred them.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings

--
Piccolo2D Developers Group: http://groups.google.com/group/piccolo2d-dev?hl=en


[piccolo2d-dev] Re: Issue 16 in piccolo2d: Support non-rectangular zooming of PCameras on nodes

2012-08-31 Thread piccolo2d

Updates:
Owner: ---

Comment #12 on issue 16 by heue...@gmail.com: Support non-rectangular  
zooming of PCameras on nodes

http://code.google.com/p/piccolo2d/issues/detail?id=16

(No comment was entered for this change.)

--
Piccolo2D Developers Group: http://groups.google.com/group/piccolo2d-dev?hl=en


[piccolo2d-dev] Re: Issue 18 in piccolo2d: PSwing doesn't work with certain swing components (tooltips, drop-downs, scrollbars (on mouse off), etc.)

2012-08-31 Thread piccolo2d

Updates:
Owner: ---

Comment #7 on issue 18 by heue...@gmail.com: PSwing doesn't work with  
certain swing components (tooltips, drop-downs, scrollbars (on mouse off),  
etc.)

http://code.google.com/p/piccolo2d/issues/detail?id=18

(No comment was entered for this change.)

--
Piccolo2D Developers Group: http://groups.google.com/group/piccolo2d-dev?hl=en


[piccolo2d-dev] Re: Issue 19 in piccolo2d: PInputEvent does not have camera information for keyboard events.

2012-08-31 Thread piccolo2d

Updates:
Owner: ---

Comment #14 on issue 19 by heue...@gmail.com: PInputEvent does not have  
camera information for keyboard events.

http://code.google.com/p/piccolo2d/issues/detail?id=19

(No comment was entered for this change.)

--
Piccolo2D Developers Group: http://groups.google.com/group/piccolo2d-dev?hl=en


[piccolo2d-dev] Re: Issue 24 in piccolo2d: Keyboard focus doesn't work for multiple cameras

2012-08-31 Thread piccolo2d

Updates:
Owner: ---

Comment #7 on issue 24 by heue...@gmail.com: Keyboard focus doesn't work  
for multiple cameras

http://code.google.com/p/piccolo2d/issues/detail?id=24

(No comment was entered for this change.)

--
Piccolo2D Developers Group: http://groups.google.com/group/piccolo2d-dev?hl=en


[piccolo2d-dev] Re: Issue 26 in piccolo2d: PSwing components don't handle events across multiple cameras

2012-08-31 Thread piccolo2d

Updates:
Owner: ---

Comment #6 on issue 26 by heue...@gmail.com: PSwing components don't handle  
events across multiple cameras

http://code.google.com/p/piccolo2d/issues/detail?id=26

(No comment was entered for this change.)

--
Piccolo2D Developers Group: http://groups.google.com/group/piccolo2d-dev?hl=en


[piccolo2d-dev] Re: Issue 57 in piccolo2d: Hierarchical Input Events

2012-08-31 Thread piccolo2d

Updates:
Owner: ---

Comment #2 on issue 57 by heue...@gmail.com: Hierarchical Input Events
http://code.google.com/p/piccolo2d/issues/detail?id=57

(No comment was entered for this change.)

--
Piccolo2D Developers Group: http://groups.google.com/group/piccolo2d-dev?hl=en


[piccolo2d-dev] 10 issues changed in piccolo2d

2012-08-31 Thread piccolo2d

Updates:
Labels: -Milestone-2.0
Labels: -Milestone-3.0

Comment by heue...@gmail.com:
(No comment was entered for this change.)

Affected issues:
  issue 16: Support non-rectangular zooming of PCameras on nodes
http://code.google.com/p/piccolo2d/issues/detail?id=16

  issue 18: PSwing doesn't work with certain swing components (tooltips,  
drop-downs, scrollbars (on mouse off), etc.)

http://code.google.com/p/piccolo2d/issues/detail?id=18

  issue 19: PInputEvent does not have camera information for keyboard  
events.

http://code.google.com/p/piccolo2d/issues/detail?id=19

  issue 24: Keyboard focus doesn't work for multiple cameras
http://code.google.com/p/piccolo2d/issues/detail?id=24

  issue 26: PSwing components don't handle events across multiple cameras
http://code.google.com/p/piccolo2d/issues/detail?id=26

  issue 50: Allow specification of rendering hints on a per-node basis
http://code.google.com/p/piccolo2d/issues/detail?id=50

  issue 54: Remove cyclic package dependencies
http://code.google.com/p/piccolo2d/issues/detail?id=54

  issue 57: Hierarchical Input Events
http://code.google.com/p/piccolo2d/issues/detail?id=57

  issue 58: Create a Piccolo2D application archetype
http://code.google.com/p/piccolo2d/issues/detail?id=58

  issue 190: Move to version 1.6 as minimum JDK requirement for piccolo-core
http://code.google.com/p/piccolo2d/issues/detail?id=190



--
You received this message because you are listed in the owner
or CC fields of these issues, or because you starred them.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings

--
Piccolo2D Developers Group: http://groups.google.com/group/piccolo2d-dev?hl=en


[piccolo2d-dev] 6 issues changed in piccolo2d

2012-08-31 Thread piccolo2d

Updates:
Status: Accepted
Labels: Milestone-2.0

Comment by heue...@gmail.com:
(No comment was entered for this change.)

Affected issues:
  issue 156: SCENE_GRAPH_DELEGATE unnecessary?
http://code.google.com/p/piccolo2d/issues/detail?id=156

  issue 175: Because Cloning uses serialization all transient fields are  
null.

http://code.google.com/p/piccolo2d/issues/detail?id=175

  issue 192: PStyledText breaks when using Insets and unconstrained width
http://code.google.com/p/piccolo2d/issues/detail?id=192

  issue 215: Visual artifacts noticed in ActivityExample, Position Path  
Activity Example

http://code.google.com/p/piccolo2d/issues/detail?id=215

  issue 216: Create location for custom build/release scripts
http://code.google.com/p/piccolo2d/issues/detail?id=216

  issue 234: Invisible PClips are reported to be picked by InputEventHandler
http://code.google.com/p/piccolo2d/issues/detail?id=234



--
You received this message because you are listed in the owner
or CC fields of these issues, or because you starred them.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings

--
Piccolo2D Developers Group: http://groups.google.com/group/piccolo2d-dev?hl=en


[piccolo2d-dev] Re: Issue 60 in piccolo2d: Build piccolo2d.net with mono

2012-08-31 Thread piccolo2d

Updates:
Labels: -Priority-High Priority-Low

Comment #5 on issue 60 by heue...@gmail.com: Build piccolo2d.net with mono
http://code.google.com/p/piccolo2d/issues/detail?id=60

(No comment was entered for this change.)

--
Piccolo2D Developers Group: http://groups.google.com/group/piccolo2d-dev?hl=en


[piccolo2d-dev] 2 issues changed in piccolo2d

2012-08-31 Thread piccolo2d

Updates:
Owner: heue...@gmail.com

Comment by heue...@gmail.com:
(No comment was entered for this change.)

Affected issues:
  issue 224: Update maven-site-plugin version to 3.0, remove maven-3 profile
http://code.google.com/p/piccolo2d/issues/detail?id=224

  issue 229: Consider updating maven-checkstyle-plugin to version 2.8
http://code.google.com/p/piccolo2d/issues/detail?id=229



--
You received this message because you are listed in the owner
or CC fields of these issues, or because you starred them.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings

--
Piccolo2D Developers Group: http://groups.google.com/group/piccolo2d-dev?hl=en


[piccolo2d-dev] Re: Issue 213 in piccolo2d: artifacts in JComponent border using PSwing

2012-08-31 Thread piccolo2d

Updates:
Labels: Type-Defect

Comment #5 on issue 213 by heue...@gmail.com: artifacts in JComponent  
border using PSwing

http://code.google.com/p/piccolo2d/issues/detail?id=213

(No comment was entered for this change.)

--
Piccolo2D Developers Group: http://groups.google.com/group/piccolo2d-dev?hl=en


[piccolo2d-dev] Re: Issue 216 in piccolo2d: Create location for custom build/release scripts

2012-08-31 Thread piccolo2d

Updates:
Labels: Type-Task

Comment #4 on issue 216 by heue...@gmail.com: Create location for custom  
build/release scripts

http://code.google.com/p/piccolo2d/issues/detail?id=216

(No comment was entered for this change.)

--
Piccolo2D Developers Group: http://groups.google.com/group/piccolo2d-dev?hl=en


[piccolo2d-dev] 4 issues changed in piccolo2d

2012-08-31 Thread piccolo2d

Updates:
Labels: Priority-Medium

Comment by heue...@gmail.com:
(No comment was entered for this change.)

Affected issues:
  issue 192: PStyledText breaks when using Insets and unconstrained width
http://code.google.com/p/piccolo2d/issues/detail?id=192

  issue 213: artifacts in JComponent border using PSwing
http://code.google.com/p/piccolo2d/issues/detail?id=213

  issue 215: Visual artifacts noticed in ActivityExample, Position Path  
Activity Example

http://code.google.com/p/piccolo2d/issues/detail?id=215

  issue 216: Create location for custom build/release scripts
http://code.google.com/p/piccolo2d/issues/detail?id=216



--
You received this message because you are listed in the owner
or CC fields of these issues, or because you starred them.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings

--
Piccolo2D Developers Group: http://groups.google.com/group/piccolo2d-dev?hl=en


[piccolo2d-dev] 4 issues changed in piccolo2d

2012-08-31 Thread piccolo2d

Updates:
Labels: Toolkit-Piccolo2D.Java

Comment by heue...@gmail.com:
(No comment was entered for this change.)

Affected issues:
  issue 192: PStyledText breaks when using Insets and unconstrained width
http://code.google.com/p/piccolo2d/issues/detail?id=192

  issue 213: artifacts in JComponent border using PSwing
http://code.google.com/p/piccolo2d/issues/detail?id=213

  issue 215: Visual artifacts noticed in ActivityExample, Position Path  
Activity Example

http://code.google.com/p/piccolo2d/issues/detail?id=215

  issue 216: Create location for custom build/release scripts
http://code.google.com/p/piccolo2d/issues/detail?id=216



--
You received this message because you are listed in the owner
or CC fields of these issues, or because you starred them.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings

--
Piccolo2D Developers Group: http://groups.google.com/group/piccolo2d-dev?hl=en


[piccolo2d-dev] [piccolo2d] r1176 committed - Issue 229 ; update maven-checkstyle-plugin dependency version to 2.9

2012-08-31 Thread piccolo2d

Revision: 1176
Author:   heuermh
Date: Fri Aug 31 13:34:48 2012
Log:  Issue 229 ; update maven-checkstyle-plugin dependency version to  
2.9

http://code.google.com/p/piccolo2d/source/detail?r=1176

Modified:
 /piccolo2d.java/trunk/core/pom.xml
 /piccolo2d.java/trunk/extras/pom.xml
 /piccolo2d.java/trunk/jdk16/pom.xml
 /piccolo2d.java/trunk/swt/pom.xml

===
--- /piccolo2d.java/trunk/core/pom.xml  Mon May  9 09:52:32 2011
+++ /piccolo2d.java/trunk/core/pom.xml  Fri Aug 31 13:34:48 2012
@@ -50,7 +50,7 @@
 plugins
   plugin
 artifactIdmaven-checkstyle-plugin/artifactId
-version2.6/version
+version2.9/version
 configuration

configLocation${basedir}/src/build/conf/checkstyle.xml/configLocation

   enableRulesSummaryfalse/enableRulesSummary
===
--- /piccolo2d.java/trunk/extras/pom.xmlMon May  9 09:52:39 2011
+++ /piccolo2d.java/trunk/extras/pom.xmlFri Aug 31 13:34:48 2012
@@ -63,7 +63,7 @@
 plugins
   plugin
 artifactIdmaven-checkstyle-plugin/artifactId
-version2.6/version
+version2.9/version
 configuration

configLocation${basedir}/src/build/conf/checkstyle.xml/configLocation

   enableRulesSummaryfalse/enableRulesSummary
===
--- /piccolo2d.java/trunk/jdk16/pom.xml Mon May  9 09:52:39 2011
+++ /piccolo2d.java/trunk/jdk16/pom.xml Fri Aug 31 13:34:48 2012
@@ -59,7 +59,7 @@
 plugins
   plugin
 artifactIdmaven-checkstyle-plugin/artifactId
-version2.6/version
+version2.9/version
 configuration

configLocation${basedir}/src/build/conf/checkstyle.xml/configLocation

   enableRulesSummaryfalse/enableRulesSummary
===
--- /piccolo2d.java/trunk/swt/pom.xml   Mon May  9 09:52:39 2011
+++ /piccolo2d.java/trunk/swt/pom.xml   Fri Aug 31 13:34:48 2012
@@ -73,7 +73,7 @@
 plugins
   plugin
 artifactIdmaven-checkstyle-plugin/artifactId
-version2.6/version
+version2.9/version
 configuration

configLocation${basedir}/src/build/conf/checkstyle.xml/configLocation

   enableRulesSummaryfalse/enableRulesSummary

--
Piccolo2D Developers Group: http://groups.google.com/group/piccolo2d-dev?hl=en


<    2   3   4   5   6   7   8   9   >