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

2010-08-27 Thread piccolo2d


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

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

I move to mark this as Invalid or WontFix.

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


[piccolo2d-dev] Re: Issue 153 in piccolo2d: PArea, a wrapper for java.awt.geom.Area to allow Constructive Area Geometry (CAG) operations

2010-08-27 Thread piccolo2d

Updates:
Status: Started

Comment #10 on issue 153 by heue...@gmail.com: PArea, a wrapper for  
java.awt.geom.Area to allow Constructive Area Geometry (CAG) operations

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

$ svn commit -m Issue 152, Issue 153 ; merging ppath-refactoring branch to  
trunk, into new modules jdk16 and jdk16-examples .

...
Transmitting file data 
Committed revision 1054.

Please review.

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


[piccolo2d-dev] Re: Issue 153 in piccolo2d: PArea, a wrapper for java.awt.geom.Area to allow Constructive Area Geometry (CAG) operations

2010-08-27 Thread piccolo2d

Updates:
Labels: Milestone-2.0

Comment #11 on issue 153 by heue...@gmail.com: PArea, a wrapper for  
java.awt.geom.Area to allow Constructive Area Geometry (CAG) operations

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

(No comment was entered for this change.)

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


[piccolo2d-dev] Re: Issue 190 in piccolo2d: Move to version 1.6 as minimum JDK requirement for piccolo-core

2010-08-27 Thread piccolo2d

Updates:
Labels: Toolkit-Piccolo2D.Java

Comment #2 on issue 190 by heue...@gmail.com: Move to version 1.6 as  
minimum JDK requirement for piccolo-core

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

(No comment was entered for this change.)

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


[piccolo2d-dev] 6 issues changed in piccolo2d

2010-08-27 Thread piccolo2d

Updates:
Labels: Toolkit-Piccolo2D.Java

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

Affected issues:
  issue 140: Improve examples module ExampleRunner
http://code.google.com/p/piccolo2d/issues/detail?id=140

  issue 154: Zoom handler doesn't interact well with PSwing nodes
http://code.google.com/p/piccolo2d/issues/detail?id=154

  issue 173: Slow repaint of PSwing components when zooming (from 1.2 to  
1.3)

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

  issue 174: Printing nested Nodes with PPath as border as PDF will result  
in different offsets

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

  issue 181: PNode.toImage is not centered and can create cropped images  
for PNodes with non-integral (x,y) bounds

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

  issue 186: Create a new package org.piccolo2d.examples.bugs or .issues
http://code.google.com/p/piccolo2d/issues/detail?id=186



--
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] r1055 committed - Issue 187 ; applying patch from berthold.daum at bdaum.de, adding exam...

2010-08-27 Thread piccolo2d

Revision: 1055
Author: heuermh
Date: Fri Aug 27 09:46:51 2010
Log: Issue 187 ; applying patch from berthold.daum at bdaum.de, adding  
example that demonstrates issue

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

Added:
  
/piccolo2d.java/trunk/swt-examples/src/main/java/org/piccolo2d/extras/swt/examples/FillShapeExample.java

Modified:
  
/piccolo2d.java/trunk/swt/src/main/java/org/piccolo2d/extras/swt/SWTGraphics2D.java


===
--- /dev/null
+++  
/piccolo2d.java/trunk/swt-examples/src/main/java/org/piccolo2d/extras/swt/examples/FillShapeExample.java	 
Fri Aug 27 09:46:51 2010

