[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


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

2012-08-31 Thread piccolo2d

Revision: 1177
Author:   heuermh
Date: Fri Aug 31 13:39:11 2012
Log:  Issue 229 ; update maven-checkstyle-plugin dependency version to  
2.9

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

Modified:
 /piccolo2d.java/branches/release-1.3.1/core/pom.xml
 /piccolo2d.java/branches/release-1.3.1/extras/pom.xml
 /piccolo2d.java/branches/release-1.3.1/swt/pom.xml

===
--- /piccolo2d.java/branches/release-1.3.1/core/pom.xml	Thu Apr 14 21:02:28  
2011
+++ /piccolo2d.java/branches/release-1.3.1/core/pom.xml	Fri Aug 31 13:39:11  
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/branches/release-1.3.1/extras/pom.xml	Thu Apr 14  
21:02:28 2011
+++ /piccolo2d.java/branches/release-1.3.1/extras/pom.xml	Fri Aug 31  
13:39:11 2012

@@ -57,7 +57,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/branches/release-1.3.1/swt/pom.xml	Thu Apr 14 21:02:28  
2011
+++ /piccolo2d.java/branches/release-1.3.1/swt/pom.xml	Fri Aug 31 13:39:11  
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


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

2012-08-31 Thread piccolo2d

Updates:
Status: Fixed

Comment #4 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

Fixed on svn trunk

$ svn commit -m Issue 229 ; update maven-checkstyle-plugin dependency  
version to 2.9 .

Committed revision 1176.

and branches/release-1.3.1

$ svn commit -m Issue 229 ; update maven-checkstyle-plugin dependency  
version to 2.9 .

Committed revision 1177.

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


[piccolo2d-dev] [piccolo2d] r1178 committed - Issue 224 ; removing maven-3 profile, replacing with maven-enforcer-pl...

2012-08-31 Thread piccolo2d

Revision: 1178
Author:   heuermh
Date: Fri Aug 31 14:44:45 2012
Log:  Issue 224 ; removing maven-3 profile, replacing with  
maven-enforcer-plugin configuration, and updating maven-site-plugin  
dependency version to 3.1

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

Modified:
 /piccolo2d.java/trunk/parent/pom.xml

===
--- /piccolo2d.java/trunk/parent/pom.xmlThu Feb 23 14:00:15 2012
+++ /piccolo2d.java/trunk/parent/pom.xmlFri Aug 31 14:44:45 2012
@@ -253,7 +253,11 @@
 target${jdk.version}/target
   /configuration
 /plugin
- plugin
+plugin
+  artifactIdmaven-enforcer-plugin/artifactId
+  version1.1.1/version
+/plugin
+plugin
   artifactIdmaven-deploy-plugin/artifactId
   version2.5/version
 /plugin
@@ -283,7 +287,7 @@
 /plugin
 plugin
   artifactIdmaven-site-plugin/artifactId
-  version2.1.1/version
+  version3.1/version
 /plugin
 plugin
   artifactIdmaven-surefire-plugin/artifactId
@@ -303,6 +307,24 @@
 artifactIdmaven-bundle-plugin/artifactId
 extensionstrue/extensions
   /plugin
+  plugin
+artifactIdmaven-enforcer-plugin/artifactId
+executions
+  execution
+idenforce-java/id
+goals
+  goalenforce/goal
+/goals
+configuration
+  rules
+requireMavenVersion
+  version[3.0.4,)/version
+/requireMavenVersion
+  /rules
+/configuration
+  /execution
+/executions
+  /plugin
 /plugins
   /build
   dependencyManagement
@@ -364,25 +386,6 @@
   /plugin
 /plugins
   /build
-/profile
-!--  profile only activated for maven 3.0-beta-x or later versions --
-profile
-  idmaven-3/id
-  activation
-file
-  exists${basedir}/exists
-/file
-  /activation
-  build
-pluginManagement
-  plugins
-plugin
-  artifactIdmaven-site-plugin/artifactId
-  version3.0-beta-3/version
-/plugin
-  /plugins
-/pluginManagement
-  /build
 /profile
   /profiles
 /project

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


[piccolo2d-dev] [piccolo2d] r1179 committed - Issue 224 ; removing maven-3 profile, replacing with maven-enforcer-pl...

2012-08-31 Thread piccolo2d

Revision: 1179
Author:   heuermh
Date: Fri Aug 31 15:16:31 2012
Log:  Issue 224 ; removing maven-3 profile, replacing with  
maven-enforcer-plugin configuration, and updating maven-site-plugin  
dependency version to 3.1

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

Modified:
 /piccolo2d.java/branches/release-1.3.1/parent/pom.xml

===
--- /piccolo2d.java/branches/release-1.3.1/parent/pom.xml	Thu Apr 14  
21:02:28 2011
+++ /piccolo2d.java/branches/release-1.3.1/parent/pom.xml	Fri Aug 31  
15:16:31 2012

@@ -258,6 +258,10 @@
   version2.5/version
 /plugin
 plugin
+  artifactIdmaven-enforcer-plugin/artifactId
+  version1.1.1/version
+/plugin
+plugin
   artifactIdmaven-gpg-plugin/artifactId
   version1.2/version
 /plugin
@@ -283,7 +287,7 @@
 /plugin
 plugin
   artifactIdmaven-site-plugin/artifactId
-  version2.1.1/version
+  version3.1/version
 /plugin
 plugin
   artifactIdmaven-source-plugin/artifactId
@@ -307,6 +311,24 @@
 artifactIdmaven-bundle-plugin/artifactId
 extensionstrue/extensions
   /plugin
+  plugin
+artifactIdmaven-enforcer-plugin/artifactId
+executions
+  execution
+idenforce-java/id
+goals
+  goalenforce/goal
+/goals
+configuration
+  rules
+requireMavenVersion
+  version[3.0.4,)/version
+/requireMavenVersion
+  /rules
+/configuration
+  /execution
+/executions
+  /plugin
 /plugins
   /build
   dependencyManagement
@@ -368,25 +390,6 @@
   /plugin
 /plugins
   /build
-/profile
-!--  profile only activated for maven 3.0-beta-x or later versions --
-profile
-  idmaven-3/id
-  activation
-file
-  exists${basedir}/exists
-/file
-  /activation
-  build
-pluginManagement
-  plugins
-plugin
-  artifactIdmaven-site-plugin/artifactId
-  version3.0-beta-3/version
-/plugin
-  /plugins
-/pluginManagement
-  /build
 /profile
   /profiles
 /project

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


[piccolo2d-dev] Re: Issue 224 in piccolo2d: Update maven-site-plugin version to 3.0, remove maven-3 profile

2012-08-31 Thread piccolo2d

Updates:
Status: Fixed

Comment #3 on issue 224 by heue...@gmail.com: Update maven-site-plugin  
version to 3.0, remove maven-3 profile

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

Fixed on svn trunk

$ svn commit -m Issue 224 ; removing maven-3 profile, replacing with  
maven-enforcer-plugin configuration, and updating maven-site-plugin  
dependency version to 3.1 .

Committed revision 1178.

and branches/release-1.3.1

$ svn commit -m Issue 224 ; removing maven-3 profile, replacing with  
maven-enforcer-plugin configuration, and updating maven-site-plugin  
dependency version to 3.1 .

Committed revision 1179.

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


[piccolo2d-dev] [piccolo2d] r1180 committed - Issue 224 ; updating maven-javadoc-plugin dependency to 2.8 to match s...

2012-08-31 Thread piccolo2d

Revision: 1180
Author:   heuermh
Date: Fri Aug 31 15:19:21 2012
Log:  Issue 224 ; updating maven-javadoc-plugin dependency to 2.8 to  
match svn trunk

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

Modified:
 /piccolo2d.java/branches/release-1.3.1/core/pom.xml
 /piccolo2d.java/branches/release-1.3.1/extras/pom.xml
 /piccolo2d.java/branches/release-1.3.1/parent/pom.xml
 /piccolo2d.java/branches/release-1.3.1/swt/pom.xml

===
--- /piccolo2d.java/branches/release-1.3.1/core/pom.xml	Fri Aug 31 13:39:11  
2012
+++ /piccolo2d.java/branches/release-1.3.1/core/pom.xml	Fri Aug 31 15:19:21  
2012

@@ -58,7 +58,7 @@
   /plugin
   plugin
 artifactIdmaven-javadoc-plugin/artifactId
-version2.7/version
+version2.8/version
 configuration
   source${jdk.version}/source
   verbosefalse/verbose
===
--- /piccolo2d.java/branches/release-1.3.1/extras/pom.xml	Fri Aug 31  
13:39:11 2012
+++ /piccolo2d.java/branches/release-1.3.1/extras/pom.xml	Fri Aug 31  
15:19:21 2012

@@ -65,7 +65,7 @@
   /plugin
   plugin
 artifactIdmaven-javadoc-plugin/artifactId
-version2.7/version
+version2.8/version
 configuration
   source${jdk.version}/source
   verbosefalse/verbose
===
--- /piccolo2d.java/branches/release-1.3.1/parent/pom.xml	Fri Aug 31  
15:16:31 2012
+++ /piccolo2d.java/branches/release-1.3.1/parent/pom.xml	Fri Aug 31  
15:19:21 2012

@@ -267,7 +267,7 @@
 /plugin
 plugin
   artifactIdmaven-javadoc-plugin/artifactId
-  version2.7/version
+  version2.8/version
   configuration
 source${jdk.version}/source
 verbosefalse/verbose
===
--- /piccolo2d.java/branches/release-1.3.1/swt/pom.xml	Fri Aug 31 13:39:11  
2012
+++ /piccolo2d.java/branches/release-1.3.1/swt/pom.xml	Fri Aug 31 15:19:21  
2012

@@ -81,7 +81,7 @@
   /plugin
   plugin
 artifactIdmaven-javadoc-plugin/artifactId
-version2.7/version
+version2.8/version
 configuration
   source${jdk.version}/source
   verbosefalse/verbose

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


[piccolo2d-dev] [piccolo2d] r1181 committed - Issue 189 ; adding transparency support for SWTGraphics2D and PSWTPath

2012-08-31 Thread piccolo2d

Revision: 1181
Author:   heuermh
Date: Fri Aug 31 16:06:53 2012
Log:  Issue 189 ; adding transparency support for SWTGraphics2D and  
PSWTPath

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

Modified:
  
/piccolo2d.java/trunk/swt/src/main/java/org/piccolo2d/extras/swt/PSWTPath.java
  
/piccolo2d.java/trunk/swt/src/main/java/org/piccolo2d/extras/swt/SWTGraphics2D.java
  
/piccolo2d.java/trunk/swt-examples/src/main/java/org/piccolo2d/extras/swt/examples/SWTBasicExample.java


===
---  
/piccolo2d.java/trunk/swt/src/main/java/org/piccolo2d/extras/swt/PSWTPath.java	 
Tue Mar 15 15:23:53 2011
+++  
/piccolo2d.java/trunk/swt/src/main/java/org/piccolo2d/extras/swt/PSWTPath.java	 
Fri Aug 31 16:06:53 2012

@@ -73,6 +73,7 @@
 private static final Color DEFAULT_STROKE_PAINT = Color.black;
 private static final BasicStroke BASIC_STROKE = new BasicStroke();
 private static final float PEN_WIDTH = 1f;
+private static final float DEFAULT_TRANSPARENCY = 1.0f;

 private Paint strokePaint;

@@ -84,6 +85,7 @@
 private AffineTransform inverseXForm;

 private double[] shapePts;
+private float transparency = DEFAULT_TRANSPARENCY;

 /**
  * Creates a path representing the rectangle provided.
@@ -315,6 +317,7 @@
 protected void paint(final PPaintContext paintContext) {
 final Paint p = getPaint();
 final SWTGraphics2D g2 = (SWTGraphics2D)  
paintContext.getGraphics();

+g2.setTransparency(transparency);

 if (internalXForm != null) {
 g2.transform(internalXForm);
@@ -571,4 +574,25 @@
 PBounds bounds = getBoundsReference();
 return new Point2D.Double(bounds.x + (bounds.width / 2.0),  
bounds.y + (bounds.height / 2.0));

 }
+
+/**
+ * Return the transparency for this SWT path node.
+ *
+ * @return the transparency for this SWT path node
+ */
+public float getTransparency() {
+return transparency;
+}
+
+/**
+ * Set the transparency for this SWT path node to  
codetransparency/code.

+ *
+ * @param transparency transparency, must be between code0.0f/code  
and code1.0f/code inclusive

+ */
+public void setTransparency(final float transparency) {
+if ((transparency  0.0f) || (transparency  1.0f)) {
+throw new IllegalArgumentException(transparency must be  
between 0.0f and 1.0f inclusive);

+}
+this.transparency = transparency;
+}
 }
===
---  
/piccolo2d.java/trunk/swt/src/main/java/org/piccolo2d/extras/swt/SWTGraphics2D.java	 
Tue Mar 15 15:23:53 2011
+++  
/piccolo2d.java/trunk/swt/src/main/java/org/piccolo2d/extras/swt/SWTGraphics2D.java	 
Fri Aug 31 16:06:53 2012

@@ -86,6 +86,7 @@
 private static final int DEFAULT_FONT_SIZE = 12;

 private static final boolean DEFAULT_STRING_TRANSPARENCY = true;
+private static final float DEFAULT_TRANSPARENCY = 1.0f;

 /**
  * The number of Graphics Contexts active as determined by called to
@@ -116,7 +117,9 @@
 /** The current font to use when drawing text. */
 protected org.eclipse.swt.graphics.Font curFont;
 /** The current stroke width to use when drawing lines. */
-protected double lineWidth = 1.0;
+protected double lineWidth = 1.0d;
+/** Transparency, code0.0f lt;= transparency lt;= 1.0f/code. */
+private float transparency = DEFAULT_TRANSPARENCY;

 /**
  * Constructor for SWTGraphics2D.
@@ -1161,6 +1164,28 @@

 return (int) (Math.max(TEMP_LINE_RECT.getWidth(), 1) + 0.5);
 }
+
+/**
+ * Return the transparency for this graphics context.
+ *
+ * @return the transparency for this graphics context
+ */
+public float getTransparency() {
+return transparency;
+}
+
+/**
+ * Set the transparency for this graphics context to  
codetransparency/code.

+ *
+ * @param transparency transparency, must be between code0.0f/code  
and code1.0f/code inclusive

+ */
+public void setTransparency(final float transparency) {
+if ((transparency  0.0f) || (transparency  1.0f)) {
+throw new IllegalArgumentException(transparency must be  
between 0.0f and 1.0f inclusive);

+}
+this.transparency = transparency;
+gc.setAlpha((int) (this.transparency * 255.0f));
+}

 /**
  * Fills a gradient rectangle of in the direction specified.
===
---  
/piccolo2d.java/trunk/swt-examples/src/main/java/org/piccolo2d/extras/swt/examples/SWTBasicExample.java	 
Tue Mar 15 15:23:53 2011
+++  
/piccolo2d.java/trunk/swt-examples/src/main/java/org/piccolo2d/extras/swt/examples/SWTBasicExample.java	 
Fri Aug 31 16:06:53 2012

@@ -67,10 +67,16 @@
 circle.setPaint(Color.GREEN);
 canvas.getLayer().addChild(circle);

+circle = PSWTPath.createEllipse(120, 220, 40, 40);
+circle.setPaint(Color.GRAY);
+  

[piccolo2d-dev] Re: Issue 189 in piccolo2d: Provide advanced graphical options under SWT

2012-08-31 Thread piccolo2d


Comment #7 on issue 189 by heue...@gmail.com: Provide advanced graphical  
options under SWT

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

Added transparency support similar to attached.

$ svn commit -m Issue 189 ; adding transparency support for SWTGraphics2D  
and PSWTPath swt swt-examples

Committed revision 1181.


Line width is there in SWTGraphics2D but PSWTPath doesn't take advantage of  
it.  Its PEN_WIDTH is always 1.0f.  More work would be required to  
implement that change properly.


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