@@ -0,0 +1,142 @@
+/*
+ * Copyright (c) 2008-2010, 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.extras.swt.examples;
+
+import java.awt.Color;
+
+import org.eclipse.swt.layout.FillLayout;
+
+import org.eclipse.swt.widgets.Display;
+import org.eclipse.swt.widgets.Shell;
+
+import org.piccolo2d.extras.swt.PSWTCanvas;
+import org.piccolo2d.extras.swt.PSWTPath;
+
+
+/**
+ * Example demonstrating issue 187, general shapes are not filled
+ * correctly under SWT.
+ *
+ * See {...@link http://code.google.com/p/piccolo2d/issues/detail?id=187}
+ */
+public class FillShapeExample {
+
+/**
+ * Create a new fill shape example.
+ */
+public FillShapeExample() {
+super();
+}
+
+
+/**
+ * Create and open a new shell on the specified display.
+ *
+ * @param display display
+ * @return a new shell on the specified display
+ */
+public static Shell open(final Display display) {
+final Shell shell = new Shell(display);
+shell.setLayout(new FillLayout());
+
+final PSWTCanvas canvas = new PSWTCanvas(shell, 0);
+
+final PSWTPath path = PSWTPath.createPolyline(new float[] { 25.0f,  
75.0f, 25.0f }, new float[] { 100.0f, 200.0f, 300.0f });

+path.setPaint(Color.YELLOW);
+path.setStrokeColor(Color.BLUE);
+//path.setStrokePaint(Color.BLUE);
+
+final PSWTPath pathNullPaint = PSWTPath.createPolyline(new float[]  
{ 125.0f, 175.0f, 125.0f }, new float[] { 100.0f, 200.0f, 300.0f });

+pathNullPaint.setPaint(null);
+pathNullPaint.setStrokeColor(Color.BLUE);
+//pathNullPaint.setStrokePaint(Color.BLUE);
+
+//final PSWTPath pathNullStroke = PSWTPath.createPolyline(new  
float[] { 225.0f, 275.0f, 225.0f }, new float[] { 100.0f, 200.0f, 300.0f });

+//pathNullStroke.setPaint(Color.YELLOW);
+//pathNullStroke.setStroke(null);
+//pathNullStroke.setStrokeColor(Color.BLUE);
+//pathNullStroke.setStrokePaint(Color.BLUE);
+
+final PSWTPath pathNullStrokePaint = PSWTPath.createPolyline(new  
float[] { 325.0f, 375.0f, 325.0f }, new float[] { 100.0f, 200.0f, 300.0f });

+pathNullStrokePaint.setPaint(Color.YELLOW);
+pathNullStrokePaint.setStrokeColor(null);
+//pathNullStrokePaint.setStrokePaint(Color.BLUE);
+
+final PSWTPath rect = PSWTPath.createRectangle(25.0f, 400.0f,  
50.0f, 100.0f);

+rect.setPaint(Color.YELLOW);
+rect.setStrokeColor(Color.BLUE);
+//rect.setStrokePaint(Color.BLUE);
+
+final PSWTPath rectNullPaint = PSWTPath.createRectangle(125.0f,  
400.0f, 50.0f, 100.0f);

+rectNullPaint.setPaint(null);
+

[piccolo2d-dev] Re: Issue 187 in piccolo2d: general shapes are not filled correctly under SWT

2010-08-27 Thread piccolo2d

Updates:
Status: Fixed
Owner: heuermh

Comment #3 on issue 187 by heue...@gmail.com: general shapes are not filled  
correctly under SWT

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

Thank you for the patch.  Please review.

$ svn commit -m Issue 187 ; applying patch from berthold.daum at bdaum.de,  
adding example that demonstrates issue .

Transmitting file data ..
Committed revision 1055.

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


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

2010-08-27 Thread piccolo2d


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

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

In writing the example for Issue 187, I noticed that setStroke is missing  
and setStrokePaint is misnamed setStrokeColor.  Thought I should add those  
todos here.


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


[piccolo2d-dev] Re: Issue 152 in piccolo2d: Refactor PPath to use Path2D on JDK 1.6+

2010-08-27 Thread piccolo2d


Comment #11 on issue 152 by heue...@gmail.com: Refactor PPath to use Path2D  
on JDK 1.6+

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

$ svn commit -m Issue 152, Issue 153 ; merging ppath-refactoring branch to  
trunk, into new modules jdk16 and jdk16-examples .

...
Transmitting file data 
Committed revision 1054.

Please review.

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


[piccolo2d-dev] Re: Issue 179 in piccolo2d: event listeners are automatically created even if disabled

2010-08-27 Thread piccolo2d

Updates:
Labels: Toolkit-Piccolo2D.NET

Comment #1 on issue 179 by heue...@gmail.com: event listeners are  
automatically created even if disabled

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

(No comment was entered for this change.)

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


[piccolo2d-dev] [piccolo2d] r1056 committed - fixing a bug with text bounds in PText constructor, and making clickin...

2010-08-27 Thread piccolo2d

Revision: 1056
Author: allain.lalonde
Date: Fri Aug 27 13:54:17 2010
Log: fixing a bug with text bounds in PText constructor, and making  
clicking on PCanvas handle the event rather than bubbling it up to other  
scripts

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

Modified:
 /piccolo2d.js/trunk/piccolo2d.js

===
--- /piccolo2d.js/trunk/piccolo2d.jsThu Aug 26 12:57:21 2010
+++ /piccolo2d.js/trunk/piccolo2d.jsFri Aug 27 13:54:17 2010
@@ -511,12 +511,13 @@
 } else if (arg) {
 this.text = arg.text;
 this._super(arg);
+this.recomputeBounds();
 } else {
 throw Invalid argument for PText constructor;
 }
 },

-paint: function (ctx) {
+paint: function (ctx) {
 if (this.getGlobalFullBounds().height * ctx.displayScale   3)  
{

 return;
 }
@@ -534,6 +535,8 @@
   var metric = PText.hiddenContext.measureText(this.text);
   this.bounds.width = metric.width;
   this.bounds.height = this.text ? PText.fontSize : 0;
+  this.fullBounds = null;
+  this.globalFullBounds = null;
 }
 });
 PText.hiddenContext =  
document.createElement(canvas).getContext(2d);

@@ -744,6 +747,8 @@
 }

 function processMouseEvent(name, event) {
+event.preventDefault();
+
 var offset = $(canvas).offset(),
 x = event.pageX - offset.left,
 y = event.pageY - offset.top,

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