[piccolo2d-dev] Issue 143 in piccolo2d: SWTException: Failed to execute runnable (Invalid thread access) for PSWTCanvasTest on Mac OSX
Comment #2 on issue 143 by allain.lalonde: SWTException: Failed to execute runnable (Invalid thread access) for PSWTCanvasTest on Mac OSX http://code.google.com/p/piccolo2d/issues/detail?id=143 Great! As stupid as the request seems, can you try runnig it a number of times. Threading problems are notoriously random. -- You received this message because you are listed in the owner or CC fields of this issue, or because you starred this issue. 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] Issue 45 in piccolo2d: deploy maven site,
Updates: Owner: --- Comment #23 on issue 45 by allain.lalonde: deploy maven site, http://code.google.com/p/piccolo2d/issues/detail?id=45 (No comment was entered for this change.) -- You received this message because you are listed in the owner or CC fields of this issue, or because you starred this issue. 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] r847 committed - Edited wiki page through web user interface.
Revision: 847 Author: mr0...@mro.name Date: Wed Oct 28 16:22:41 2009 Log: Edited wiki page through web user interface. http://code.google.com/p/piccolo2d/source/detail?r=847 Modified: /wiki/TodosRelease1_3.wiki === --- /wiki/TodosRelease1_3.wiki Wed Oct 28 16:21:09 2009 +++ /wiki/TodosRelease1_3.wiki Wed Oct 28 16:22:41 2009 @@ -3,6 +3,8 @@ see also issue#43 +wiki:toc / + = Todos Release 1.3 (Java) = in approximately this order: --~--~-~--~~~---~--~~ Piccolo2D Developers Group: http://groups.google.com/group/piccolo2d-dev?hl=en -~--~~~~--~~--~--~---
[piccolo2d-dev] Issue 144 in piccolo2d: Updates for PSwing
Updates: Owner: allain.lalonde Comment #3 on issue 144 by allain.lalonde: Updates for PSwing http://code.google.com/p/piccolo2d/issues/detail?id=144 (No comment was entered for this change.) -- You received this message because you are listed in the owner or CC fields of this issue, or because you starred this issue. 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] Issue 43 in piccolo2d: Prepare the 1.3 release
Comment #24 on issue 43 by mr0...@mro.name: Prepare the 1.3 release http://code.google.com/p/piccolo2d/issues/detail?id=43 Releasenote issue list: For http://code.google.com/p/piccolo2d/wiki/TodosRelease1_3#For_the_Release_Notes I'd even just go with copying http://code.google.com/p/piccolo2d/issues/csv? can=1q=Milestone%3A1.3%20status%3DVerifiedcolspec=ID%20Type%20Component%20Summarysort=%20co mponent%20-type%20-summary -- You received this message because you are listed in the owner or CC fields of this issue, or because you starred this issue. 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] Issue 43 in piccolo2d: Prepare the 1.3 release
Comment #25 on issue 43 by mr0...@mro.name: Prepare the 1.3 release http://code.google.com/p/piccolo2d/issues/detail?id=43 (mind the CSV link bottom right on the issues listing at http://code.google.com/p/piccolo2d/wiki/TodosRelease1_3#For_the_Release_Notes) -- You received this message because you are listed in the owner or CC fields of this issue, or because you starred this issue. 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] Issue 123 in piccolo2d: PiccoloX uses Sun classes (sun.dc.path) that aren't in OpenJDK
Updates: Status: Verified Comment #5 on issue 123 by mr0...@mro.name: PiccoloX uses Sun classes (sun.dc.path) that aren't in OpenJDK http://code.google.com/p/piccolo2d/issues/detail?id=123 Zero hits of $ find . -name *.java | xargs grep sun\.dc\.path -- You received this message because you are listed in the owner or CC fields of this issue, or because you starred this issue. 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] Issue 45 in piccolo2d: deploy maven site,
Updates: Owner: allain.lalonde Comment #24 on issue 45 by mr0...@mro.name: deploy maven site, http://code.google.com/p/piccolo2d/issues/detail?id=45 Hi Allain, I'm really sorry to bitch again, but the nav disappears on module Project Information, compare http://dl.getdropbox.com/u/965005/piccolo2d.java/site-stage/piccolo2d-core/source-repository.html vs. http://jcurl.org/m2/site/jc-demo/0.7-SNAPSHOT/source-repository.html Can you try another shot? -- You received this message because you are listed in the owner or CC fields of this issue, or because you starred this issue. 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] Issue 45 in piccolo2d: deploy maven site,
Updates: Status: Verified Owner: --- Comment #25 on issue 45 by mr0...@mro.name: deploy maven site, http://code.google.com/p/piccolo2d/issues/detail?id=45 sorry, should have been a bit more patient and wait 'til dropbox sync's through. All looks fine - great job. THX -- You received this message because you are listed in the owner or CC fields of this issue, or because you starred this issue. 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] Issue 45 in piccolo2d: deploy maven site,
Comment #26 on issue 45 by allain.lalonde: deploy maven site, http://code.google.com/p/piccolo2d/issues/detail?id=45 To say the least, that's a relief :) I'd pulled up the two links and saw no obvious differences. I thought I'd misunderstood you again! :) -- You received this message because you are listed in the owner or CC fields of this issue, or because you starred this issue. 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] Issue 126 in piccolo2d: Update SWT dependency version
Comment #15 on issue 126 by mr0...@mro.name: Update SWT dependency version http://code.google.com/p/piccolo2d/issues/detail?id=126 From the OS X / jdk 1.5 side, I'd say Fixed + Verified. -- You received this message because you are listed in the owner or CC fields of this issue, or because you starred this issue. 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] Issue 143 in piccolo2d: SWTException: Failed to execute runnable (Invalid thread access) for PSWTCanvasTest on Mac OSX
Comment #4 on issue 143 by allain.lalonde: SWTException: Failed to execute runnable (Invalid thread access) for PSWTCanvasTest on Mac OSX http://code.google.com/p/piccolo2d/issues/detail?id=143 Fantastic! :) -- You received this message because you are listed in the owner or CC fields of this issue, or because you starred this issue. 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] r835 committed - adding additional constructor PInterpolatingActivity(long duration)
Revision: 835 Author: heuermh Date: Tue Oct 27 12:09:32 2009 Log: adding additional constructor PInterpolatingActivity(long duration) http://code.google.com/p/piccolo2d/source/detail?r=835 Added: /piccolo2d.java/trunk/core/src/test/java/edu/umd/cs/piccolo/activities/PInterpolatingActivityTest.java Modified: /piccolo2d.java/trunk/core/pom.xml /piccolo2d.java/trunk/core/src/main/java/edu/umd/cs/piccolo/activities/PInterpolatingActivity.java === --- /dev/null +++ /piccolo2d.java/trunk/core/src/test/java/edu/umd/cs/piccolo/activities/PInterpolatingActivityTest.java Tue Oct 27 12:09:32 2009 @@ -0,0 +1,48 @@ +/* + * Copyright (c) 2008-2009, 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 edu.umd.cs.piccolo.activities; + +import edu.umd.cs.piccolo.util.PUtil; + +import junit.framework.TestCase; + +/** + * Unit test for PInterpolatingActivity. + */ +public class PInterpolatingActivityTest extends TestCase { + +public void testConstructorLong() { +PInterpolatingActivity activity = new PInterpolatingActivity(1L); +assertNotNull(activity); +assertEquals(1L, activity.getDuration()); +assertEquals(1, activity.getLoopCount()); +assertEquals(PUtil.DEFAULT_ACTIVITY_STEP_RATE, activity.getStepRate()); +assertEquals(PInterpolatingActivity.SOURCE_TO_DESTINATION, activity.getMode()); +} +} === --- /piccolo2d.java/trunk/core/pom.xml Mon Oct 26 13:54:19 2009 +++ /piccolo2d.java/trunk/core/pom.xml Tue Oct 27 12:09:32 2009 @@ -288,19 +288,7 @@ groupIdorg.codehaus.mojo/groupId artifactIdjdepend-maven-plugin/artifactId /plugin - plugin -groupIdorg.codehaus.mojo/groupId -artifactIdfindbugs-maven-plugin/artifactId -version2.1/version -configuration - !-- http://wiki.hudson-ci.org/display/HUDSON/FindBugs+Plugin -- - findbugsXmlOutputtrue/findbugsXmlOutput - findbugsXmlWithMessagestrue/findbugsXmlWithMessages - xmlOutputtrue/xmlOutput - xmlOutputDirectorytarget/site/xmlOutputDirectory - includeTestsfalse/includeTests -/configuration - /plugin +!-- re-enable findbugs before committing -- plugin groupIdorg.codehaus.mojo/groupId artifactIdcobertura-maven-plugin/artifactId === --- /piccolo2d.java/trunk/core/src/main/java/edu/umd/cs/piccolo/activities/PInterpolatingActivity.java Tue Oct 13 09:36:51 2009 +++ /piccolo2d.java/trunk/core/src/main/java/edu/umd/cs/piccolo/activities/PInterpolatingActivity.java Tue Oct 27 12:09:32 2009 @@ -28,6 +28,8 @@ */ package edu.umd.cs.piccolo.activities; +import edu.umd.cs.piccolo.util.PUtil; + /** * bPInterpolatingActivity/b interpolates between two states (source and * destination) over the duration of the activity. The interpolation can be @@ -68,6 +70,15 @@ private boolean slowInSlowOut; private int loopCount; private boolean firstLoop; + +/** + * Constructs an interpolating activity that will last the duration given. + * + * @param duration duration in milliseconds of the entire activity + */ +public PInterpolatingActivity(final long duration) { +
[piccolo2d-dev] [piccolo2d] r836 committed - rolling back changes errantly committed in r835
Revision: 836 Author: heuermh Date: Tue Oct 27 12:11:44 2009 Log: rolling back changes errantly committed in r835 http://code.google.com/p/piccolo2d/source/detail?r=836 Modified: /piccolo2d.java/trunk/core/pom.xml === --- /piccolo2d.java/trunk/core/pom.xml Tue Oct 27 12:09:32 2009 +++ /piccolo2d.java/trunk/core/pom.xml Tue Oct 27 12:11:44 2009 @@ -288,7 +288,19 @@ groupIdorg.codehaus.mojo/groupId artifactIdjdepend-maven-plugin/artifactId /plugin -!-- re-enable findbugs before committing -- + plugin +groupIdorg.codehaus.mojo/groupId +artifactIdfindbugs-maven-plugin/artifactId +version2.1/version +configuration + !-- http://wiki.hudson-ci.org/display/HUDSON/FindBugs+Plugin -- + findbugsXmlOutputtrue/findbugsXmlOutput + findbugsXmlWithMessagestrue/findbugsXmlWithMessages + xmlOutputtrue/xmlOutput + xmlOutputDirectorytarget/site/xmlOutputDirectory + includeTestsfalse/includeTests +/configuration + /plugin plugin groupIdorg.codehaus.mojo/groupId artifactIdcobertura-maven-plugin/artifactId --~--~-~--~~~---~--~~ Piccolo2D Developers Group: http://groups.google.com/group/piccolo2d-dev?hl=en -~--~~~~--~~--~--~---
[piccolo2d-dev] [piccolo2d] r837 committed - Expanding new PSwing example.
Revision: 837 Author: allain.lalonde Date: Tue Oct 27 14:02:28 2009 Log: Expanding new PSwing example. http://code.google.com/p/piccolo2d/source/detail?r=837 Modified: /piccolo2d.java/trunk/examples/src/main/java/edu/umd/cs/piccolo/examples/pswing/PSwingExample3.java === --- /piccolo2d.java/trunk/examples/src/main/java/edu/umd/cs/piccolo/examples/pswing/PSwingExample3.java Fri Oct 23 13:53:33 2009 +++ /piccolo2d.java/trunk/examples/src/main/java/edu/umd/cs/piccolo/examples/pswing/PSwingExample3.java Tue Oct 27 14:02:28 2009 @@ -28,135 +28,208 @@ */ package edu.umd.cs.piccolo.examples.pswing; +import java.awt.Color; import java.awt.Dimension; -import java.awt.Graphics2D; - +import java.awt.Graphics; + +import javax.swing.ButtonGroup; import javax.swing.JButton; +import javax.swing.JCheckBox; +import javax.swing.JComponent; import javax.swing.JFrame; +import javax.swing.JLabel; import javax.swing.JPanel; +import javax.swing.JRadioButton; +import javax.swing.SwingUtilities; import edu.umd.cs.piccolo.PNode; import edu.umd.cs.piccolo.nodes.PText; -import edu.umd.cs.piccolo.util.PPaintContext; import edu.umd.cs.piccolox.pswing.PSwing; import edu.umd.cs.piccolox.pswing.PSwingCanvas; /** * User: Sam Reid Date: Jul 11, 2005 Time: 12:15:55 PM */ -public class PSwingExample3 extends JFrame { +public class PSwingExample3 extends JFrame { private static final long serialVersionUID = 1L; -private ExampleList exampleList; public PSwingExample3() { -setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); -PSwingCanvas canvas; +setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); // Set up basic frame setBounds(50, 50, 750, 750); setResizable(true); setBackground(null); setVisible(true); -canvas = new PSwingCanvas(); -canvas.setPanEventHandler(null); +final PSwingCanvas canvas = new PSwingCanvas(); getContentPane().add(canvas); -validate(); - -exampleList = new ExampleList(Button Examples); - -addButtonExamples(); - -canvas.getLayer().addChild(exampleList); - - canvas.getCamera().animateViewToCenterBounds(canvas.getLayer().getFullBounds(), true, 1200); +validate(); + +ExampleGrid exampleGrid = new ExampleGrid(3); +exampleGrid.addChild(createButtonExamples()); +exampleGrid.addChild(createSimpleComponentExamples()); +canvas.getLayer().addChild(exampleGrid); +SwingUtilities.invokeLater(new Runnable() { + +public void run() { + canvas.getCamera().animateViewToCenterBounds(canvas.getLayer().getFullBounds(), true, 1200); +} + +}); + +} + +private ExampleList createSimpleComponentExamples() { +ExampleList exampleList = new ExampleList(Simple Components); +exampleList.addExample(JLabel, new PSwing(new JLabel(JLabel Example))); +exampleList.addExample(JCheckBox , new PSwing(new JCheckBox())); + +JRadioButton radio1 = new JRadioButton(Radio Option 1); +JRadioButton radio2 = new JRadioButton(Radio Option 1); +ButtonGroup buttonGroup = new ButtonGroup(); +buttonGroup.add(radio1); +buttonGroup.add(radio2); +exampleList.addExample(RadioButton 1, radio1); +exampleList.addExample(RadioButton 2, radio2); + +JPanel examplePanel = new JPanel() { + +protected void paintComponent(Graphics g) { +super.paintComponent(g); +g.setColor(Color.RED); +g.fillRect(0, 0, getWidth(), getHeight()); + +} +}; +examplePanel.setPreferredSize(new Dimension(50, 50)); + +exampleList.addExample(Custom JPanel , examplePanel); +return exampleList; } -private void addButtonExamples() { -addButtonAloneNoSizing(); -addButtonAlone200x50(); -addButtonOnPanelNoSizing(); -addButtonOnPanel200x50(); -addButtonAlone10x10(); +private ExampleList createButtonExamples() { +ExampleList exampleList = new ExampleList(Button Examples); +addButtonAloneNoSizing(exampleList); +addButtonAlone200x50(exampleList); +addButtonOnPanelNoSizing(exampleList); +addButtonOnPanel200x50(exampleList); +addButtonAlone10x10(exampleList); +return exampleList; } -private void addButtonAloneNoSizing() { +private void addButtonAloneNoSizing(ExampleList exampleList) { JButton button = new JButton(Button); PSwing pButton = new PSwing(button); exampleList.addExample(Alone - No Sizing, pButton); } - -private void addButtonAlone200x50() { + +private void addButtonAlone200x50(ExampleList exampleList) { JButton button = new JButton(Button); button.setPreferredSize(new Dimension(200,
[piccolo2d-dev] [piccolo2d] r838 committed - adding Point2D getCenter() method to PSWTPath, with unit tests
Revision: 838 Author: heuermh Date: Tue Oct 27 14:15:02 2009 Log: adding Point2D getCenter() method to PSWTPath, with unit tests http://code.google.com/p/piccolo2d/source/detail?r=838 Added: /piccolo2d.java/trunk/swt/src/test/java/edu/umd/cs/piccolox/swt/PSWTPathTest.java Modified: /piccolo2d.java/trunk/swt/src/main/java/edu/umd/cs/piccolox/swt/PSWTPath.java === --- /dev/null +++ /piccolo2d.java/trunk/swt/src/test/java/edu/umd/cs/piccolox/swt/PSWTPathTest.java Tue Oct 27 14:15:02 2009 @@ -0,0 +1,104 @@ +/* + * Copyright (c) 2008-2009, 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 edu.umd.cs.piccolox.swt; + +import java.awt.geom.Point2D; + +import junit.framework.TestCase; + +import edu.umd.cs.piccolo.util.PBounds; + +/** + * Unit test for PSWTPath. + */ +public class PSWTPathTest extends TestCase { + +public void testCenterEmpty() { +PSWTPath path = new PSWTPath(); + +PBounds bounds = path.getBoundsReference(); +assertEquals(0.0d, bounds.getX(), 0.1d); +assertEquals(0.0d, bounds.getY(), 0.1d); +assertEquals(0.0d, bounds.getHeight(), 0.1d); +assertEquals(0.0d, bounds.getWidth(), 0.1d); + +Point2D center = path.getCenter(); +assertEquals(0.0d, center.getX(), 0.1d); +assertEquals(0.0d, center.getY(), 0.1d); +} + +public void testCenter() { +PSWTPath path = PSWTPath.createRectangle(10.0f, 20.0f, 100.0f, 200.0f); + +PBounds bounds = path.getBoundsReference(); +// hard to believe the tolerance in SWT is this poor +assertEquals(10.0d, bounds.getX(), 1.0d); +assertEquals(20.0d, bounds.getY(), 1.0d); +assertEquals(200.0d, bounds.getHeight(), 2.0d); +assertEquals(100.0d, bounds.getWidth(), 2.0d); + +Point2D center = path.getCenter(); +assertEquals(60.0d, center.getX(), 0.1d); +assertEquals(120.0d, center.getY(), 0.1d); +} + +public void testCenterScale() { +PSWTPath path = PSWTPath.createRectangle(10.0f, 20.0f, 100.0f, 200.0f); +path.scale(10.0d); + +PBounds bounds = path.getBoundsReference(); +// hard to believe the tolerance in SWT is this poor +assertEquals(10.0d, bounds.getX(), 1.0d); +assertEquals(20.0d, bounds.getY(), 1.0d); +assertEquals(200.0d, bounds.getHeight(), 2.0d); +assertEquals(100.0d, bounds.getWidth(), 2.0d); + +// center is calculated in terms of local bounds, not full bounds +Point2D center = path.getCenter(); +assertEquals(60.0d, center.getX(), 0.1d); +assertEquals(120.0d, center.getY(), 0.1d); +} + +public void testCenterRotate() { +PSWTPath path = PSWTPath.createRectangle(10.0f, 20.0f, 100.0f, 200.0f); +path.rotate(Math.PI / 8.0d); + +PBounds bounds = path.getBoundsReference(); +// hard to believe the tolerance in SWT is this poor +assertEquals(10.0d, bounds.getX(), 1.0d); +assertEquals(20.0d, bounds.getY(), 1.0d); +assertEquals(200.0d, bounds.getHeight(), 2.0d); +assertEquals(100.0d, bounds.getWidth(), 2.0d); + +// center is calculated in terms of local bounds, not full bounds +Point2D center = path.getCenter(); +assertEquals(60.0d, center.getX(),
[piccolo2d-dev] Issue 144 in piccolo2d: Updates for PSwing
Status: Accepted Owner: re...@colorado.edu Labels: Type-Patch Priority-High Toolkit-Piccolo2D.Java Effort-Medium Milestone-1.3 Usability New issue 144 by re...@colorado.edu: Updates for PSwing http://code.google.com/p/piccolo2d/issues/detail?id=144 When testing Piccolo r772 for compatibility with our projects, my collaborators and I identified several issues with PSwing, pointed out in issue #43. In comment 22, allain.lalonde said I have rolled back all changes to the way PSwing paints and sizes itself. However, we think this misses several of the improvements. We have been working on a branch of PSwing, based r390. We incorporated several of the changes that allain introduced, and have thoroughly tested it in many situations over many months. It's not perfect, but for our projects it's much better than either r772 or the reverted version circa r838. This includes about 10 nontrivial commits since r390, and a diff against trunk is difficult since the formatting has dramatically changed. I've attached it here to see what you think about integrating this into piccolo2d's trunk. If possible, it would be nice to have these changes in any 1.3 releases. Attachments: PSwing.java 23.3 KB -- You received this message because you are listed in the owner or CC fields of this issue, or because you starred this issue. 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] Issue 142 in piccolo2d: P3DRectTest test failure on Mac OSX PPC
Updates: Status: Verified Comment #6 on issue 142 by heuermh: P3DRectTest test failure on Mac OSX PPC http://code.google.com/p/piccolo2d/issues/detail?id=142 (No comment was entered for this change.) -- You received this message because you are listed in the owner or CC fields of this issue, or because you starred this issue. 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] r822 committed - Issue 133 ; cleaning up SWT package class-level javadoc
Revision: 822 Author: heuermh Date: Mon Oct 26 12:26:02 2009 Log: Issue 133 ; cleaning up SWT package class-level javadoc http://code.google.com/p/piccolo2d/source/detail?r=822 Modified: /piccolo2d.java/trunk/swt/src/main/java/edu/umd/cs/piccolox/swt/PSWTBoundsHandle.java /piccolo2d.java/trunk/swt/src/main/java/edu/umd/cs/piccolox/swt/PSWTCanvas.java /piccolo2d.java/trunk/swt/src/main/java/edu/umd/cs/piccolox/swt/PSWTHandle.java /piccolo2d.java/trunk/swt/src/main/java/edu/umd/cs/piccolox/swt/PSWTKeyEvent.java /piccolo2d.java/trunk/swt/src/main/java/edu/umd/cs/piccolox/swt/PSWTMouseEvent.java /piccolo2d.java/trunk/swt/src/main/java/edu/umd/cs/piccolox/swt/PSWTPath.java /piccolo2d.java/trunk/swt/src/main/java/edu/umd/cs/piccolox/swt/PSWTRoot.java /piccolo2d.java/trunk/swt/src/main/java/edu/umd/cs/piccolox/swt/PSWTSelectionEventHandler.java /piccolo2d.java/trunk/swt/src/main/java/edu/umd/cs/piccolox/swt/PSWTText.java /piccolo2d.java/trunk/swt/src/main/java/edu/umd/cs/piccolox/swt/SWTShapeManager.java /piccolo2d.java/trunk/swt/src/main/java/edu/umd/cs/piccolox/swt/SWTTimer.java === --- /piccolo2d.java/trunk/swt/src/main/java/edu/umd/cs/piccolox/swt/PSWTBoundsHandle.java Fri Oct 16 12:15:32 2009 +++ /piccolo2d.java/trunk/swt/src/main/java/edu/umd/cs/piccolox/swt/PSWTBoundsHandle.java Mon Oct 26 12:26:02 2009 @@ -45,12 +45,11 @@ import edu.umd.cs.piccolox.util.PBoundsLocator; /** - * bPBoundsHandle/b a handle for resizing the bounds of another node. If a + * bPSWTBoundsHandle/b a handle for resizing the bounds of another node. If a * bounds handle is dragged such that the other node's width or height becomes * negative then the each drag handle's locator assciated with that other node * is flipped so that they are attached to and dragging a different corner of * the nodes bounds. - * P * * @version 1.0 * @author Jesse Grosjean === --- /piccolo2d.java/trunk/swt/src/main/java/edu/umd/cs/piccolox/swt/PSWTCanvas.java Mon Oct 19 09:11:29 2009 +++ /piccolo2d.java/trunk/swt/src/main/java/edu/umd/cs/piccolox/swt/PSWTCanvas.java Mon Oct 26 12:26:02 2009 @@ -62,11 +62,10 @@ import edu.umd.cs.piccolo.util.PStack; /** - * bPSWTCanvas/b is a simple Swing component that can be used to embed - * Piccolo into a Java Swing application. Canvas's view the Piccolo scene graph + * bPSWTCanvas/b is an SWT Composite that can be used to embed + * Piccolo into a SWT application. Canvases view the Piccolo scene graph * through a camera. The canvas manages screen updates coming from this camera, * and forwards swing mouse and keyboard events to the camera. - * P * * @version 1.0 * @author Jesse Grosjean === --- /piccolo2d.java/trunk/swt/src/main/java/edu/umd/cs/piccolox/swt/PSWTHandle.java Mon Oct 19 09:11:29 2009 +++ /piccolo2d.java/trunk/swt/src/main/java/edu/umd/cs/piccolox/swt/PSWTHandle.java Mon Oct 26 12:26:02 2009 @@ -49,9 +49,9 @@ import edu.umd.cs.piccolox.util.PNodeLocator; /** - * bPHandle/b is used to modify some aspect of Piccolo when it is dragged. + * bPSWTHandle/b is used to modify some aspect of Piccolo when it is dragged. * Each handle has a PLocator that it uses to automatically position itself. See - * PBoundsHandle for an example of a handle that resizes the bounds of another + * PSWTBoundsHandle for an example of a handle that resizes the bounds of another * node. * P * === --- /piccolo2d.java/trunk/swt/src/main/java/edu/umd/cs/piccolox/swt/PSWTKeyEvent.java Mon Oct 19 09:11:29 2009 +++ /piccolo2d.java/trunk/swt/src/main/java/edu/umd/cs/piccolox/swt/PSWTKeyEvent.java Mon Oct 26 12:26:02 2009 @@ -37,7 +37,7 @@ import org.eclipse.swt.widgets.Widget; /** - * Overridden to wrap an SWT KeyEvent as a swing KeyEvent. + * Key event overridden to wrap an SWT KeyEvent as a swing KeyEvent. * * @author Lance Good */ === --- /piccolo2d.java/trunk/swt/src/main/java/edu/umd/cs/piccolox/swt/PSWTMouseEvent.java Mon Oct 19 09:11:29 2009 +++ /piccolo2d.java/trunk/swt/src/main/java/edu/umd/cs/piccolox/swt/PSWTMouseEvent.java Mon Oct 26 12:26:02 2009 @@ -37,7 +37,7 @@ import org.eclipse.swt.widgets.Widget; /** - * Overridden to wrap an SWT MouseEvent as a Swing MouseEvent. + * Mouse event overridden to wrap an SWT MouseEvent as a Swing MouseEvent. * * @author Lance Good */ === --- /piccolo2d.java/trunk/swt/src/main/java/edu/umd/cs/piccolox/swt/PSWTPath.java Mon Oct 19 11:09:39 2009 +++ /piccolo2d.java/trunk/swt/src/main/java/edu/umd/cs/piccolox/swt/PSWTPath.java Mon Oct 26 12:26:02 2009 @@ -49,21 +49,8 @@ import edu.umd.cs.piccolo.util.PPaintContext; /** - * bPPath/b is a
[piccolo2d-dev] [piccolo2d] r823 committed - Edited wiki page through web user interface.
Revision: 823 Author: heuermh Date: Mon Oct 26 12:27:26 2009 Log: Edited wiki page through web user interface. http://code.google.com/p/piccolo2d/source/detail?r=823 Modified: /wiki/TodosRelease1_3.wiki === --- /wiki/TodosRelease1_3.wiki Mon Oct 26 12:17:09 2009 +++ /wiki/TodosRelease1_3.wiki Mon Oct 26 12:27:26 2009 @@ -27,8 +27,6 @@ Issue 126 -Issue 133 - br/ The following issues are currently awaiting comment. Without feedback before the 1.3 release, they will have their version re-assigned to 1.4 or 2.0. @@ -103,6 +101,8 @@ Issue 128 +Issue 133 + Issue 137 Issue 138 --~--~-~--~~~---~--~~ Piccolo2D Developers Group: http://groups.google.com/group/piccolo2d-dev?hl=en -~--~~~~--~~--~--~---
[piccolo2d-dev] [piccolo2d] r824 committed - Edited wiki page through web user interface.
Revision: 824 Author: heuermh Date: Mon Oct 26 12:29:24 2009 Log: Edited wiki page through web user interface. http://code.google.com/p/piccolo2d/source/detail?r=824 Modified: /wiki/TodosRelease1_3.wiki === --- /wiki/TodosRelease1_3.wiki Mon Oct 26 12:27:26 2009 +++ /wiki/TodosRelease1_3.wiki Mon Oct 26 12:29:24 2009 @@ -216,7 +216,9 @@ # Graphs or tables showing decreases in FindBugs, PMD, and Checkstyle error/warnings since 1.2.1. Simply comparing 1.2.1 and 1.3 release tags would be sufficient, trend graphs would be cool - # Graph or table showing increase in unit test coverage since 1.2.1. + # Graph or table showing increase in unit test coverage since 1.2.1 + + # [http://clirr.sf.net Clirr] report showing API changes from 1.2.1 to 1.3 # List of new examples --~--~-~--~~~---~--~~ Piccolo2D Developers Group: http://groups.google.com/group/piccolo2d-dev?hl=en -~--~~~~--~~--~--~---
[piccolo2d-dev] [piccolo2d] r825 committed - Edited wiki page through web user interface.
Revision: 825 Author: heuermh Date: Mon Oct 26 12:30:22 2009 Log: Edited wiki page through web user interface. http://code.google.com/p/piccolo2d/source/detail?r=825 Modified: /wiki/TodosRelease1_3.wiki === --- /wiki/TodosRelease1_3.wiki Mon Oct 26 12:29:24 2009 +++ /wiki/TodosRelease1_3.wiki Mon Oct 26 12:30:22 2009 @@ -45,8 +45,6 @@ Issue 30 -Issue 31 - Issue 33 --~--~-~--~~~---~--~~ Piccolo2D Developers Group: http://groups.google.com/group/piccolo2d-dev?hl=en -~--~~~~--~~--~--~---
[piccolo2d-dev] [piccolo2d] r826 committed - Edited wiki page through web user interface.
Revision: 826 Author: heuermh Date: Mon Oct 26 13:12:11 2009 Log: Edited wiki page through web user interface. http://code.google.com/p/piccolo2d/source/detail?r=826 Modified: /wiki/TodosRelease1_3.wiki === --- /wiki/TodosRelease1_3.wiki Mon Oct 26 12:30:22 2009 +++ /wiki/TodosRelease1_3.wiki Mon Oct 26 13:12:11 2009 @@ -210,17 +210,17 @@ == For the Release Notes == - # One or two sentence description of each Enhancement fixed and verified since 1.2.1. Refer to the list of verified issues - - # Graphs or tables showing decreases in FindBugs, PMD, and Checkstyle error/warnings since 1.2.1. Simply comparing 1.2.1 and 1.3 release tags would be sufficient, trend graphs would be cool - - # Graph or table showing increase in unit test coverage since 1.2.1 - - # [http://clirr.sf.net Clirr] report showing API changes from 1.2.1 to 1.3 - - # List of new examples - - # List of developers contributors, refer to parent pom + * One or two sentence description of each Enhancement fixed and verified since 1.2.1. Refer to the list of verified issues + + * Graphs or tables showing decreases in FindBugs, PMD, and Checkstyle error/warnings since 1.2.1. Simply comparing 1.2.1 and 1.3 release tags would be sufficient, trend graphs would be cool + + * Graph or table showing increase in unit test coverage since 1.2.1 + + * [http://clirr.sf.net Clirr] report showing API changes from 1.2.1 to 1.3 + + * List of new examples + + * List of developers contributors, refer to parent pom == Optional == --~--~-~--~~~---~--~~ Piccolo2D Developers Group: http://groups.google.com/group/piccolo2d-dev?hl=en -~--~~~~--~~--~--~---
[piccolo2d-dev] [piccolo2d] r827 committed - Removing Core's Dependency on parent module.
Revision: 827 Author: allain.lalonde Date: Mon Oct 26 13:54:19 2009 Log: Removing Core's Dependency on parent module. http://code.google.com/p/piccolo2d/source/detail?r=827 Modified: /piccolo2d.java/trunk/core/pom.xml === --- /piccolo2d.java/trunk/core/pom.xml Fri Oct 16 12:45:27 2009 +++ /piccolo2d.java/trunk/core/pom.xml Mon Oct 26 13:54:19 2009 @@ -3,19 +3,87 @@ xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd; modelVersion4.0.0/modelVersion - parent -artifactIdpiccolo2d-parent/artifactId -groupIdorg.piccolo2d/groupId -version1.3-SNAPSHOT/version -relativePath../parent/pom.xml/relativePath - /parent artifactIdpiccolo2d-core/artifactId + groupIdorg.piccolo2d/groupId + version1.3-SNAPSHOT/version packagingbundle/packaging namePiccolo2D Core/name urlhttp://code.google.com/p/piccolo2d//url description A revolutionary way to create robust, full-featured graphical applications in Java and C#, with striking visual effects such as zooming, animation and multiple representations. - /description + /description + properties +!-- + http://docs.codehaus.org/display/MAVENUSER/POM+Element+for+Source+File+Encoding +-- +project.build.sourceEncodingUTF-8/project.build.sourceEncoding +httpbasehttp://www.piccolo2d.org/java/httpbase +httpsitebase${httpbase}/site/httpsitebase +!-- + ftpbaseftp://jcurl.org/ftpbase + ftpsitebase${ftpbase}/site/ftpsitebase +-- +scpbase + !-- +@TODO Will, is there ssh access to the website? Required for +artifact upload. + -- +/scpbase +scpsitebase + !-- +@TODO Will, is there ssh access to the website? Required for maven +site upload. + -- +/scpsitebase + /properties + issueManagement +systemGoogle Code/system +urlhttp://code.google.com/p/piccolo2d/issues/list/url + /issueManagement + inceptionYear1995/inceptionYear + ciManagement +systemhudson/system +urlhttp://allain.homelinux.org:2121//url + /ciManagement + mailingLists +mailingList + namePiccolo2D Announce/name + subscribe +http://groups.google.com/group/piccolo2d-announce/subscribe + /subscribe + postpiccolo2d-annou...@googlegroups.com/post + archive +http://groups.google.com/group/piccolo2d-announce + /archive +/mailingList +mailingList + namePiccolo2D Users/name + subscribe +http://groups.google.com/group/piccolo2d-users/subscribe + /subscribe + postpiccolo2d-us...@googlegroups.com/post + archive +http://groups.google.com/group/piccolo2d-users + /archive +/mailingList +mailingList + namePiccolo2D Dev/name + subscribe +http://groups.google.com/group/piccolo2d-dev/subscribe + /subscribe + postpiccolo2d-dev@googlegroups.com/post + archive +http://groups.google.com/group/piccolo2d-dev + /archive +/mailingList + /mailingLists + licenses +license + nameBSD PUBLIC LICENSE/name + urlhttp://opensource.org/licenses/bsd-license.php/url + distributionmanual/distribution +/license + /licenses scm connection scm:svn:http://piccolo2d.googlecode.com/svn/piccolo2d.java/trunk/core @@ -25,6 +93,138 @@ /developerConnection urlhttp://code.google.com/p/piccolo2d/source/browse/piccolo2d.java/trunk/core/url /scm + organization +namePiccolo2D/name +urlhttp://code.google.com/p/piccolo2d//url + /organization + developers +developer + idallain.lalonde/id + nameAllain Lalonde/name + roles +roledeveloper/role + /roles + emailall...@machete.ca/email + urlhttp://www.machete.ca/url + timezone-5/timezone +/developer +developer + idbederson/id + namebederson/name + roles +roledeveloper/role + /roles + timezone-9/timezone +/developer +developer + idheuermh/id + nameMichael L Heuer/name + roles +roledeveloper/role + /roles + timezone-6/timezone +/developer +developer + idjesse/id + namejesse/name + roles +roledeveloper/role + /roles + timezone-9/timezone +/developer +developer + idmr0...@mro.name/id + namemr0...@mro.name/name + roles +roledeveloper/role + /roles + timezone+1/timezone +/developer +developer + idre...@colorado.edu/id + namere...@colorado.edu/name + roles +roledeveloper/role + /roles + timezone-8/timezone +/developer +developer + ids...@browsecode.org/id + names...@browsecode.org/name + roles +roledeveloper/role + /roles + timezone-8/timezone +/developer + /developers + contributors +contributor
[piccolo2d-dev] [piccolo2d] r829 committed - Remove SWT dependency on parent module.
Revision: 829 Author: allain.lalonde Date: Mon Oct 26 14:12:59 2009 Log: Remove SWT dependency on parent module. http://code.google.com/p/piccolo2d/source/detail?r=829 Modified: /piccolo2d.java/trunk/swt/pom.xml === --- /piccolo2d.java/trunk/swt/pom.xml Fri Oct 23 19:36:56 2009 +++ /piccolo2d.java/trunk/swt/pom.xml Mon Oct 26 14:12:59 2009 @@ -3,13 +3,11 @@ xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd; modelVersion4.0.0/modelVersion - parent -artifactIdpiccolo2d-parent/artifactId -groupIdorg.piccolo2d/groupId -version1.3-SNAPSHOT/version -relativePath../parent/pom.xml/relativePath - /parent + artifactIdpiccolo2d-swt/artifactId + groupIdorg.piccolo2d/groupId + version1.3-SNAPSHOT/version + packagingbundle/packaging namePiccolo2D SWT/name urlhttp://code.google.com/p/piccolo2d//url @@ -30,8 +28,91 @@ /repository /repositories -- +properties +!-- + http://docs.codehaus.org/display/MAVENUSER/POM+Element+for+Source+File+Encoding +-- +project.build.sourceEncodingUTF-8/project.build.sourceEncoding +httpbasehttp://www.piccolo2d.org/java/httpbase +httpsitebase${httpbase}/site/httpsitebase +!-- + ftpbaseftp://jcurl.org/ftpbase + ftpsitebase${ftpbase}/site/ftpsitebase +-- +scpbase + !-- +@TODO Will, is there ssh access to the website? Required for +artifact upload. + -- +/scpbase +scpsitebase + !-- +@TODO Will, is there ssh access to the website? Required for maven +site upload. + -- +/scpsitebase + /properties + issueManagement +systemGoogle Code/system +urlhttp://code.google.com/p/piccolo2d/issues/list/url + /issueManagement + inceptionYear1995/inceptionYear + ciManagement +systemhudson/system +urlhttp://allain.homelinux.org:2121//url + /ciManagement + mailingLists +mailingList + namePiccolo2D Announce/name + subscribe +http://groups.google.com/group/piccolo2d-announce/subscribe + /subscribe + postpiccolo2d-annou...@googlegroups.com/post + archive +http://groups.google.com/group/piccolo2d-announce + /archive +/mailingList +mailingList + namePiccolo2D Users/name + subscribe +http://groups.google.com/group/piccolo2d-users/subscribe + /subscribe + postpiccolo2d-us...@googlegroups.com/post + archive +http://groups.google.com/group/piccolo2d-users + /archive +/mailingList +mailingList + namePiccolo2D Dev/name + subscribe +http://groups.google.com/group/piccolo2d-dev/subscribe + /subscribe + postpiccolo2d-dev@googlegroups.com/post + archive +http://groups.google.com/group/piccolo2d-dev + /archive +/mailingList + /mailingLists + licenses +license + nameBSD PUBLIC LICENSE/name + urlhttp://opensource.org/licenses/bsd-license.php/url + distributionmanual/distribution +/license + /licenses dependencies dependency + groupIdorg.piccolo2d/groupId + artifactIdpiccolo2d-extras/artifactId + version${project.version}/version +/dependency +dependency + groupIdjunit/groupId + artifactIdjunit/artifactId + version3.8.2/version + scopetest/scope +/dependency +dependency groupIdorg.piccolo2d/groupId artifactIdpiccolo2d-extras/artifactId version${project.version}/version @@ -53,6 +134,144 @@ /developerConnection urlhttp://code.google.com/p/piccolo2d/source/browse/piccolo2d.java/trunk/swt/url /scm + organization +namePiccolo2D/name +urlhttp://code.google.com/p/piccolo2d//url + /organization + developers +developer + idallain.lalonde/id + nameAllain Lalonde/name + roles +roledeveloper/role + /roles + emailall...@machete.ca/email + urlhttp://www.machete.ca/url + timezone-5/timezone +/developer +developer + idbederson/id + namebederson/name + roles +roledeveloper/role + /roles + timezone-9/timezone +/developer +developer + idheuermh/id + nameMichael L Heuer/name + roles +roledeveloper/role + /roles + timezone-6/timezone +/developer +developer + idjesse/id + namejesse/name + roles +roledeveloper/role + /roles + timezone-9/timezone +/developer +developer + idmr0...@mro.name/id + namemr0...@mro.name/name + roles +roledeveloper/role + /roles + timezone+1/timezone +/developer +developer + idre...@colorado.edu/id + namere...@colorado.edu/name + roles +roledeveloper/role + /roles + timezone-8/timezone +/developer +developer + ids...@browsecode.org/id +
[piccolo2d-dev] [piccolo2d] r830 committed - Remove SWT-Examples dependency on parent module.
Revision: 830 Author: allain.lalonde Date: Mon Oct 26 14:24:46 2009 Log: Remove SWT-Examples dependency on parent module. http://code.google.com/p/piccolo2d/source/detail?r=830 Modified: /piccolo2d.java/trunk/swt-examples/pom.xml === --- /piccolo2d.java/trunk/swt-examples/pom.xml Mon Oct 19 21:36:14 2009 +++ /piccolo2d.java/trunk/swt-examples/pom.xml Mon Oct 26 14:24:46 2009 @@ -3,26 +3,180 @@ xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd; modelVersion4.0.0/modelVersion - parent -artifactIdpiccolo2d-parent/artifactId -groupIdorg.piccolo2d/groupId -version1.3-SNAPSHOT/version -relativePath../parent/pom.xml/relativePath - /parent + artifactIdpiccolo2d-swt-examples/artifactId + groupIdorg.piccolo2d/groupId + version1.3-SNAPSHOT/version + packagingbundle/packaging namePiccolo2D SWT Examples/name + properties +!-- + http://docs.codehaus.org/display/MAVENUSER/POM+Element+for+Source+File+Encoding +-- +project.build.sourceEncodingUTF-8/project.build.sourceEncoding +httpbasehttp://www.piccolo2d.org/java/httpbase +httpsitebase${httpbase}/site/httpsitebase +!-- + ftpbaseftp://jcurl.org/ftpbase + ftpsitebase${ftpbase}/site/ftpsitebase +-- +scpbase + !-- +@TODO Will, is there ssh access to the website? Required for +artifact upload. + -- +/scpbase +scpsitebase + !-- +@TODO Will, is there ssh access to the website? Required for maven +site upload. + -- +/scpsitebase + /properties + url${httpsitebase}/${pom.artifactId}/${pom.version}/url + issueManagement +systemGoogle Code/system +urlhttp://code.google.com/p/piccolo2d/issues/list/url + /issueManagement + inceptionYear1995/inceptionYear + ciManagement +systemhudson/system +urlhttp://allain.homelinux.org:2121//url + /ciManagement + mailingLists +mailingList + namePiccolo2D Announce/name + subscribe +http://groups.google.com/group/piccolo2d-announce/subscribe + /subscribe + postpiccolo2d-annou...@googlegroups.com/post + archive +http://groups.google.com/group/piccolo2d-announce + /archive +/mailingList +mailingList + namePiccolo2D Users/name + subscribe +http://groups.google.com/group/piccolo2d-users/subscribe + /subscribe + postpiccolo2d-us...@googlegroups.com/post + archive +http://groups.google.com/group/piccolo2d-users + /archive +/mailingList +mailingList + namePiccolo2D Dev/name + subscribe +http://groups.google.com/group/piccolo2d-dev/subscribe + /subscribe + postpiccolo2d-dev@googlegroups.com/post + archive +http://groups.google.com/group/piccolo2d-dev + /archive +/mailingList + /mailingLists + licenses +license + nameBSD PUBLIC LICENSE/name + urlhttp://opensource.org/licenses/bsd-license.php/url + distributionmanual/distribution +/license + /licenses scm connectionscm:svn:http://piccolo2d.googlecode.com/svn/piccolo2d.java/trunk/swt-examples/connection developerConnectionscm:svn:https://piccolo2d.googlecode.com/svn/piccolo2d.java/trunk/swt-examples/developerConnection urlhttp://code.google.com/p/piccolo2d/source/browse/piccolo2d.java/trunk/swt-examples/url /scm + organization +namePiccolo2D/name +urlhttp://code.google.com/p/piccolo2d//url + /organization + developers +developer + idallain.lalonde/id + nameAllain Lalonde/name + roles +roledeveloper/role + /roles + emailall...@machete.ca/email + urlhttp://www.machete.ca/url + timezone-5/timezone +/developer +developer + idbederson/id + namebederson/name + roles +roledeveloper/role + /roles + timezone-9/timezone +/developer +developer + idheuermh/id + nameMichael L Heuer/name + roles +roledeveloper/role + /roles + timezone-6/timezone +/developer +developer + idjesse/id + namejesse/name + roles +roledeveloper/role + /roles + timezone-9/timezone +/developer +developer + idmr0...@mro.name/id + namemr0...@mro.name/name + roles +roledeveloper/role + /roles + timezone+1/timezone +/developer +developer + idre...@colorado.edu/id + namere...@colorado.edu/name + roles +roledeveloper/role + /roles + timezone-8/timezone +/developer +developer + ids...@browsecode.org/id + names...@browsecode.org/name + roles +roledeveloper/role + /roles + timezone-8/timezone +/developer + /developers + contributors +contributor + nameAlexander Kurtakov/name + emailakurta...@gmail.com/email +
[piccolo2d-dev] [piccolo2d] r831 committed - Removing inclusion of parent module from complete.
Revision: 831 Author: allain.lalonde Date: Mon Oct 26 14:40:40 2009 Log: Removing inclusion of parent module from complete. http://code.google.com/p/piccolo2d/source/detail?r=831 Modified: /piccolo2d.java/trunk/pom.xml === --- /piccolo2d.java/trunk/pom.xml Wed Oct 14 17:49:25 2009 +++ /piccolo2d.java/trunk/pom.xml Mon Oct 26 14:40:40 2009 @@ -2,13 +2,11 @@ xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd; modelVersion4.0.0/modelVersion - parent -artifactIdpiccolo2d-parent/artifactId -groupIdorg.piccolo2d/groupId -version1.3-SNAPSHOT/version -relativePath./parent/pom.xml/relativePath - /parent + artifactIdpiccolo2d-complete/artifactId + groupIdorg.piccolo2d/groupId + version1.3-SNAPSHOT/version + packagingpom/packaging namePiccolo2D/name description --~--~-~--~~~---~--~~ Piccolo2D Developers Group: http://groups.google.com/group/piccolo2d-dev?hl=en -~--~~~~--~~--~--~---
[piccolo2d-dev] Issue 10 in piccolo2d: PComboBox doesn't use Metal, Windows, and Motif look and feels
Updates: Status: WontFix Comment #5 on issue 10 by heuermh: PComboBox doesn't use Metal, Windows, and Motif look and feels http://code.google.com/p/piccolo2d/issues/detail?id=10 Marking as WontFix per email from Steve. -- You received this message because you are listed in the owner or CC fields of this issue, or because you starred this issue. 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] Issue 24 in piccolo2d: Keyboard focus doesn't work for multiple cameras
Updates: Labels: -Milestone-1.3 Milestone-2.0 Comment #5 on issue 24 by heuermh: Keyboard focus doesn't work for multiple cameras http://code.google.com/p/piccolo2d/issues/detail?id=24 Deferring to Milestone-2.0 per email from Steve. -- You received this message because you are listed in the owner or CC fields of this issue, or because you starred this issue. 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] Issue 30 in piccolo2d: Extra mouse movement events fired on mouse exit
Updates: Status: WontFix Comment #5 on issue 30 by heuermh: Extra mouse movement events fired on mouse exit http://code.google.com/p/piccolo2d/issues/detail?id=30 Marking as WontFix per email from Steve. -- You received this message because you are listed in the owner or CC fields of this issue, or because you starred this issue. 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] Issue 33 in piccolo2d: PSwing components not visible in testing frameworks
Updates: Labels: -Milestone-1.3 Milestone-2.0 Comment #4 on issue 33 by heuermh: PSwing components not visible in testing frameworks http://code.google.com/p/piccolo2d/issues/detail?id=33 Deferring to Milestone-2.0 per email from Steve. -- You received this message because you are listed in the owner or CC fields of this issue, or because you starred this issue. 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] Issue 143 in piccolo2d: SWTException: Failed to execute runnable (Invalid thread access) for PSWTCanvasTest on Mac OSX
Status: Accepted Owner: heuermh Labels: Type-Defect Priority-Critical Effort-Medium OpSys-OSX Toolkit-Piccolo2D.Java Component-SWT Milestone-1.3 New issue 143 by heuermh: SWTException: Failed to execute runnable (Invalid thread access) for PSWTCanvasTest on Mac OSX http://code.google.com/p/piccolo2d/issues/detail?id=143 Separate issue raised for PSWTCanvasTest unit test failure on Mac OSX as initially described in Issue 126, comments 11 and 13. -- You received this message because you are listed in the owner or CC fields of this issue, or because you starred this issue. 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] r834 committed - Edited wiki page through web user interface.
Revision: 834 Author: heuermh Date: Mon Oct 26 18:09:41 2009 Log: Edited wiki page through web user interface. http://code.google.com/p/piccolo2d/source/detail?r=834 Modified: /wiki/TodosRelease1_3.wiki === --- /wiki/TodosRelease1_3.wiki Mon Oct 26 18:05:35 2009 +++ /wiki/TodosRelease1_3.wiki Mon Oct 26 18:09:41 2009 @@ -27,6 +27,8 @@ Issue 126 +Issue 143 + br/ The following New issues have not yet been reviewed, Accepted, and assigned to a version. --~--~-~--~~~---~--~~ Piccolo2D Developers Group: http://groups.google.com/group/piccolo2d-dev?hl=en -~--~~~~--~~--~--~---
[piccolo2d-dev] Issue 90 in piccolo2d: Binary incompatible change from 1.2.1 in PInputEvent
Updates: Status: Verified Comment #7 on issue 90 by mr0...@mro.name: Binary incompatible change from 1.2.1 in PInputEvent http://code.google.com/p/piccolo2d/issues/detail?id=90 (No comment was entered for this change.) -- You received this message because you are listed in the owner or CC fields of this issue, or because you starred this issue. 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] Issue 23 in piccolo2d: remove child on PNode fails with NPE
Updates: Status: Verified Comment #5 on issue 23 by mr0...@mro.name: remove child on PNode fails with NPE http://code.google.com/p/piccolo2d/issues/detail?id=23 (No comment was entered for this change.) -- You received this message because you are listed in the owner or CC fields of this issue, or because you starred this issue. 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] Issue 41 in piccolo2d: Rephrase javadoc package comments
Updates: Status: WontFix Comment #7 on issue 41 by mr0...@mro.name: Rephrase javadoc package comments http://code.google.com/p/piccolo2d/issues/detail?id=41 (No comment was entered for this change.) -- You received this message because you are listed in the owner or CC fields of this issue, or because you starred this issue. 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] Issue 31 in piccolo2d: PActivity activityFinished gets called multiple times
Updates: Status: WontFix Comment #9 on issue 31 by allain.lalonde: PActivity activityFinished gets called multiple times http://code.google.com/p/piccolo2d/issues/detail?id=31 Since most think this shouldn't be fixed, I am marking as such. -- You received this message because you are listed in the owner or CC fields of this issue, or because you starred this issue. 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] Issue 31 in piccolo2d: PActivity activityFinished gets called multiple times
Comment #10 on issue 31 by allain.lalonde: PActivity activityFinished gets called multiple times http://code.google.com/p/piccolo2d/issues/detail?id=31 Since most think this shouldn't be fixed, I am marking as such. -- You received this message because you are listed in the owner or CC fields of this issue, or because you starred this issue. 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] r818 committed - Fixing new PMD warnings.
Revision: 818 Author: allain.lalonde Date: Sat Oct 24 08:03:14 2009 Log: Fixing new PMD warnings. http://code.google.com/p/piccolo2d/source/detail?r=818 Modified: /piccolo2d.java/trunk/core/src/main/java/edu/umd/cs/piccolo/PCanvas.java /piccolo2d.java/trunk/extras/src/main/java/edu/umd/cs/piccolox/pswing/PSwing.java === --- /piccolo2d.java/trunk/core/src/main/java/edu/umd/cs/piccolo/PCanvas.java Fri Oct 23 14:31:51 2009 +++ /piccolo2d.java/trunk/core/src/main/java/edu/umd/cs/piccolo/PCanvas.java Sat Oct 24 08:03:14 2009 @@ -35,7 +35,6 @@ import java.awt.Graphics2D; import java.awt.KeyEventPostProcessor; import java.awt.KeyboardFocusManager; -import java.awt.Rectangle; import java.awt.event.ActionListener; import java.awt.event.HierarchyEvent; import java.awt.event.HierarchyListener; === --- /piccolo2d.java/trunk/extras/src/main/java/edu/umd/cs/piccolox/pswing/PSwing.java Fri Oct 23 13:53:33 2009 +++ /piccolo2d.java/trunk/extras/src/main/java/edu/umd/cs/piccolox/pswing/PSwing.java Sat Oct 24 08:03:14 2009 @@ -32,7 +32,6 @@ import java.awt.Color; import java.awt.Component; import java.awt.Container; -import java.awt.Dimension; import java.awt.Font; import java.awt.Graphics2D; import java.awt.RenderingHints; @@ -54,10 +53,7 @@ import java.util.Arrays; import java.util.List; -import javax.swing.Icon; -import javax.swing.JButton; import javax.swing.JComponent; -import javax.swing.JLabel; import javax.swing.RepaintManager; import edu.umd.cs.piccolo.PCamera; --~--~-~--~~~---~--~~ Piccolo2D Developers Group: http://groups.google.com/group/piccolo2d-dev?hl=en -~--~~~~--~~--~--~---
[piccolo2d-dev] Issue 43 in piccolo2d: Prepare the 1.3 release
Comment #22 on issue 43 by mr0...@mro.name: Prepare the 1.3 release http://code.google.com/p/piccolo2d/issues/detail?id=43 @Sam: Please file new issues rather than adding them to this one. If the problems from #19 persist, can you open issues for them, please. -- You received this message because you are listed in the owner or CC fields of this issue, or because you starred this issue. 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] Issue 142 in piccolo2d: P3DRectTest test failure on Mac OSX PPC
Comment #1 on issue 142 by heuermh: P3DRectTest test failure on Mac OSX PPC http://code.google.com/p/piccolo2d/issues/detail?id=142 A more complete stack trace: java.io.NotSerializableException: java.awt.geom.GeneralPath at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1081) at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1375) at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1347) at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1290) at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1079) at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:302) at edu.umd.cs.piccolo.util.PObjectOutputStream.recordUnconditionallyWritten(PObjectOutputStream.java:168) at edu.umd.cs.piccolo.util.PObjectOutputStream.writeObjectTree(PObjectOutputStream.java:110) at edu.umd.cs.piccolo.util.PObjectOutputStream.toByteArray(PObjectOutputStream.java:83) at edu.umd.cs.piccolo.PNode.clone(PNode.java:872) at edu.umd.cs.piccolox.nodes.P3DRectTest.testClone(P3DRectTest.java:42) I'm not quite sure why this only happens on Mac OSX PPC with jdk 1.5. If GeneralPath is not serializable on that platform, shouldn't it also be not serializable on every other platform? -- You received this message because you are listed in the owner or CC fields of this issue, or because you starred this issue. 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] r806 committed - adding license headers for extras and swt unit tests
Revision: 806 Author: heuermh Date: Fri Oct 23 01:02:19 2009 Log: adding license headers for extras and swt unit tests http://code.google.com/p/piccolo2d/source/detail?r=806 Modified: /piccolo2d.java/trunk/extras/src/test/java/edu/umd/cs/piccolox/PAppletTest.java /piccolo2d.java/trunk/extras/src/test/java/edu/umd/cs/piccolox/PFrameTest.java /piccolo2d.java/trunk/extras/src/test/java/edu/umd/cs/piccolox/handles/PHandleTest.java /piccolo2d.java/trunk/extras/src/test/java/edu/umd/cs/piccolox/pswing/PComboBoxTest.java /piccolo2d.java/trunk/swt/src/test/java/edu/umd/cs/piccolox/swt/PSWTBoundsHandleTest.java /piccolo2d.java/trunk/swt/src/test/java/edu/umd/cs/piccolox/swt/PSWTCanvasTest.java /piccolo2d.java/trunk/swt/src/test/java/edu/umd/cs/piccolox/swt/PSWTHandleTest.java /piccolo2d.java/trunk/swt/src/test/java/edu/umd/cs/piccolox/swt/PSWTImageTest.java /piccolo2d.java/trunk/swt/src/test/java/edu/umd/cs/piccolox/swt/PSWTTextTest.java === --- /piccolo2d.java/trunk/extras/src/test/java/edu/umd/cs/piccolox/PAppletTest.java Mon Oct 19 07:28:52 2009 +++ /piccolo2d.java/trunk/extras/src/test/java/edu/umd/cs/piccolox/PAppletTest.java Fri Oct 23 01:02:19 2009 @@ -1,8 +1,40 @@ +/* + * Copyright (c) 2008-2009, 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 edu.umd.cs.piccolox; import junit.framework.TestCase; + import edu.umd.cs.piccolo.PCanvas; +/** + * Unit test for PApplet. + */ public class PAppletTest extends TestCase { private PApplet applet; === --- /piccolo2d.java/trunk/extras/src/test/java/edu/umd/cs/piccolox/PFrameTest.java Mon Oct 19 07:28:52 2009 +++ /piccolo2d.java/trunk/extras/src/test/java/edu/umd/cs/piccolox/PFrameTest.java Fri Oct 23 01:02:19 2009 @@ -1,10 +1,42 @@ +/* + * Copyright (c) 2008-2009, 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
[piccolo2d-dev] Issue 43 in piccolo2d: Prepare the 1.3 release
Comment #20 on issue 43 by allain.lalonde: Prepare the 1.3 release http://code.google.com/p/piccolo2d/issues/detail?id=43 Thank you very much for responding! I hope that we can work together to resolve your problems. To shed some light on the changes that were made. #1 and #2 stem from the work and subsequent workarounds to Issue 83. It seems that by painting to an image, rather than to the graphics context directly, the effects of antialiasing on the length of the rendered text were ignored by certain JComponents. If anti-aliasing is taken into account, it seems that the text is slightly larger but the bounds are not, causing swing to draw the same text, in the same shape with ellipsis. Rather than continue double buffering a push was made to disable them and try to get to fix the ellipse problems. Until now, we thought those fixes had worked. Apparently not. The modifications in reshape are an attempt to rule out some obvious ellipsis causing things, like the rendering a JLabel narrower than it's reported minimum width including its insets. In a further attempt to rule out some strange Graphics2D miscalculations of text widths, I'd added a enforceNoEllipsis method that measures the minimum allowable size for JLabel and JButtons given the font metrics of the current Graphics2D object. What happens if you run your tests with the render quality set to LOW? As for #3 and #4, wth? I'll try to write some stress tests for PSwing since it appears that our current examples aren't cutting it. I'm hesitant to roll back all of the changes, but I'll more than gladly do so if nothing turns up. Once again, thanks for getting back to us. I apologize for any inconvenience this is causing your team. -- You received this message because you are listed in the owner or CC fields of this issue, or because you starred this issue. 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] r807 committed - adding license headers for core unit tests
Revision: 807 Author: heuermh Date: Fri Oct 23 12:36:22 2009 Log: adding license headers for core unit tests http://code.google.com/p/piccolo2d/source/detail?r=807 Modified: /piccolo2d.java/trunk/core/src/test/java/edu/umd/cs/piccolo/MockPCamera.java /piccolo2d.java/trunk/core/src/test/java/edu/umd/cs/piccolo/MockPInputEventListener.java /piccolo2d.java/trunk/core/src/test/java/edu/umd/cs/piccolo/MockPropertyChangeListener.java /piccolo2d.java/trunk/core/src/test/java/edu/umd/cs/piccolo/PCameraTest.java /piccolo2d.java/trunk/core/src/test/java/edu/umd/cs/piccolo/PCanvasTest.java /piccolo2d.java/trunk/core/src/test/java/edu/umd/cs/piccolo/PInputManagerTest.java /piccolo2d.java/trunk/core/src/test/java/edu/umd/cs/piccolo/PLayerTest.java /piccolo2d.java/trunk/core/src/test/java/edu/umd/cs/piccolo/PNodeTest.java /piccolo2d.java/trunk/core/src/test/java/edu/umd/cs/piccolo/PRootTest.java /piccolo2d.java/trunk/core/src/test/java/edu/umd/cs/piccolo/PerformanceLog.java /piccolo2d.java/trunk/core/src/test/java/edu/umd/cs/piccolo/PerformanceTests.java /piccolo2d.java/trunk/core/src/test/java/edu/umd/cs/piccolo/SerializationTest.java /piccolo2d.java/trunk/core/src/test/java/edu/umd/cs/piccolo/activities/PTransformActivityTest.java /piccolo2d.java/trunk/core/src/test/java/edu/umd/cs/piccolo/event/MockPBasicInputEventHandler.java /piccolo2d.java/trunk/core/src/test/java/edu/umd/cs/piccolo/event/PBasicInputEventListenerTest.java /piccolo2d.java/trunk/core/src/test/java/edu/umd/cs/piccolo/event/PDragEventHandlerTest.java /piccolo2d.java/trunk/core/src/test/java/edu/umd/cs/piccolo/event/PInputEventFilterTest.java /piccolo2d.java/trunk/core/src/test/java/edu/umd/cs/piccolo/event/PInputEventTest.java /piccolo2d.java/trunk/core/src/test/java/edu/umd/cs/piccolo/event/PPanEventHandlerTest.java /piccolo2d.java/trunk/core/src/test/java/edu/umd/cs/piccolo/event/PZoomEventHandlerTest.java /piccolo2d.java/trunk/core/src/test/java/edu/umd/cs/piccolo/nodes/PImageTest.java /piccolo2d.java/trunk/core/src/test/java/edu/umd/cs/piccolo/nodes/PPathTest.java /piccolo2d.java/trunk/core/src/test/java/edu/umd/cs/piccolo/nodes/PTextTest.java /piccolo2d.java/trunk/core/src/test/java/edu/umd/cs/piccolo/util/PAffineTransformTest.java /piccolo2d.java/trunk/core/src/test/java/edu/umd/cs/piccolo/util/PBoundsTest.java /piccolo2d.java/trunk/core/src/test/java/edu/umd/cs/piccolo/util/PDebugTest.java /piccolo2d.java/trunk/core/src/test/java/edu/umd/cs/piccolo/util/PDimensionTest.java /piccolo2d.java/trunk/core/src/test/java/edu/umd/cs/piccolo/util/PObjectOutputStreamTest.java /piccolo2d.java/trunk/core/src/test/java/edu/umd/cs/piccolo/util/PPickPathTest.java /piccolo2d.java/trunk/core/src/test/java/edu/umd/cs/piccolo/util/PUtilTest.java === --- /piccolo2d.java/trunk/core/src/test/java/edu/umd/cs/piccolo/MockPCamera.java Fri Jul 31 14:04:44 2009 +++ /piccolo2d.java/trunk/core/src/test/java/edu/umd/cs/piccolo/MockPCamera.java Fri Oct 23 12:36:22 2009 @@ -1,5 +1,30 @@ -/** - * +/* + * Copyright (c) 2008-2009, 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 edu.umd.cs.piccolo; @@ -8,6 +33,9 @@ import edu.umd.cs.piccolo.util.PBounds; +/** + * Mock PCamera. + */
[piccolo2d-dev] [piccolo2d] r808 committed - making PCamera internally consistent with regards to layer references,...
Revision: 808 Author: heuermh Date: Fri Oct 23 13:36:43 2009 Log: making PCamera internally consistent with regards to layer references, best we can do without making related methods final http://code.google.com/p/piccolo2d/source/detail?r=808 Modified: /piccolo2d.java/trunk/core/src/main/java/edu/umd/cs/piccolo/PCamera.java /piccolo2d.java/trunk/core/src/test/java/edu/umd/cs/piccolo/PCameraTest.java === --- /piccolo2d.java/trunk/core/src/main/java/edu/umd/cs/piccolo/PCamera.java Tue Oct 20 14:02:49 2009 +++ /piccolo2d.java/trunk/core/src/main/java/edu/umd/cs/piccolo/PCamera.java Fri Oct 23 13:36:43 2009 @@ -336,12 +336,9 @@ *by this camera is empty */ public PBounds getUnionOfLayerFullBounds() { -// todo: this method is implemented inconsistently with regards to non-final methods -// a subclass might override getLayerCount and/or getLayer, thus this method should either -//use layers.size() and layers.get(index) or getLayerCount() and getLayer(index) final PBounds result = new PBounds(); -final int count = getLayerCount(); -for (int i = 0; i count; i++) { +final int size = layers.size(); +for (int i = 0; i size; i++) { final PLayer each = (PLayer) layers.get(i); result.add(each.getFullBoundsReference()); } @@ -375,11 +372,8 @@ * @param paintContext context in which painting occurs */ protected void paintCameraView(final PPaintContext paintContext) { -// todo: this method is implemented inconsistently with regards to non-final methods -// a subclass might override getLayerCount and/or getLayer, thus this method should either -//use layers.size() and layers.get(index) or getLayerCount() and getLayer(index) -final int count = getLayerCount(); -for (int i = 0; i count; i++) { +final int size = layers.size(); +for (int i = 0; i size; i++) { final PLayer each = (PLayer) layers.get(i); each.fullPaint(paintContext); } @@ -402,8 +396,9 @@ final Color boundsColor = Color.red; final Color fullBoundsColor = new Color(1.0f, 0f, 0f, 0.2f); -for (int i = 0; i getLayerCount(); i++) { -getLayer(i).getAllNodes(null, nodes); +final int size = layers.size(); +for (int i = 0; i size; i++) { +((PLayer) layers.get(i)).getAllNodes(null, nodes); } final Iterator i = getAllNodes(null, nodes).iterator(); @@ -521,11 +516,8 @@ *camera were picked */ protected boolean pickCameraView(final PPickPath pickPath) { -// todo: this method is implemented inconsistently with regards to non-final methods -// a subclass might override getLayerCount and/or getLayer, thus this method should either -//use layers.size() and layers.get(index) or getLayerCount() and getLayer(index) -final int count = getLayerCount(); -for (int i = count - 1; i = 0; i--) { +final int size = layers.size(); +for (int i = size - 1; i = 0; i--) { final PLayer each = (PLayer) layers.get(i); if (each.fullPick(pickPath)) { return true; === --- /piccolo2d.java/trunk/core/src/test/java/edu/umd/cs/piccolo/PCameraTest.java Fri Oct 23 12:36:22 2009 +++ /piccolo2d.java/trunk/core/src/test/java/edu/umd/cs/piccolo/PCameraTest.java Fri Oct 23 13:36:43 2009 @@ -35,6 +35,7 @@ import java.awt.geom.AffineTransform; import java.awt.image.BufferedImage; import java.io.IOException; +import java.util.Collection; import junit.framework.TestCase; import edu.umd.cs.piccolo.activities.PActivity; @@ -42,6 +43,7 @@ import edu.umd.cs.piccolo.util.PAffineTransform; import edu.umd.cs.piccolo.util.PBounds; import edu.umd.cs.piccolo.util.PDebug; +import edu.umd.cs.piccolo.util.PNodeFilter; import edu.umd.cs.piccolo.util.PPaintContext; import edu.umd.cs.piccolo.util.PPickPath; @@ -345,6 +347,90 @@ // expected } } + +public void testTooFewLayersCamera() { +PCamera tooFew = new TooFewLayersCamera(); +MockPLayer layer0 = new MockPLayer(); +MockPLayer layer1 = new MockPLayer(); +tooFew.addLayer(layer0); +tooFew.addLayer(layer1); +assertEquals(layer0, tooFew.getLayer(0)); +assertEquals(layer1, tooFew.getLayer(1)); +assertEquals(layer0, tooFew.getLayersReference().get(0)); +assertEquals(layer1, tooFew.getLayersReference().get(1)); +assertEquals(0, tooFew.indexOfLayer(layer0)); +assertEquals(0, tooFew.indexOfLayer(layer0)); + +// pickCameraView +PPickPath pickPath = new PPickPath(tooFew, new PBounds(0,
[piccolo2d-dev] [piccolo2d] r811 committed - Adding Tests to PSwing Event Handlers
Revision: 811 Author: allain.lalonde Date: Fri Oct 23 13:56:47 2009 Log: Adding Tests to PSwing Event Handlers http://code.google.com/p/piccolo2d/source/detail?r=811 Added: /piccolo2d.java/trunk/extras/src/test/java/edu/umd/cs/piccolox/pswing/PSwingEventHandlerTest.java /piccolo2d.java/trunk/extras/src/test/java/edu/umd/cs/piccolox/pswing/PSwingMouseEventTest.java Modified: /piccolo2d.java/trunk/extras/src/main/java/edu/umd/cs/piccolox/pswing/PSwingEventHandler.java /piccolo2d.java/trunk/extras/src/main/java/edu/umd/cs/piccolox/pswing/PSwingMouseEvent.java === --- /dev/null +++ /piccolo2d.java/trunk/extras/src/test/java/edu/umd/cs/piccolox/pswing/PSwingEventHandlerTest.java Fri Oct 23 13:56:47 2009 @@ -0,0 +1,11 @@ +package edu.umd.cs.piccolox.pswing; + +import junit.framework.TestCase; + +public class PSwingEventHandlerTest extends TestCase { + +public void testConstructorAcceptsNullTargetNode() { +PSwingCanvas canvas = new PSwingCanvas(); +PSwingEventHandler handler = new PSwingEventHandler(canvas, null); +} +} === --- /dev/null +++ /piccolo2d.java/trunk/extras/src/test/java/edu/umd/cs/piccolox/pswing/PSwingMouseEventTest.java Fri Oct 23 13:56:47 2009 @@ -0,0 +1,74 @@ +package edu.umd.cs.piccolox.pswing; + +import java.awt.event.MouseEvent; +import java.awt.event.MouseWheelEvent; + +import javax.swing.JComponent; +import javax.swing.JPanel; + +import junit.framework.TestCase; +import edu.umd.cs.piccolo.event.PInputEvent; + +public class PSwingMouseEventTest extends TestCase { + +public void testCreateMouseEventDoesNotAcceptNullPInputEvent() { +try { +MouseEvent mouseEvent = new MouseEvent(null, MouseEvent.MOUSE_MOVED, System.currentTimeMillis(), 0, 0, 0, +0, false); +PSwingMouseEvent.createMouseEvent(0, mouseEvent, null); +fail(Null PInputEvent should throw an exception); +} +catch (IllegalArgumentException iae) { +// expected exception +} +} + +public void testCreateMouseEventDoesNotAcceptNullMouseEvent() { +try { +PInputEvent event = new PInputEvent(null, null); +PSwingMouseEvent.createMouseEvent(0, null, event); +fail(Null MouseEvent should throw an exception); +} +catch (NullPointerException iae) { +// expected exception +} +} + +public void testCreateMouseEventReturnsValidMouseEventWhenParamsAreGood() { +JComponent src = new JPanel(); +PInputEvent piccoloEvent = new PInputEvent(null, null); +MouseEvent mouseEvent = new MouseEvent(src, MouseEvent.MOUSE_MOVED, System.currentTimeMillis(), 0, 0, 0, 0, +false); +PSwingEvent swingEvent = PSwingMouseEvent.createMouseEvent(0, mouseEvent, piccoloEvent); +assertNotNull(swingEvent); +} + +public void testCreateMouseEventReturnsPSwingMouseEventWhenGivenGenericID() { +JComponent src = new JPanel(); +PInputEvent piccoloEvent = new PInputEvent(null, null); +MouseEvent mouseEvent = new MouseEvent(src, 0, System.currentTimeMillis(), 0, 0, 0, 0, +false); +PSwingEvent swingEvent = PSwingMouseEvent.createMouseEvent(0, mouseEvent, piccoloEvent); +assertTrue(swingEvent instanceof PSwingMouseEvent); +} + +public void testCreateMouseEventReturnsPSwingMouseMotionEventWhenGivenMotionID() { +JComponent src = new JPanel(); +PInputEvent piccoloEvent = new PInputEvent(null, null); +MouseEvent mouseEvent = new MouseEvent(src, MouseEvent.MOUSE_MOVED, System.currentTimeMillis(), 0, 0, 0, 0, +false); +PSwingEvent swingEvent = PSwingMouseEvent.createMouseEvent(MouseEvent.MOUSE_MOVED, mouseEvent, piccoloEvent); +assertTrue(swingEvent instanceof PSwingMouseMotionEvent); +} + +public void testCreateMouseEventReturnsPSwingMouseWheelEventWhenGivenWheelID() { +JComponent src = new JPanel(); +PInputEvent piccoloEvent = new PInputEvent(null, null); +MouseWheelEvent mouseEvent = new MouseWheelEvent(src, MouseEvent.MOUSE_WHEEL, System.currentTimeMillis(), 0, 0, +0, 0, +false, MouseWheelEvent.WHEEL_UNIT_SCROLL, 10, 1); +PSwingEvent swingEvent = PSwingMouseEvent.createMouseEvent(MouseEvent.MOUSE_WHEEL, mouseEvent, piccoloEvent); +assertTrue(swingEvent instanceof PSwingMouseWheelEvent); +} + +} === --- /piccolo2d.java/trunk/extras/src/main/java/edu/umd/cs/piccolox/pswing/PSwingEventHandler.java Wed Oct 14 08:47:49 2009 +++ /piccolo2d.java/trunk/extras/src/main/java/edu/umd/cs/piccolox/pswing/PSwingEventHandler.java Fri Oct 23 13:56:47 2009 @@ -114,7 +114,7 @@ /** * Sets whether this event handler can fire events.
[piccolo2d-dev] Issue 12 in piccolo2d: Generics Support
Updates: Owner: allain.lalonde Comment #12 on issue 12 by allain.lalonde: Generics Support http://code.google.com/p/piccolo2d/issues/detail?id=12 (No comment was entered for this change.) -- You received this message because you are listed in the owner or CC fields of this issue, or because you starred this issue. 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] Issue 15 in piccolo2d: Events from PSwing components are not consumed, and cause other interactions on the canvas
Comment #5 on issue 15 by allain.lalonde: Events from PSwing components are not consumed, and cause other interactions on the canvas http://code.google.com/p/piccolo2d/issues/detail?id=15 I think this causes problems with the zoom handler. If you start zooming outside a swing component and then release the right mouse button over one, zooming is still active, even though the right mouse button has been released. -- You received this message because you are listed in the owner or CC fields of this issue, or because you starred this issue. 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] r809 committed - Rolling Back All paint changes to PSwing. It was working acceptably fo...
Revision: 809 Author: allain.lalonde Date: Fri Oct 23 13:53:33 2009 Log: Rolling Back All paint changes to PSwing. It was working acceptably for clients and the changes were breaking changes. A rollback is the simplest thing to do to get this into a working state again. Also, starting on a cleaner PSwing Example to really test all the edge cases we can. http://code.google.com/p/piccolo2d/source/detail?r=809 Added: /piccolo2d.java/trunk/examples/src/main/java/edu/umd/cs/piccolo/examples/pswing/PSwingExample3.java Modified: /piccolo2d.java/trunk/extras/src/main/java/edu/umd/cs/piccolox/pswing/PSwing.java /piccolo2d.java/trunk/extras/src/test/java/edu/umd/cs/piccolox/pswing/PSwingTest.java === --- /dev/null +++ /piccolo2d.java/trunk/examples/src/main/java/edu/umd/cs/piccolo/examples/pswing/PSwingExample3.java Fri Oct 23 13:53:33 2009 @@ -0,0 +1,162 @@ +/* + * Copyright (c) 2008-2009, 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 edu.umd.cs.piccolo.examples.pswing; + +import java.awt.Dimension; +import java.awt.Graphics2D; + +import javax.swing.JButton; +import javax.swing.JFrame; +import javax.swing.JPanel; + +import edu.umd.cs.piccolo.PNode; +import edu.umd.cs.piccolo.nodes.PText; +import edu.umd.cs.piccolo.util.PPaintContext; +import edu.umd.cs.piccolox.pswing.PSwing; +import edu.umd.cs.piccolox.pswing.PSwingCanvas; + +/** + * User: Sam Reid Date: Jul 11, 2005 Time: 12:15:55 PM + */ +public class PSwingExample3 extends JFrame { +private static final long serialVersionUID = 1L; +private ExampleList exampleList; + +public PSwingExample3() { +setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); +PSwingCanvas canvas; + +// Set up basic frame +setBounds(50, 50, 750, 750); +setResizable(true); +setBackground(null); +setVisible(true); +canvas = new PSwingCanvas(); +canvas.setPanEventHandler(null); +getContentPane().add(canvas); +validate(); + +exampleList = new ExampleList(Button Examples); + +addButtonExamples(); + +canvas.getLayer().addChild(exampleList); + + canvas.getCamera().animateViewToCenterBounds(canvas.getLayer().getFullBounds(), true, 1200); +} + +private void addButtonExamples() { +addButtonAloneNoSizing(); +addButtonAlone200x50(); +addButtonOnPanelNoSizing(); +addButtonOnPanel200x50(); +addButtonAlone10x10(); +} + +private void addButtonAloneNoSizing() { +JButton button = new JButton(Button); +PSwing pButton = new PSwing(button); +exampleList.addExample(Alone - No Sizing, pButton); +} + +private void addButtonAlone200x50() { +JButton button = new JButton(Button); +button.setPreferredSize(new Dimension(200, 50)); +PSwing pButton = new PSwing(button); +exampleList.addExample(Alone - 200x50, pButton); +} + +private void addButtonAlone10x10() { +JButton button = new JButton(Button); +button.setPreferredSize(new Dimension(10, 10)); +PSwing pButton = new PSwing(button); +exampleList.addExample(Alone - 10x10, pButton); +} + +private void addButtonOnPanelNoSizing() { +JButton button = new JButton(Button); +
[piccolo2d-dev] Issue 27 in piccolo2d: Animation quality change redraws the entire screen
Updates: Status: Fixed Comment #4 on issue 27 by allain.lalonde: Animation quality change redraws the entire screen http://code.google.com/p/piccolo2d/issues/detail?id=27 commit -m As per Issue # 27, I'm making the repainting of the canvas lazier C:/piccolo2d/piccolo2d.java/core/src/main/java/edu/umd/cs/piccolo/PCanvas.java Sending C:/piccolo2d/piccolo2d.java/core/src/main/java/edu/umd/cs/piccolo/PCanvas.java Transmitting file data ... Committed revision 812. -- You received this message because you are listed in the owner or CC fields of this issue, or because you starred this issue. 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] Issue 83 in piccolo2d: PSwing are fuzzy when scale!=1, due to buffering of the PSwing
Updates: Status: Accepted Comment #21 on issue 83 by allain.lalonde: PSwing are fuzzy when scale!=1, due to buffering of the PSwing http://code.google.com/p/piccolo2d/issues/detail?id=83 Re-opening due to recent rollback -- You received this message because you are listed in the owner or CC fields of this issue, or because you starred this issue. 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] r813 committed - Thanks to Nigel for pointing out: ...
Revision: 813 Author: allain.lalonde Date: Fri Oct 23 14:45:20 2009 Log: Thanks to Nigel for pointing out: I notice that the following line in TooltipExample.java final PNode n = event.getInputManager().getMouseOver().getPickedNode (); Could be rewritten simply as: final PNode n = event.getPickedNode(); http://code.google.com/p/piccolo2d/source/detail?r=813 Modified: /piccolo2d.java/trunk/examples/src/main/java/edu/umd/cs/piccolo/examples/TooltipExample.java === --- /piccolo2d.java/trunk/examples/src/main/java/edu/umd/cs/piccolo/examples/TooltipExample.java Tue Jul 28 12:46:54 2009 +++ /piccolo2d.java/trunk/examples/src/main/java/edu/umd/cs/piccolo/examples/TooltipExample.java Fri Oct 23 14:45:20 2009 @@ -84,7 +84,7 @@ } public void updateToolTip(final PInputEvent event) { -final PNode n = event.getInputManager().getMouseOver().getPickedNode(); +final PNode n = event.getPickedNode(); final String tooltipString = (String) n.getAttribute(tooltip); final Point2D p = event.getCanvasPosition(); --~--~-~--~~~---~--~~ Piccolo2D Developers Group: http://groups.google.com/group/piccolo2d-dev?hl=en -~--~~~~--~~--~--~---
[piccolo2d-dev] Issue 142 in piccolo2d: P3DRectTest test failure on Mac OSX PPC
Updates: Status: Accepted Owner: mr0...@mro.name Labels: Type-Defect Priority-High OpSys-All Effort-Medium Toolkit-Piccolo2D.Java Component-Extras Milestone-1.3 Comment #2 on issue 142 by mr0...@mro.name: P3DRectTest test failure on Mac OSX PPC http://code.google.com/p/piccolo2d/issues/detail?id=142 actually it's serializable not before jdk 1.6 no matter which platform. no: http://java.sun.com/j2se/1.4.2/docs/api/java/awt/geom/GeneralPath.html no: http://java.sun.com/j2se/1.5.0/docs/api/java/awt/geom/GeneralPath.html yes: http://java.sun.com/javase/6/docs/api/java/awt/geom/GeneralPath.html -- You received this message because you are listed in the owner or CC fields of this issue, or because you starred this issue. 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] Issue 126 in piccolo2d: Update SWT dependency version
Comment #11 on issue 126 by mr0...@mro.name: Update SWT dependency version http://code.google.com/p/piccolo2d/issues/detail?id=126 a mvn test on OSX 10.5.8 and java 1.5 against r814 gives on the terminal: --- T E S T S --- Running edu.umd.cs.piccolox.swt.PSWTCanvasTest /bin/sh: line 1: 13549 Segmentation fault /System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Home/bin/java -jar /var/folders/Db/DbyY+jnmE5WxYzhziUI6xk+++TI/-Tmp-/surefirebooter8685185704874463866.jar /var/folders/Db/DbyY+jnmE5WxYzhziUI6xk+++TI/-Tmp-/surefire5914287589753915066tmp /var/folders/Db/DbyY+jnmE5WxYzhziUI6xk+++TI/-Tmp-/surefire5104300702455126034tmp plus a funny core dump (see file) Attachments: coredump.txt 27.6 KB -- You received this message because you are listed in the owner or CC fields of this issue, or because you starred this issue. 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] Issue 45 in piccolo2d: deploy maven site,
Updates: Status: Accepted Labels: -Type-Task -Priority-Medium Type-Defect Priority-Critical Mergedinto: - Comment #22 on issue 45 by mr0...@mro.name: deploy maven site, http://code.google.com/p/piccolo2d/issues/detail?id=45 the maven site structure/navigation is broken. visit http://dl.getdropbox.com/u/965005/piccolo2d.java/site-stage/piccolo2d-complete/index.html (build from r814 moments ago), click Modules - Core and you'll loose the nav. -- You received this message because you are listed in the owner or CC fields of this issue, or because you starred this issue. 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] Issue 142 in piccolo2d: P3DRectTest test failure on Mac OSX PPC
Comment #3 on issue 142 by mr0...@mro.name: P3DRectTest test failure on Mac OSX PPC http://code.google.com/p/piccolo2d/issues/detail?id=142 add a marker in r815 -- You received this message because you are listed in the owner or CC fields of this issue, or because you starred this issue. 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] Issue 142 in piccolo2d: P3DRectTest test failure on Mac OSX PPC
Updates: Status: Fixed Comment #4 on issue 142 by mr0...@mro.name: P3DRectTest test failure on Mac OSX PPC http://code.google.com/p/piccolo2d/issues/detail?id=142 fixed in r816. -- You received this message because you are listed in the owner or CC fields of this issue, or because you starred this issue. 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] r817 committed - Issue 126 ; adding explicit versions for macosx and win32 x86 deps, wh...
Revision: 817 Author: heuermh Date: Fri Oct 23 19:36:56 2009 Log: Issue 126 ; adding explicit versions for macosx and win32 x86 deps, which were missing before; also adding hack for 3.5.0 dep versions, abusing an Apache SVN web interface URL as an external maven repo http://code.google.com/p/piccolo2d/source/detail?r=817 Modified: /piccolo2d.java/trunk/swt/pom.xml === --- /piccolo2d.java/trunk/swt/pom.xml Wed Oct 14 20:32:06 2009 +++ /piccolo2d.java/trunk/swt/pom.xml Fri Oct 23 19:36:56 2009 @@ -16,6 +16,20 @@ description A revolutionary way to create robust, full-featured graphical applications in Java and C#, with striking visual effects such as zooming, animation and multiple representations. /description +!-- + repositories +repository + idMaven default/id + nameApache repository/name + urlhttp://repo1.maven.org/maven2/url +/repository +repository + idApache Directory SVN Repo Cheat/id + nameApache Directory SVN Repo Cheat/name + urlhttps://svn.apache.org/repos/asf/directory/studio/trunk/repository/url +/repository + /repositories +-- dependencies dependency groupIdorg.piccolo2d/groupId @@ -25,6 +39,7 @@ dependency groupId${swt.groupId}/groupId artifactId${swt.artifactId}/artifactId +!-- version3.5.0.v3550b/version -- version3.3.0-v3346/version scopecompile/scope /dependency @@ -150,6 +165,7 @@ properties swt.groupIdorg.eclipse.swt.gtk.linux/swt.groupId swt.artifactIdx86_64/swt.artifactId +!--swt.version3.5.0.v3550b/swt.version -- swt.version3.3.0-v3346/swt.version /properties /profile @@ -164,6 +180,7 @@ properties swt.groupIdorg.eclipse.swt.gtk.linux/swt.groupId swt.artifactIdx86_64/swt.artifactId +!--swt.version3.5.0.v3550b/swt.version -- swt.version3.3.0-v3346/swt.version /properties /profile @@ -178,6 +195,7 @@ properties swt.groupIdorg.eclipse.swt.gtk.linux/swt.groupId swt.artifactIdx86/swt.artifactId +!--swt.version3.5.0.v3550b/swt.version -- swt.version3.3.0-v3346/swt.version /properties /profile @@ -192,6 +210,7 @@ properties swt.groupIdorg.eclipse.swt.gtk.linux/swt.groupId swt.artifactIdx86/swt.artifactId +!--swt.version3.5.0.v3550b/swt.version -- swt.version3.3.0-v3346/swt.version /properties /profile @@ -205,6 +224,8 @@ properties swt.groupIdorg.eclipse.swt.win32.win32/swt.groupId swt.artifactIdx86/swt.artifactId +!--swt.version3.5.0.v3550b/swt.version -- +swt.version3.3.0-v3346/swt.version /properties /profile !-- @@ -229,6 +250,8 @@ properties swt.groupIdorg.eclipse.swt.carbon/swt.groupId swt.artifactIdmacosx/swt.artifactId +!--swt.version3.5.0.v3550b/swt.version -- +swt.version3.3.0-v3346/swt.version /properties /profile /profiles --~--~-~--~~~---~--~~ Piccolo2D Developers Group: http://groups.google.com/group/piccolo2d-dev?hl=en -~--~~~~--~~--~--~---
[piccolo2d-dev] Issue 126 in piccolo2d: Update SWT dependency version
Comment #12 on issue 126 by heuermh: Update SWT dependency version http://code.google.com/p/piccolo2d/issues/detail?id=126 Just noticed that explicit versions were missing for the win32 and macosx platform dependencies. Please ignore the referred to hack for now. ;) $ svn commit -m Issue 126 ; adding explicit versions for macosx and win32 x86 deps, which were missing before; also adding hack for 3.5.0 dep versions, abusing an Apache SVN web interface URL as an external maven repo Sendingswt/pom.xml Transmitting file data . Committed revision 817. -- You received this message because you are listed in the owner or CC fields of this issue, or because you starred this issue. 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] Issue 126 in piccolo2d: Update SWT dependency version
Comment #13 on issue 126 by heuermh: Update SWT dependency version http://code.google.com/p/piccolo2d/issues/detail?id=126 Mac OSX PPC and java 1.5 still gives me the SWTException even with a dependency version of 3.5.0..., although now on mvn test, since SWT unit tests were added. Exception in thread Thread-29 org.eclipse.swt.SWTException: Failed to execute runnable (org.eclipse.swt.SWTException: Invalid thread access) We must have a threading issue in PSWTRoot that only manifests itself on this platform. Curious that I get a SWTException and Marcus gets a seg fault. -- You received this message because you are listed in the owner or CC fields of this issue, or because you starred this issue. 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] r797 committed - Fixing some FindBugs. Everything still seems to pass tests fine, so I'...
Revision: 797 Author: allain.lalonde Date: Thu Oct 22 19:28:10 2009 Log: Fixing some FindBugs. Everything still seems to pass tests fine, so I'm checking in. http://code.google.com/p/piccolo2d/source/detail?r=797 Modified: /piccolo2d.java/trunk/core/src/main/java/edu/umd/cs/piccolo/PCanvas.java /piccolo2d.java/trunk/core/src/main/java/edu/umd/cs/piccolo/PNode.java /piccolo2d.java/trunk/core/src/main/java/edu/umd/cs/piccolo/activities/PActivityScheduler.java /piccolo2d.java/trunk/extras/src/main/java/edu/umd/cs/piccolox/event/PNavigationEventHandler.java /piccolo2d.java/trunk/extras/src/main/java/edu/umd/cs/piccolox/event/PNotificationCenter.java /piccolo2d.java/trunk/extras/src/main/java/edu/umd/cs/piccolox/event/PStyledTextEventHandler.java /piccolo2d.java/trunk/extras/src/main/java/edu/umd/cs/piccolox/nodes/PStyledText.java /piccolo2d.java/trunk/extras/src/main/java/edu/umd/cs/piccolox/swing/PDefaultScrollDirector.java /piccolo2d.java/trunk/swt/src/main/java/edu/umd/cs/piccolox/swt/SWTTimerQueue.java === --- /piccolo2d.java/trunk/core/src/main/java/edu/umd/cs/piccolo/PCanvas.java Mon Oct 19 13:38:38 2009 +++ /piccolo2d.java/trunk/core/src/main/java/edu/umd/cs/piccolo/PCanvas.java Thu Oct 22 19:28:10 2009 @@ -688,12 +688,16 @@ /** * Prints the entire scene regardless of what the viewable area is. * - * @param g Graphics context onto which to paint the scene for printing + * @param graphics Graphics context onto which to paint the scene for printing */ -public void printAll(final Graphics g) { -final Graphics2D g2 = (Graphics2D) g; - -final PBounds clippingRect = new PBounds(g.getClipBounds()); +public void printAll(final Graphics graphics) { +if (!(graphics instanceof Graphics2D)) { +throw new IllegalArgumentException(Provided graphics context is not a Graphics2D object); +} + +final Graphics2D g2 = (Graphics2D) graphics; + +final PBounds clippingRect = new PBounds(graphics.getClipBounds()); clippingRect.expandNearestIntegerDimensions(); final PBounds originalCameraBounds = getCamera().getBounds(); === --- /piccolo2d.java/trunk/core/src/main/java/edu/umd/cs/piccolo/PNode.java Wed Oct 21 14:05:18 2009 +++ /piccolo2d.java/trunk/core/src/main/java/edu/umd/cs/piccolo/PNode.java Thu Oct 22 19:28:10 2009 @@ -2940,7 +2940,7 @@ } else { scale = image.getHeight() / nodeHeight; -} +} g2.scale(scale, scale); break; case FILL_STRATEGY_EXACT_FIT: @@ -2997,6 +2997,11 @@ if (pageIndex != 0) { return NO_SUCH_PAGE; } + +if (!(graphics instanceof Graphics2D)) { +throw new IllegalArgumentException(Provided graphics context is not a Graphics2D object); +} + final Graphics2D g2 = (Graphics2D) graphics; final PBounds imageBounds = getFullBounds(); === --- /piccolo2d.java/trunk/core/src/main/java/edu/umd/cs/piccolo/activities/PActivityScheduler.java Mon Oct 12 18:58:11 2009 +++ /piccolo2d.java/trunk/core/src/main/java/edu/umd/cs/piccolo/activities/PActivityScheduler.java Thu Oct 22 19:28:10 2009 @@ -55,9 +55,9 @@ */ public class PActivityScheduler implements Serializable { private static final long serialVersionUID = 1L; +private transient Timer activityTimer = null; private final PRoot root; -private final List activities; -private transient Timer activityTimer; +private final List activities; private boolean activitiesChanged; private boolean animating; private final ArrayList processingActivities; === --- /piccolo2d.java/trunk/extras/src/main/java/edu/umd/cs/piccolox/event/PNavigationEventHandler.java Tue Oct 13 20:14:37 2009 +++ /piccolo2d.java/trunk/extras/src/main/java/edu/umd/cs/piccolox/event/PNavigationEventHandler.java Thu Oct 22 19:28:10 2009 @@ -468,8 +468,7 @@ * @param camera the camera to be transformed */ protected void fillViewWhiteSpace(final PCamera camera) { -final PBounds rootBounds = camera.getRoot().getFullBoundsReference(); -PBounds viewBounds = camera.getViewBounds(); +final PBounds rootBounds = camera.getRoot().getFullBoundsReference(); if (rootBounds.contains(camera.getViewBounds())) { return; @@ -481,7 +480,8 @@ // center content. double dx = 0; double dy = 0; -viewBounds = camera.getViewBounds(); + +PBounds viewBounds = camera.getViewBounds(); if (viewBounds.getWidth() rootBounds.getWidth()) { // then center
[piccolo2d-dev] [piccolo2d] r798 committed - Edited wiki page through web user interface.
Revision: 798 Author: heuermh Date: Thu Oct 22 19:29:00 2009 Log: Edited wiki page through web user interface. http://code.google.com/p/piccolo2d/source/detail?r=798 Modified: /wiki/TodosRelease1_3.wiki === --- /wiki/TodosRelease1_3.wiki Wed Oct 21 13:01:53 2009 +++ /wiki/TodosRelease1_3.wiki Thu Oct 22 19:29:00 2009 @@ -70,6 +70,9 @@ Issue 133 +Issue 142 + + br/ The following issues were Fixed but not Verified since version 1.2.1. These should be marked as Verified before the 1.3 release, ideally by the original submitter, and then listed in the release notes. Developers, please verify those issues fixed by other developers! --~--~-~--~~~---~--~~ Piccolo2D Developers Group: http://groups.google.com/group/piccolo2d-dev?hl=en -~--~~~~--~~--~--~---
[piccolo2d-dev] [piccolo2d] r799 committed - replacing e accute accent characters with HTML entities in javadoc
Revision: 799 Author: heuermh Date: Thu Oct 22 19:39:46 2009 Log: replacing e accute accent characters with HTML entities in javadoc http://code.google.com/p/piccolo2d/source/detail?r=799 Modified: /piccolo2d.java/trunk/core/src/main/java/edu/umd/cs/piccolo/nodes/PPath.java === --- /piccolo2d.java/trunk/core/src/main/java/edu/umd/cs/piccolo/nodes/PPath.java Mon Oct 19 13:38:38 2009 +++ /piccolo2d.java/trunk/core/src/main/java/edu/umd/cs/piccolo/nodes/PPath.java Thu Oct 22 19:39:46 2009 @@ -510,14 +510,14 @@ /** * Adds a curved segment, defined by three new points, to the path by - * drawing a Bézier curve that intersects both the current coordinates and + * drawing a B#233;zier curve that intersects both the current coordinates and * the coordinates (x3, y3), using the specified points (x1, y1) and (x2, - * y2) as Bézier control points. + * y2) as B#233;zier control points. * - * @param x1 x component of first Bézier control point - * @param y1 y component of first Bézier control point - * @param x2 x component of second Bézier control point - * @param y2 y component of second Bézier control point + * @param x1 x component of first B#233;zier control point + * @param y1 y component of first B#233;zier control point + * @param x2 x component of second B#233;zier control point + * @param y2 y component of second B#233;zier control point * @param x3 x component of point through which curve must pass * @param y3 y component of point through which curve must pass */ --~--~-~--~~~---~--~~ Piccolo2D Developers Group: http://groups.google.com/group/piccolo2d-dev?hl=en -~--~~~~--~~--~--~---
[piccolo2d-dev] [piccolo2d] r802 committed - fixing javadoc warnings in extras
Revision: 802 Author: heuermh Date: Thu Oct 22 20:02:42 2009 Log: fixing javadoc warnings in extras http://code.google.com/p/piccolo2d/source/detail?r=802 Modified: /piccolo2d.java/trunk/extras/src/main/java/edu/umd/cs/piccolox/nodes/P3DRect.java /piccolo2d.java/trunk/extras/src/main/java/edu/umd/cs/piccolox/pswing/PSwing.java === --- /piccolo2d.java/trunk/extras/src/main/java/edu/umd/cs/piccolox/nodes/P3DRect.java Tue Oct 13 20:14:37 2009 +++ /piccolo2d.java/trunk/extras/src/main/java/edu/umd/cs/piccolox/nodes/P3DRect.java Thu Oct 22 20:02:42 2009 @@ -208,7 +208,7 @@ } /** - * @Deprecated since it has been moved to P3DRectExample. + * @deprecated since it has been moved to P3DRectExample. * * @param args Command line arguments */ === --- /piccolo2d.java/trunk/extras/src/main/java/edu/umd/cs/piccolox/pswing/PSwing.java Mon Oct 19 22:39:46 2009 +++ /piccolo2d.java/trunk/extras/src/main/java/edu/umd/cs/piccolox/pswing/PSwing.java Thu Oct 22 20:02:42 2009 @@ -312,7 +312,7 @@ } /** - * @deprecated by {...@link PSwing(JComponent)} + * @deprecated by {...@link #PSwing(JComponent)} * * @param swingCanvas canvas on which the PSwing node will be embedded * @param component not used @@ -403,7 +403,7 @@ /** * Return the greek threshold in scale. When the scale will be below this * threshold the Swing component is rendered as 'greek' instead of painting - * the Swing component. Defaults to {...@link DEFAULT_GREEK_THRESHOLD}. + * the Swing component. Defaults to {...@link #DEFAULT_GREEK_THRESHOLD}. * * @see PSwing#paintGreek(PPaintContext) * @return the current greek threshold in scale @@ -579,7 +579,16 @@ } } -/** {...@inheritdoc} */ +/** + * Read this node and all of its descendants in from the given input stream. + * + * @param in the stream to read from + * + * @throws IOException when an error occurs speaking to underlying + * ObjectOutputStream + * @throws ClassNotFoundException when a class is deserialized that no + * longer exists. This can happen if it's renamed or deleted. + */ private void readObject(final ObjectInputStream in) throws IOException, ClassNotFoundException { in.defaultReadObject(); init(component); --~--~-~--~~~---~--~~ Piccolo2D Developers Group: http://groups.google.com/group/piccolo2d-dev?hl=en -~--~~~~--~~--~--~---
[piccolo2d-dev] [piccolo2d] r804 committed - Rolling back deprecation from r765. Users shouldn't need to know that ...
Revision: 804 Author: allain.lalonde Date: Thu Oct 22 20:47:12 2009 Log: Rolling back deprecation from r765. Users shouldn't need to know that PFixedWidthFont is an adapter to an underlying BasicStroke. http://code.google.com/p/piccolo2d/source/detail?r=804 Modified: /piccolo2d.java/trunk/extras/src/main/java/edu/umd/cs/piccolox/util/PFixedWidthStroke.java === --- /piccolo2d.java/trunk/extras/src/main/java/edu/umd/cs/piccolox/util/PFixedWidthStroke.java Tue Oct 20 08:08:58 2009 +++ /piccolo2d.java/trunk/extras/src/main/java/edu/umd/cs/piccolox/util/PFixedWidthStroke.java Thu Oct 22 20:47:12 2009 @@ -81,7 +81,9 @@ } /** - * This should be public and the main constructor. + * Making this constructor public would break encapsulation. Users don't + * need to know that they are dealing with an adapter to an underlying + * stroke. * * @param stroke stroke being used by this PFixedWithStroke */ @@ -99,8 +101,6 @@ /** * Constructs a simple PFixedWidthStroke with the width provided. * - * @deprecated in favor of PFixedWidthStroke(BasicStroke stroke) - * * @param width desired width of the stroke */ public PFixedWidthStroke(final float width) { @@ -110,8 +110,6 @@ /** * Constructs a PFixedWidthStroke with the stroke properties provided. * - * @deprecated in favor of PFixedWidthStroke(BasicStroke stroke) - * * @param width width of stroke * @param cap cap to use in stroke * @param join join to use in stroke @@ -123,8 +121,6 @@ /** * Constructs a PFixedWidthStroke with the stroke properties provided. * - * @deprecated in favor of PFixedWidthStroke(BasicStroke stroke) - * * @param width width of stroke * @param cap cap to use in stroke * @param join join to use in stroke @@ -137,8 +133,6 @@ /** * Constructs a PFixedWidthStroke with the stroke properties provided. * - * @deprecated in favor of PFixedWidthStroke(BasicStroke stroke) - * * @param width width of stroke * @param cap cap to use in stroke * @param join join to use in stroke --~--~-~--~~~---~--~~ Piccolo2D Developers Group: http://groups.google.com/group/piccolo2d-dev?hl=en -~--~~~~--~~--~--~---
[piccolo2d-dev] Issue 65 in piccolo2d: Installation of Piccolo help broken under Vista
Updates: Status: Accepted Comment #2 on issue 65 by allain.lalonde: Installation of Piccolo help broken under Vista http://code.google.com/p/piccolo2d/issues/detail?id=65 I have a friend that can rebuild the project in VS.NET 2008. That should make it contain the correct version of the exe. Will hound him today. -- You received this message because you are listed in the owner or CC fields of this issue, or because you starred this issue. 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] Issue 65 in piccolo2d: Installation of Piccolo help broken under Vista
Updates: Status: Fixed Comment #3 on issue 65 by allain.lalonde: Installation of Piccolo help broken under Vista http://code.google.com/p/piccolo2d/issues/detail?id=65 Done. new freshly uploaded Piccolo2D.NET-Help-v2.zip contains an installer that uses the newest stable version of h2reg. My friend and I have both installed it and it doesn't complain. He has Windows 7 mind you and I have XP Pro. So I'm marking it as fixed and leaving it up to someone who uses Vista to verify it. I've update the link in the website to the new version too, but it could take 3 hours for the change to become active. -- You received this message because you are listed in the owner or CC fields of this issue, or because you starred this issue. 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] r790 committed - Adding missing java directory from play section
Revision: 790 Author: allain.lalonde Date: Wed Oct 21 12:19:01 2009 Log: Adding missing java directory from play section http://code.google.com/p/piccolo2d/source/detail?r=790 Added: /site/play/java /site/play/java/fisheyecalendar.html /site/play/java/piccolo2d-core-1.3-SNAPSHOT.jar /site/play/java/piccolo2d-examples-1.3-SNAPSHOT.jar /site/play/java/warnings.js Modified: /site/play/index.html === --- /dev/null +++ /site/play/java/fisheyecalendar.htmlWed Oct 21 12:19:01 2009 @@ -0,0 +1,121 @@ +html lang='en' xml:lang='en' xmlns='http://www.w3.org/1999/xhtml' +head + meta name='generator' content= + 'HTML Tidy for Linux/x86 (vers 7 December 2008), see www.w3.org' / + meta content='text/html; charset=us-ascii' http-equiv='Content-Type' / + meta name='description' content='Home Page for the Piccolo2D project.' / + meta name='format' content='text/html' / + meta name='keywords' content= + 'piccolo2d, piccolo2d.net, piccolo, piccolo.net, zoomable, zui, user interfaces, human-computer interaction, HCI, visualization, education' / + meta name='relation' content='(contained in)=http://www.piccolo2d.org' / + + titlePiccolo2D - Play - Fisheye Calendar/title + link href='../../piccolo2d.css' rel='stylesheet' type='text/css' / +/head + +body onload='showWarnings();' + div id='navigation' +!-- +this navigation node is auto-generated and injected +by the script tools/inject_navigation.rb + +DO NOT EDIT IT MANUALLY!!! +-- + +p class='header'a href='../../index.html'img src='../../images/Piccolo2D-Logo-small.png' +alt='Piccolo2D Logo' //a/p + +ul + li +a href='../../index.html'Piccolo2Dnbsp;Home/a + +ul + li +a href='../../play/index.html'Play/a + +ul + lia href='../../play/java/fisheyecalendar.html' class= + 'selected'Javanbsp;Fisheyenbsp;Calendar/a/li + + lia href= + '../../play/dotnet/fisheyecalendar.html'.NETnbsp;Fisheyenbsp;Calendar/a/li + + lia href='../../play/dotnet/grapheditor.html'.NETnbsp;Graphnbsp;Editor/a/li + + lia href= + '../../play/dotnet/presentation.html'.NETnbsp;Presentationnbsp;Tool/a/li +/ul + /li + + lia href='../../learn/index.html'Learn/a/li + + lia href='../../download.html'Download/a/li + + lia href='../../community.html'Community/a/li + + lia href='../../applications/index.html'Applications/a/li + + lia href='../../press.html'Press/a/li + + lia href='../../sponsors.html'Sponsors/a/li +/ul + /li +/ul!-- +p +img src='../../images/giny-small.png' alt='a nice graph' / +/p +-- + +p class='bugreport'a href= + 'http://code.google.com/p/piccolo2d/issues/entry?template=User%20defect%20report'Found a +Typo?/a/p + +p class='validators'a href='http://validator.w3.org/check/referer'img src= +'http://www.w3.org/Icons/valid-xhtml10-blue' alt='Valid XHTML 1.0!' style= +'border:0;width:88px;height:31px' //a a href= +'http://jigsaw.w3.org/css-validator/check/referer'img src= +'http://www.w3.org/Icons/valid-css-blue' alt='Valid CSS1!' style= +'border:0;width:88px;height:31px' //a/p + /div + + div id='main' +div id='main-head' + h1Play with Piccolo2D/h1 + + pSo you've visited the a href='../../learn/index.html'Learning Center/a and you're + itching to see Piccolo2D in action. Here you'll find cool demos to try out for yourself./p +/div + +h2Fisheye Calendar/h2 + +p class='preamble'A simple tabular fisheye application/p + +div id='Applet' + object height='400' align='middle' classid='clsid:8AD9C840-044E-11D1-B3E9-00805F499D93' + width='300' +param name='type' value='application/x-java-applet;version=1.5' / +param name='CODEBASE' value='./' / +param name='CODE' value= +'edu/umd/cs/piccolo/examples/fisheye/TabularFisheyeApplet.class' / +param name='NAME' value='edu.umd.cs.piccolo.examples.fisheye.TabularFisheyeApplet' / +param name='ARCHIVE' value= +'piccolo2d-core-1.3-SNAPSHOT.jar,piccolo2d-examples-1.3-SNAPSHOT.jar' / +commentembed code='edu.umd.cs.piccolo.examples.fisheye.TabularFisheyeApplet' archive= +'piccolo2d-core-1.3-SNAPSHOT.jar,piccolo2d-examples-1.3-SNAPSHOT.jar' type= +'application/x-java-applet;version=1.5' height='400' align='middle' width='300' codebase= +'./' //comment noembedError Java 1.5 not supported/noembed + /objectbr / + a href='../../learn/fisheye.html'Learn/a how to build this interface. + + ul +liClick on any day to give that day focus./li + +liClick on an expanded day to remove the focus./li + /ul +/div + /divscript src='warnings.js' type='text/javascript' +//![CDATA[ +//]] + /script +/body +/html
[piccolo2d-dev] Issue 141 in piccolo2d: Setting PFrame size in initialize() does not resize canvas
Updates: Status: WontFix Comment #2 on issue 141 by heuermh: Setting PFrame size in initialize() does not resize canvas http://code.google.com/p/piccolo2d/issues/detail?id=141 After further review, this happens only on Windows when running FrameCanvasSizeBugExample as a Java Application from within Eclipse. The example works fine for me on 64-bit linux with sun-jdk 1.6, 32-bit linux with open-jdk 1.6, and Windows with JDKs 1.5+ outside of Eclipse. -- You received this message because you are listed in the owner or CC fields of this issue, or because you starred this issue. 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] r791 committed - Edited wiki page through web user interface.
Revision: 791 Author: heuermh Date: Wed Oct 21 13:01:53 2009 Log: Edited wiki page through web user interface. http://code.google.com/p/piccolo2d/source/detail?r=791 Modified: /wiki/TodosRelease1_3.wiki === --- /wiki/TodosRelease1_3.wiki Tue Oct 20 20:59:48 2009 +++ /wiki/TodosRelease1_3.wiki Wed Oct 21 13:01:53 2009 @@ -32,6 +32,10 @@ Issue 41 +Issue 88 + +Issue 106 + br/ The following issues are currently awaiting comment. Without feedback before the 1.3 release, they will have their version re-assigned to 1.4 or 2.0. @@ -66,8 +70,6 @@ Issue 133 -Issue 141 - br/ The following issues were Fixed but not Verified since version 1.2.1. These should be marked as Verified before the 1.3 release, ideally by the original submitter, and then listed in the release notes. Developers, please verify those issues fixed by other developers! @@ -97,16 +99,12 @@ Issue 79 -Issue 88 - Issue 90 Issue 99 Issue 101 -Issue 106 - Issue 109 Issue 111 --~--~-~--~~~---~--~~ Piccolo2D Developers Group: http://groups.google.com/group/piccolo2d-dev?hl=en -~--~~~~--~~--~--~---
[piccolo2d-dev] Issue 88 in piccolo2d: toImage doesn't return an image of the proper size
Updates: Status: Fixed Comment #9 on issue 88 by allain.lalonde: toImage doesn't return an image of the proper size http://code.google.com/p/piccolo2d/issues/detail?id=88 Fixed in r792 and r793. Translation of node was being applied unnecessarily and with the wrong magnification resulting in node being off the images canvas. -- You received this message because you are listed in the owner or CC fields of this issue, or because you starred this issue. 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] Issue 106 in piccolo2d: toImage array is too simple in its fill behaviour
Updates: Status: Fixed Comment #7 on issue 106 by allain.lalonde: toImage array is too simple in its fill behaviour http://code.google.com/p/piccolo2d/issues/detail?id=106 (No comment was entered for this change.) -- You received this message because you are listed in the owner or CC fields of this issue, or because you starred this issue. 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] Issue 41 in piccolo2d: Rephrase javadoc package comments
Comment #6 on issue 41 by allain.lalonde: Rephrase javadoc package comments http://code.google.com/p/piccolo2d/issues/detail?id=41 I'm not for this since clicking on a package in the javadocs and expecting helpful easy to read documentation would hardly be met by ariving at a single word Activities -- You received this message because you are listed in the owner or CC fields of this issue, or because you starred this issue. 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] Issue 88 in piccolo2d: toImage doesn't return an image of the proper size
Comment #12 on issue 88 by allain.lalonde: toImage doesn't return an image of the proper size http://code.google.com/p/piccolo2d/issues/detail?id=88 I was able to reproduce the bug with OpenJDK on my Ubuntu box, but I think it's unrelated to the toImage code. To test this out yourself, just set the scale of the aspectCover PText to 10 and run the toImage Example. The label shouldn't even appear on screen. It seems that when the font gets too big, OpenJDK doesn't bother rendering them. Yippee! Groan. -- You received this message because you are listed in the owner or CC fields of this issue, or because you starred this issue. 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] r757 committed - Some low hanging CheckStyle fruit.
Revision: 757 Author: allain.lalonde Date: Mon Oct 19 23:13:22 2009 Log: Some low hanging CheckStyle fruit. http://code.google.com/p/piccolo2d/source/detail?r=757 Modified: /piccolo2d.java/trunk/extras/src/main/java/edu/umd/cs/piccolox/util/PFixedWidthStroke.java /piccolo2d.java/trunk/extras/src/main/java/edu/umd/cs/piccolox/util/ShadowUtils.java /piccolo2d.java/trunk/swt/src/main/java/edu/umd/cs/piccolox/swt/SWTGraphics2D.java === --- /piccolo2d.java/trunk/extras/src/main/java/edu/umd/cs/piccolox/util/PFixedWidthStroke.java Wed Oct 14 08:47:49 2009 +++ /piccolo2d.java/trunk/extras/src/main/java/edu/umd/cs/piccolox/util/PFixedWidthStroke.java Mon Oct 19 23:13:22 2009 @@ -112,8 +112,8 @@ } public PFixedWidthStroke(final float width, final int cap, final int join, final float miterlimit, -final float[] dash, final float dash_phase) { -this(new BasicStroke(width, cap, join, miterlimit, dash, dash_phase)); +final float[] dash, final float dashPhase) { +this(new BasicStroke(width, cap, join, miterlimit, dash, dashPhase)); } /** === --- /piccolo2d.java/trunk/extras/src/main/java/edu/umd/cs/piccolox/util/ShadowUtils.java Mon Oct 19 07:28:52 2009 +++ /piccolo2d.java/trunk/extras/src/main/java/edu/umd/cs/piccolox/util/ShadowUtils.java Mon Oct 19 23:13:22 2009 @@ -124,9 +124,9 @@ double sum = 0.0d; for (int x = 0; x w; x++) { -int xr2 = (x-r) * (x-r); +int xr2 = (x - r) * (x - r); for (int y = 0; y w; y++) { -int yr2 = (y-r) * (y-r); +int yr2 = (y - r) * (y - r); kernel[x * w + y] = (float) (Math.pow(Math.E, -(yr2 + xr2) / m) / n); sum += kernel[x * w + y]; } === --- /piccolo2d.java/trunk/swt/src/main/java/edu/umd/cs/piccolox/swt/SWTGraphics2D.java Mon Oct 19 11:14:19 2009 +++ /piccolo2d.java/trunk/swt/src/main/java/edu/umd/cs/piccolox/swt/SWTGraphics2D.java Mon Oct 19 23:13:22 2009 @@ -452,14 +452,14 @@ } /** {...@inheritdoc} */ -public void transform(final AffineTransform Tx) { -transform.concatenate(Tx); +public void transform(final AffineTransform srcTransform) { +transform.concatenate(srcTransform); updateSWTTransform(); } /** {...@inheritdoc} */ -public void setTransform(final AffineTransform Tx) { -transform = (AffineTransform) Tx.clone(); +public void setTransform(final AffineTransform newTransform) { +transform = (AffineTransform) newTransform.clone(); updateSWTTransform(); } --~--~-~--~~~---~--~~ Piccolo2D Developers Group: http://groups.google.com/group/piccolo2d-dev?hl=en -~--~~~~--~~--~--~---
[piccolo2d-dev] [piccolo2d] r759 committed - Edited wiki page through web user interface.
Revision: 759 Author: mr0...@mro.name Date: Tue Oct 20 08:00:30 2009 Log: Edited wiki page through web user interface. http://code.google.com/p/piccolo2d/source/detail?r=759 Modified: /wiki/RoadMap.wiki === --- /wiki/RoadMap.wiki Thu Jul 31 06:26:16 2008 +++ /wiki/RoadMap.wiki Tue Oct 20 08:00:30 2009 @@ -5,7 +5,7 @@ == Release 1.3 == -Bugfix release. +Bugfix release. See [Todos Release 1.3] * Flavor: piccolo2d.java only * Schedule: ? --~--~-~--~~~---~--~~ Piccolo2D Developers Group: http://groups.google.com/group/piccolo2d-dev?hl=en -~--~~~~--~~--~--~---
[piccolo2d-dev] [piccolo2d] r760 committed - Edited wiki page through web user interface.
Revision: 760 Author: mr0...@mro.name Date: Tue Oct 20 08:01:18 2009 Log: Edited wiki page through web user interface. http://code.google.com/p/piccolo2d/source/detail?r=760 Modified: /wiki/RoadMap.wiki === --- /wiki/RoadMap.wiki Tue Oct 20 08:00:30 2009 +++ /wiki/RoadMap.wiki Tue Oct 20 08:01:18 2009 @@ -5,7 +5,7 @@ == Release 1.3 == -Bugfix release. See [Todos Release 1.3] +Bugfix release. See [TodosRelease1.3] * Flavor: piccolo2d.java only * Schedule: ? --~--~-~--~~~---~--~~ Piccolo2D Developers Group: http://groups.google.com/group/piccolo2d-dev?hl=en -~--~~~~--~~--~--~---
[piccolo2d-dev] [piccolo2d] r761 committed - Edited wiki page through web user interface.
Revision: 761 Author: mr0...@mro.name Date: Tue Oct 20 08:01:33 2009 Log: Edited wiki page through web user interface. http://code.google.com/p/piccolo2d/source/detail?r=761 Modified: /wiki/RoadMap.wiki === --- /wiki/RoadMap.wiki Tue Oct 20 08:01:18 2009 +++ /wiki/RoadMap.wiki Tue Oct 20 08:01:33 2009 @@ -5,7 +5,7 @@ == Release 1.3 == -Bugfix release. See [TodosRelease1.3] +Bugfix release. See [TodosRelease1.3 Todos] * Flavor: piccolo2d.java only * Schedule: ? --~--~-~--~~~---~--~~ Piccolo2D Developers Group: http://groups.google.com/group/piccolo2d-dev?hl=en -~--~~~~--~~--~--~---
[piccolo2d-dev] [piccolo2d] r762 committed - Edited wiki page through web user interface.
Revision: 762 Author: mr0...@mro.name Date: Tue Oct 20 08:01:47 2009 Log: Edited wiki page through web user interface. http://code.google.com/p/piccolo2d/source/detail?r=762 Modified: /wiki/RoadMap.wiki === --- /wiki/RoadMap.wiki Tue Oct 20 08:01:33 2009 +++ /wiki/RoadMap.wiki Tue Oct 20 08:01:47 2009 @@ -5,7 +5,7 @@ == Release 1.3 == -Bugfix release. See [TodosRelease1.3 Todos] +Bugfix release. See [TodosRelease1_3 Todos] * Flavor: piccolo2d.java only * Schedule: ? --~--~-~--~~~---~--~~ Piccolo2D Developers Group: http://groups.google.com/group/piccolo2d-dev?hl=en -~--~~~~--~~--~--~---
[piccolo2d-dev] [piccolo2d] r765 committed - Fixing some CheckStyle bugs in extras.
Revision: 765 Author: allain.lalonde Date: Tue Oct 20 08:08:58 2009 Log: Fixing some CheckStyle bugs in extras. http://code.google.com/p/piccolo2d/source/detail?r=765 Modified: /piccolo2d.java/trunk/extras/src/build/conf/checkstyle.xml /piccolo2d.java/trunk/extras/src/main/java/edu/umd/cs/piccolox/util/PFixedWidthStroke.java === --- /piccolo2d.java/trunk/extras/src/build/conf/checkstyle.xml Tue Oct 13 14:11:50 2009 +++ /piccolo2d.java/trunk/extras/src/build/conf/checkstyle.xml Tue Oct 20 08:08:58 2009 @@ -149,9 +149,11 @@ /module module name=IllegalInstantiation/ module name=InnerAssignment/ +!-- In 2.0 roll this back out module name=MagicNumber property name=ignoreNumbers value=0, 0.5, 2, 1, -1 / /module + -- module name=MissingSwitchDefault/ module name=RedundantThrows/ module name=SimplifyBooleanExpression/ === --- /piccolo2d.java/trunk/extras/src/main/java/edu/umd/cs/piccolox/util/PFixedWidthStroke.java Mon Oct 19 23:13:22 2009 +++ /piccolo2d.java/trunk/extras/src/main/java/edu/umd/cs/piccolox/util/PFixedWidthStroke.java Tue Oct 20 08:08:58 2009 @@ -62,6 +62,9 @@ private static final float DEFAULT_MITER_LIMIT = 10.0f; +private static final BasicStroke DEFAULT_STROKE = new BasicStroke(1.0f, BasicStroke.CAP_SQUARE, +BasicStroke.JOIN_MITER, DEFAULT_MITER_LIMIT, null, 0.0f); + private static final long serialVersionUID = 1L; // avoid repeated cloning: @@ -71,11 +74,10 @@ private final transient float[] tmpDash; /** - * Constructs a simple PFixedWidthStroke with thickness 1, square caps, join - * meter, and no dashing. + * Constructs a simple PFixedWidthStroke with the default stroke. */ public PFixedWidthStroke() { -this(1.0f, BasicStroke.CAP_SQUARE, BasicStroke.JOIN_MITER, DEFAULT_MITER_LIMIT, null, 0.0f); +this(DEFAULT_STROKE); } /** @@ -97,20 +99,53 @@ /** * Constructs a simple PFixedWidthStroke with the width provided. * + * @deprecated in favor of PFixedWidthStroke(BasicStroke stroke) + * * @param width desired width of the stroke */ public PFixedWidthStroke(final float width) { this(width, BasicStroke.CAP_SQUARE, BasicStroke.JOIN_MITER, DEFAULT_MITER_LIMIT, null, 0.0f); } +/** + * Constructs a PFixedWidthStroke with the stroke properties provided. + * + * @deprecated in favor of PFixedWidthStroke(BasicStroke stroke) + * + * @param width width of stroke + * @param cap cap to use in stroke + * @param join join to use in stroke + */ public PFixedWidthStroke(final float width, final int cap, final int join) { this(width, cap, join, DEFAULT_MITER_LIMIT, null, 0.0f); } +/** + * Constructs a PFixedWidthStroke with the stroke properties provided. + * + * @deprecated in favor of PFixedWidthStroke(BasicStroke stroke) + * + * @param width width of stroke + * @param cap cap to use in stroke + * @param join join to use in stroke + * @param miterlimit miter limit of stroke + */ public PFixedWidthStroke(final float width, final int cap, final int join, final float miterlimit) { this(width, cap, join, miterlimit, null, 0.0f); } +/** + * Constructs a PFixedWidthStroke with the stroke properties provided. + * + * @deprecated in favor of PFixedWidthStroke(BasicStroke stroke) + * + * @param width width of stroke + * @param cap cap to use in stroke + * @param join join to use in stroke + * @param miterlimit miter limit of stroke + * @param dash array of dash lengths + * @param dashPhase phase to use when rendering dashes + */ public PFixedWidthStroke(final float width, final int cap, final int join, final float miterlimit, final float[] dash, final float dashPhase) { this(new BasicStroke(width, cap, join, miterlimit, dash, dashPhase)); --~--~-~--~~~---~--~~ Piccolo2D Developers Group: http://groups.google.com/group/piccolo2d-dev?hl=en -~--~~~~--~~--~--~---
[piccolo2d-dev] [piccolo2d] r768 committed - Edited wiki page through web user interface.
Revision: 768 Author: mr0...@mro.name Date: Tue Oct 20 08:25:40 2009 Log: Edited wiki page through web user interface. http://code.google.com/p/piccolo2d/source/detail?r=768 Modified: /wiki/TodosRelease1_3.wiki === --- /wiki/TodosRelease1_3.wiki Tue Oct 20 08:16:54 2009 +++ /wiki/TodosRelease1_3.wiki Tue Oct 20 08:25:40 2009 @@ -7,7 +7,8 @@ in approximately this order: # fix remaing showstopper issue#63 - # package release binaries (jar, sources, javadocs) + # package release candidate binaries (jar, sources, javadocs) + # without veto after 1 week's time go on with: # upload to repo1.maven.org (see issue#62) # integrate javadocs into http://piccolo2d.googlecode.com/svn/site/download.html # write http://piccolo2d.googlecode.com/svn/piccolo2d.java/trunk/ReleaseNotes.txt --~--~-~--~~~---~--~~ Piccolo2D Developers Group: http://groups.google.com/group/piccolo2d-dev?hl=en -~--~~~~--~~--~--~---
[piccolo2d-dev] [piccolo2d] r769 committed - Edited wiki page through web user interface.
Revision: 769 Author: mr0...@mro.name Date: Tue Oct 20 08:26:42 2009 Log: Edited wiki page through web user interface. http://code.google.com/p/piccolo2d/source/detail?r=769 Modified: /wiki/TodosRelease1_3.wiki === --- /wiki/TodosRelease1_3.wiki Tue Oct 20 08:25:40 2009 +++ /wiki/TodosRelease1_3.wiki Tue Oct 20 08:26:42 2009 @@ -8,6 +8,7 @@ in approximately this order: # fix remaing showstopper issue#63 # package release candidate binaries (jar, sources, javadocs) + # [http://groups.google.com/group/piccolo2d-announce/browse_thread/thread/2a04eb810571ce00 announcement the RCs] # without veto after 1 week's time go on with: # upload to repo1.maven.org (see issue#62) # integrate javadocs into http://piccolo2d.googlecode.com/svn/site/download.html --~--~-~--~~~---~--~~ Piccolo2D Developers Group: http://groups.google.com/group/piccolo2d-dev?hl=en -~--~~~~--~~--~--~---
[piccolo2d-dev] [piccolo2d] r770 committed - Edited wiki page through web user interface.
Revision: 770 Author: mr0...@mro.name Date: Tue Oct 20 08:42:15 2009 Log: Edited wiki page through web user interface. http://code.google.com/p/piccolo2d/source/detail?r=770 Modified: /wiki/TodosRelease1_3.wiki === --- /wiki/TodosRelease1_3.wiki Tue Oct 20 08:26:42 2009 +++ /wiki/TodosRelease1_3.wiki Tue Oct 20 08:42:15 2009 @@ -7,12 +7,12 @@ in approximately this order: # fix remaing showstopper issue#63 - # package release candidate binaries (jar, sources, javadocs) + # stepwise package alpha/beta/release candidate(s)/final binaries (jar, sources, javadocs) # [http://groups.google.com/group/piccolo2d-announce/browse_thread/thread/2a04eb810571ce00 announcement the RCs] - # without veto after 1 week's time go on with: + # without veto after 1 week's time progress to the next step, # upload to repo1.maven.org (see issue#62) # integrate javadocs into http://piccolo2d.googlecode.com/svn/site/download.html - # write http://piccolo2d.googlecode.com/svn/piccolo2d.java/trunk/ReleaseNotes.txt + # write http://piccolo2d.googlecode.com/svn/piccolo2d.java/trunk/ReleaseNotes.txt # write [http://groups.google.com/group/piccolo2d-announce/browse_thread/thread/2a04eb810571ce00 announcement mail] == Optional == --~--~-~--~~~---~--~~ Piccolo2D Developers Group: http://groups.google.com/group/piccolo2d-dev?hl=en -~--~~~~--~~--~--~---
[piccolo2d-dev] [piccolo2d] r771 committed - Edited wiki page through web user interface.
Revision: 771 Author: mr0...@mro.name Date: Tue Oct 20 08:42:45 2009 Log: Edited wiki page through web user interface. http://code.google.com/p/piccolo2d/source/detail?r=771 Modified: /wiki/TodosRelease1_3.wiki === --- /wiki/TodosRelease1_3.wiki Tue Oct 20 08:42:15 2009 +++ /wiki/TodosRelease1_3.wiki Tue Oct 20 08:42:45 2009 @@ -7,10 +7,10 @@ in approximately this order: # fix remaing showstopper issue#63 - # stepwise package alpha/beta/release candidate(s)/final binaries (jar, sources, javadocs) + # stepwise package and announce alpha/beta/release candidate(s)/final binaries (jar, sources, javadocs) # [http://groups.google.com/group/piccolo2d-announce/browse_thread/thread/2a04eb810571ce00 announcement the RCs] # without veto after 1 week's time progress to the next step, - # upload to repo1.maven.org (see issue#62) + # upload finals to repo1.maven.org (see issue#62) # integrate javadocs into http://piccolo2d.googlecode.com/svn/site/download.html # write http://piccolo2d.googlecode.com/svn/piccolo2d.java/trunk/ReleaseNotes.txt # write [http://groups.google.com/group/piccolo2d-announce/browse_thread/thread/2a04eb810571ce00 announcement mail] --~--~-~--~~~---~--~~ Piccolo2D Developers Group: http://groups.google.com/group/piccolo2d-dev?hl=en -~--~~~~--~~--~--~---
[piccolo2d-dev] [piccolo2d] r758 committed - Adding clone tests to allow for later refactoring.
Revision: 758 Author: allain.lalonde Date: Tue Oct 20 07:48:52 2009 Log: Adding clone tests to allow for later refactoring. http://code.google.com/p/piccolo2d/source/detail?r=758 Added: /piccolo2d.java/trunk/extras/src/test/java/edu/umd/cs/piccolox/handles /piccolo2d.java/trunk/extras/src/test/java/edu/umd/cs/piccolox/handles/PHandleTest.java /piccolo2d.java/trunk/extras/src/test/java/edu/umd/cs/piccolox/nodes/P3DRectTest.java /piccolo2d.java/trunk/extras/src/test/java/edu/umd/cs/piccolox/nodes/PCacheCameraTest.java /piccolo2d.java/trunk/extras/src/test/java/edu/umd/cs/piccolox/nodes/PClipTest.java /piccolo2d.java/trunk/extras/src/test/java/edu/umd/cs/piccolox/nodes/PCompositeTest.java /piccolo2d.java/trunk/extras/src/test/java/edu/umd/cs/piccolox/nodes/PLensTest.java /piccolo2d.java/trunk/extras/src/test/java/edu/umd/cs/piccolox/nodes/PLineTest.java /piccolo2d.java/trunk/extras/src/test/java/edu/umd/cs/piccolox/nodes/PNodeCacheTest.java /piccolo2d.java/trunk/extras/src/test/java/edu/umd/cs/piccolox/nodes/PStyledTextTest.java Modified: /piccolo2d.java/trunk/core/src/test/java/edu/umd/cs/piccolo/PCameraTest.java /piccolo2d.java/trunk/core/src/test/java/edu/umd/cs/piccolo/PNodeTest.java /piccolo2d.java/trunk/core/src/test/java/edu/umd/cs/piccolo/nodes/PHtmlViewTest.java /piccolo2d.java/trunk/core/src/test/java/edu/umd/cs/piccolo/nodes/PImageTest.java /piccolo2d.java/trunk/core/src/test/java/edu/umd/cs/piccolo/nodes/PPathTest.java /piccolo2d.java/trunk/core/src/test/java/edu/umd/cs/piccolo/nodes/PTextTest.java /piccolo2d.java/trunk/extras/src/test/java/edu/umd/cs/piccolox/nodes/PShadowTest.java /piccolo2d.java/trunk/extras/src/test/java/edu/umd/cs/piccolox/pswing/PSwingTest.java /piccolo2d.java/trunk/swt-examples/src/main/java/edu/umd/cs/piccolox/swt/examples/SWTBasicExample.java === --- /dev/null +++ /piccolo2d.java/trunk/extras/src/test/java/edu/umd/cs/piccolox/handles/PHandleTest.java Tue Oct 20 07:48:52 2009 @@ -0,0 +1,72 @@ +package edu.umd.cs.piccolox.handles; + +import junit.framework.TestCase; +import edu.umd.cs.piccolo.PNode; +import edu.umd.cs.piccolox.util.PLocator; + +public class PHandleTest extends TestCase { +public void testCloneWorksAsExpected() { +PHandle handle = new PHandle(new OriginLocator()); + +PHandle cloned = (PHandle) handle.clone(); +assertNull(cloned); +} + +public void testDragHandlerIsNotNull() { +PHandle handle = new PHandle(new OriginLocator()); +assertNotNull(handle.getHandleDraggerHandler()); +} + +public void testLocatorIsSameAsPassedToConstructor() { +PLocator locator = new OriginLocator(); +PHandle handle = new PHandle(locator); +assertSame(locator, handle.getLocator()); +} + +public void testChangingLocatorWorks() { +PLocator locator = new OriginLocator(); +PLocator locator2 = new OriginLocator(); +PHandle handle = new PHandle(locator); +handle.setLocator(locator2); +assertSame(locator2, handle.getLocator()); +} + +public void testChangingParentCausesRelocateHandle() { +final int[] relocateCounts = new int[1]; +PHandle handle = new PHandle(new OriginLocator()) { +public void relocateHandle() { +super.relocateHandle(); +relocateCounts[0]++; +} +}; +relocateCounts[0] = 0; +PNode parent = new PNode(); +handle.setParent(parent); +assertEquals(1, relocateCounts[0]); +} + +public void testResizingParentCausesRelocateHandle() { +final int[] relocateCounts = new int[1]; +PHandle handle = new PHandle(new OriginLocator()) { +public void relocateHandle() { +super.relocateHandle(); +relocateCounts[0]++; +} +}; +PNode parent = new PNode(); +parent.addChild(handle); +relocateCounts[0] = 0; +parent.setBounds(0, 0, 100, 100); +assertEquals(1, relocateCounts[0]); +} + +private final class OriginLocator extends PLocator { +public double locateX() { +return 0; +} + +public double locateY() { +return 0; +} +} +} === --- /dev/null +++ /piccolo2d.java/trunk/extras/src/test/java/edu/umd/cs/piccolox/nodes/P3DRectTest.java Tue Oct 20 07:48:52 2009 @@ -0,0 +1,15 @@ +package edu.umd.cs.piccolox.nodes; + +import java.awt.Color; + +import junit.framework.TestCase; + +public class P3DRectTest extends TestCase { +public void testClone() { +P3DRect rect = new P3DRect(10, 10, 10, 10); +rect.setPaint(Color.BLUE); +P3DRect cloned = (P3DRect) rect.clone(); +assertNotNull(cloned); +assertEquals(Color.BLUE, cloned.getPaint()); +} +}
[piccolo2d-dev] [piccolo2d] r766 committed - Created wiki page through web user interface.
Revision: 766 Author: mr0...@mro.name Date: Tue Oct 20 08:14:27 2009 Log: Created wiki page through web user interface. http://code.google.com/p/piccolo2d/source/detail?r=766 Added: /wiki/TodosRelease1_3.wiki === --- /dev/null +++ /wiki/TodosRelease1_3.wiki Tue Oct 20 08:14:27 2009 @@ -0,0 +1,16 @@ +#summary What's to be done to get 1.3 out of the door. +#labels Phase-QA + +see also issue#43 + += Todos Release 1.3 (Java) = + + # fix remaing showstopper issue#63 + # package release binaries (jar, sources, javadocs) + # upload to repo1.maven.org (see issue#62) + # integrate javadocs into http://piccolo2d.googlecode.com/svn/site/download.html + # write http://piccolo2d.googlecode.com/svn/piccolo2d.java/trunk/ReleaseNotes.txt + # write [http://groups.google.com/group/piccolo2d-announce/browse_thread/thread/2a04eb810571ce00 announcement mail] + +== Optional == + # make examples webstartable? (be inspired by [http://www.jcurl.org/jws/org/jcurl/demo/tactics/0.7-SNAPSHOT/launch.jnlp demo jnlp] [http://svn.berlios.de/wsvn/jcurl/trunk/java-core/webstart/tactics/pom.xml pom / svn]) --~--~-~--~~~---~--~~ Piccolo2D Developers Group: http://groups.google.com/group/piccolo2d-dev?hl=en -~--~~~~--~~--~--~---
[piccolo2d-dev] [piccolo2d] r767 committed - Edited wiki page through web user interface.
Revision: 767 Author: mr0...@mro.name Date: Tue Oct 20 08:16:54 2009 Log: Edited wiki page through web user interface. http://code.google.com/p/piccolo2d/source/detail?r=767 Modified: /wiki/TodosRelease1_3.wiki === --- /wiki/TodosRelease1_3.wiki Tue Oct 20 08:14:27 2009 +++ /wiki/TodosRelease1_3.wiki Tue Oct 20 08:16:54 2009 @@ -5,6 +5,7 @@ = Todos Release 1.3 (Java) = +in approximately this order: # fix remaing showstopper issue#63 # package release binaries (jar, sources, javadocs) # upload to repo1.maven.org (see issue#62) @@ -13,4 +14,4 @@ # write [http://groups.google.com/group/piccolo2d-announce/browse_thread/thread/2a04eb810571ce00 announcement mail] == Optional == - # make examples webstartable? (be inspired by [http://www.jcurl.org/jws/org/jcurl/demo/tactics/0.7-SNAPSHOT/launch.jnlp demo jnlp] [http://svn.berlios.de/wsvn/jcurl/trunk/java-core/webstart/tactics/pom.xml pom / svn]) + * make examples webstartable? (be inspired by [http://www.jcurl.org/jws/org/jcurl/demo/tactics/0.7-SNAPSHOT/launch.jnlp demo jnlp] [http://svn.berlios.de/wsvn/jcurl/trunk/java-core/webstart/tactics/pom.xml pom / svn]) --~--~-~--~~~---~--~~ Piccolo2D Developers Group: http://groups.google.com/group/piccolo2d-dev?hl=en -~--~~~~--~~--~--~---
[piccolo2d-dev] [piccolo2d] r774 committed - Edited wiki page through web user interface.
Revision: 774 Author: heuermh Date: Tue Oct 20 12:10:13 2009 Log: Edited wiki page through web user interface. http://code.google.com/p/piccolo2d/source/detail?r=774 Modified: /wiki/TodosRelease1_3.wiki === --- /wiki/TodosRelease1_3.wiki Tue Oct 20 12:07:12 2009 +++ /wiki/TodosRelease1_3.wiki Tue Oct 20 12:10:13 2009 @@ -6,7 +6,9 @@ = Todos Release 1.3 (Java) = in approximately this order: - # fix remaing showstopper issue#63 + # address issues as described below + # decide that source code style and javadoc fixing is good enough + # decide that unit test coverage is good enough # stepwise package and [http://groups.google.com/group/piccolo2d-announce/browse_thread/thread/2a04eb810571ce00 announce] binaries: jar, sources, javadocs # alpha # beta --~--~-~--~~~---~--~~ Piccolo2D Developers Group: http://groups.google.com/group/piccolo2d-dev?hl=en -~--~~~~--~~--~--~---
[piccolo2d-dev] [piccolo2d] r773 committed - Edited wiki page through web user interface.
Revision: 773 Author: heuermh Date: Tue Oct 20 12:07:12 2009 Log: Edited wiki page through web user interface. http://code.google.com/p/piccolo2d/source/detail?r=773 Modified: /wiki/TodosRelease1_3.wiki === --- /wiki/TodosRelease1_3.wiki Tue Oct 20 08:44:48 2009 +++ /wiki/TodosRelease1_3.wiki Tue Oct 20 12:07:12 2009 @@ -18,5 +18,206 @@ # write http://piccolo2d.googlecode.com/svn/piccolo2d.java/trunk/ReleaseNotes.txt # write [http://groups.google.com/group/piccolo2d-announce/browse_thread/thread/2a04eb810571ce00 announcement mail] + +== Issues == + +The following issues must be resolved before the 1.3 release. + +Issue 126 + +br/ +The following issues need to be triaged -- are they showstoppers for the 1.3 release? + +Issue 41 + +Issue 63 + +Issue 134 + +Issue 135 + +Issue 136 + + +br/ +The following issues are currently awaiting comment. Without feedback before the 1.3 release, they will have their version re-assigned to 1.4 or 2.0. + +Issue 10 + +Issue 16 + +Issue 18 + +Issue 19 + +Issue 24 + +Issue 26 + +Issue 27 + +Issue 30 + +Issue 31 + +Issue 33 + + +br/ +The following New issues have not yet been reviewed, Accepted, and assigned to a version. + +Issue 122 + +Issue 131 + +Issue 133 + + +br/ +The following issues were Fixed but not Verified since version 1.2.1. These should be marked as Verified before the 1.3 release, ideally by the original submitter, and then listed in the release notes. Developers, please verify those issues fixed by other developers! + +Issue 9 + +Issue 14 + +Issue 15 + +Issue 17 + +Issue 20 + +Issue 22 + +Issue 23 + +Issue 25 + +Issue 32 + +Issue 59 + +Issue 64 + +Issue 66 + +Issue 67 + +Issue 69 + +Issue 70 + +Issue 71 + +Issue 74 + +Issue 79 + +Issue 83 + +Issue 88 + +Issue 90 + +Issue 99 + +Issue 101 + +Issue 104 + +Issue 106 + +Issue 109 + +Issue 110 + +Issue 111 + +Issue 123 + +Issue 124 + +Issue 125 + +Issue 127 + +Issue 128 + +Issue 132 + +Issue 137 + +Issue 138 + +br/ +Query: [http://code.google.com/p/piccolo2d/issues/list?can=1q=Milestone:1.3%20status=Fixedsort=statuscolspec=ID%20Type%20Status%20Priority%20Milestone%20Owner%20Toolkit%20Component%20Summary Milestone:1.3,status=Fixed] + + +br/ +The following issues were Fixed and Verified since version 1.2.1. These should be listed in the release notes. + +Issue 2 + +Issue 6 + +Issue 8 + +Issue 13 + +Issue 21 + +Issue 28 + +Issue 29 + +Issue 38 + +Issue 42 + +Issue 44 + +Issue 46 + +Issue 47 + +Issue 49 + +Issue 51 + +Issue 52 + +Issue 56 + +Issue 68 + +Issue 73 + +Issue 82 + +Issue 89 + +Issue 93 + +Issue 94 + +Issue 95 + +Issue 96 + +Issue 97 + +Issue 98 + +Issue 100 + +Issue 108 + +Issue 113 + +Issue 116 + +br/ +Query: [http://code.google.com/p/piccolo2d/issues/list?can=1q=Milestone%3A1.3+status%3DVerifiedsort=id+statuscolspec=ID+Type+Status+Priority+Milestone+Owner+Toolkit+Component+Summaryx=statusy=milestonecells=tiles Milestone:1.3,status=Verified] + + == Optional == - * make examples webstartable? (be inspired by [http://www.jcurl.org/jws/org/jcurl/demo/tactics/0.7-SNAPSHOT/launch.jnlp demo jnlp] [http://svn.berlios.de/wsvn/jcurl/trunk/java-core/webstart/tactics/pom.xml pom / svn]) + * make examples webstartable? (be inspired by [http://www.jcurl.org/jws/org/jcurl/demo/tactics/0.7-SNAPSHOT/launch.jnlp demo jnlp] [http://svn.berlios.de/wsvn/jcurl/trunk/java-core/webstart/tactics/pom.xml pom / svn]), see Issue 139 --~--~-~--~~~---~--~~ Piccolo2D Developers Group: http://groups.google.com/group/piccolo2d-dev?hl=en -~--~~~~--~~--~--~---
[piccolo2d-dev] Issue 43 in piccolo2d: Prepare the 1.3 release
Comment #18 on issue 43 by heuermh: Prepare the 1.3 release http://code.google.com/p/piccolo2d/issues/detail?id=43 I added an Issues section to http://code.google.com/p/piccolo2d/wiki/TodosRelease1_3. There are a few issues left to triage, a few new issues left to review, and a ton of fixed issues left to verify. Feel free to move those around on the wiki page as necessary. -- You received this message because you are listed in the owner or CC fields of this issue, or because you starred this issue. 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] r775 committed - adding offset vs. translate example
Revision: 775 Author: heuermh Date: Tue Oct 20 12:56:43 2009 Log: adding offset vs. translate example http://code.google.com/p/piccolo2d/source/detail?r=775 Added: /piccolo2d.java/trunk/examples/src/main/java/edu/umd/cs/piccolo/examples/OffsetVsTranslateExample.java === --- /dev/null +++ /piccolo2d.java/trunk/examples/src/main/java/edu/umd/cs/piccolo/examples/OffsetVsTranslateExample.java Tue Oct 20 12:56:43 2009 @@ -0,0 +1,104 @@ +/* + * Copyright (c) 2008-2009, 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 edu.umd.cs.piccolo.examples; + +import edu.umd.cs.piccolo.PCanvas; +import edu.umd.cs.piccolo.PNode; + +import edu.umd.cs.piccolo.activities.PActivity; + +import edu.umd.cs.piccolo.nodes.PText; + +import edu.umd.cs.piccolox.PFrame; + +/** + * This example demonstrates the difference between + * codeoffset(double, double)/code and + * codetranslate(double, double)/code. + * + * @see PNode#offset(double, double) + * @see PNode#translate(double, double) + */ +public class OffsetVsTranslateExample +extends PFrame { + +/** Default serial version UID. */ +private static final long serialVersionUID = 1L; + + +/** + * Create a new offset vs. translate example. + */ +public OffsetVsTranslateExample() { +this(null); +} + +/** + * Create a new offset vs. translate example for the specified canvas. + * + * @param canvas canvas for this offset vs. translate example + */ +public OffsetVsTranslateExample(final PCanvas canvas) { +super(OffsetVsTranslateExample, false, canvas); +} + + +/** {...@inheritdoc} */ +public void initialize() { +final PText offset = new PText(Offset node); +final PText translate = new PText(Translated node); +offset.setOffset(15.0d, 100.0d); +translate.setOffset(15.0d, 300.0d); +getCanvas().getLayer().addChild(offset); +getCanvas().getLayer().addChild(translate); + +offset.addActivity(new PActivity(-1L) { +/** {...@inheritdoc} */ +protected void activityStep(final long elapsedTime) { +offset.offset(1.0d, 0.0d); +} +}); +translate.addActivity(new PActivity(-1L) { +/** {...@inheritdoc} */ +protected void activityStep(final long elapsedTime) { +translate.translate(1.0d, 0.0d); +} +}); +} + + +/** + * Main. + * + * @param args command line arguments, ignored + */ +public static void main(final String[] args) { +new OffsetVsTranslateExample(); +} +} --~--~-~--~~~---~--~~ Piccolo2D Developers Group: http://groups.google.com/group/piccolo2d-dev?hl=en -~--~~~~--~~--~--~---
[piccolo2d-dev] [piccolo2d] r777 committed - adding scales and rotation to the transform for each node
Revision: 777 Author: heuermh Date: Tue Oct 20 13:19:14 2009 Log: adding scales and rotation to the transform for each node http://code.google.com/p/piccolo2d/source/detail?r=777 Modified: /piccolo2d.java/trunk/examples/src/main/java/edu/umd/cs/piccolo/examples/OffsetVsTranslateExample.java === --- /piccolo2d.java/trunk/examples/src/main/java/edu/umd/cs/piccolo/examples/OffsetVsTranslateExample.java Tue Oct 20 12:56:43 2009 +++ /piccolo2d.java/trunk/examples/src/main/java/edu/umd/cs/piccolo/examples/OffsetVsTranslateExample.java Tue Oct 20 13:19:14 2009 @@ -72,23 +72,50 @@ /** {...@inheritdoc} */ public void initialize() { final PText offset = new PText(Offset node); +final PText offsetRotated = new PText(Offset rotated node); final PText translate = new PText(Translated node); +final PText translateRotated = new PText(Translated rotated node); + +offset.setScale(2.0d); +offsetRotated.setScale(2.0d); +translate.setScale(2.0d); +translateRotated.setScale(2.0d); + +offsetRotated.setRotation(Math.PI / 8.0d); +translateRotated.setRotation(Math.PI / 8.0d); offset.setOffset(15.0d, 100.0d); -translate.setOffset(15.0d, 300.0d); +offsetRotated.setOffset(15.0d, 150.0d); +translate.setOffset(15.0d, 200.0d); +translateRotated.setOffset(15.0d, 250.0d); + getCanvas().getLayer().addChild(offset); +getCanvas().getLayer().addChild(offsetRotated); getCanvas().getLayer().addChild(translate); +getCanvas().getLayer().addChild(translateRotated); offset.addActivity(new PActivity(-1L) { /** {...@inheritdoc} */ protected void activityStep(final long elapsedTime) { offset.offset(1.0d, 0.0d); } +}); +offsetRotated.addActivity(new PActivity(-1L) { +/** {...@inheritdoc} */ +protected void activityStep(final long elapsedTime) { +offsetRotated.offset(1.0d, 0.0d); +} }); translate.addActivity(new PActivity(-1L) { /** {...@inheritdoc} */ protected void activityStep(final long elapsedTime) { translate.translate(1.0d, 0.0d); } +}); +translateRotated.addActivity(new PActivity(-1L) { +/** {...@inheritdoc} */ +protected void activityStep(final long elapsedTime) { +translateRotated.translate(1.0d, 0.0d); +} }); } --~--~-~--~~~---~--~~ Piccolo2D Developers Group: http://groups.google.com/group/piccolo2d-dev?hl=en -~--~~~~--~~--~--~---
[piccolo2d-dev] [piccolo2d] r778 committed - Adding fisheye Frame and Calendar.
Revision: 778 Author: allain.lalonde Date: Tue Oct 20 13:43:49 2009 Log: Adding fisheye Frame and Calendar. http://code.google.com/p/piccolo2d/source/detail?r=778 Added: /piccolo2d.java/trunk/examples/src/main/java/edu/umd/cs/piccolo/examples/fisheye /piccolo2d.java/trunk/examples/src/main/java/edu/umd/cs/piccolo/examples/fisheye/CalendarNode.java /piccolo2d.java/trunk/examples/src/main/java/edu/umd/cs/piccolo/examples/fisheye/DayNode.java /piccolo2d.java/trunk/examples/src/main/java/edu/umd/cs/piccolo/examples/fisheye/TabularFisheye.java /piccolo2d.java/trunk/examples/src/main/java/edu/umd/cs/piccolo/examples/fisheye/TabularFisheyeApplet.java /piccolo2d.java/trunk/examples/src/main/java/edu/umd/cs/piccolo/examples/fisheye/TabularFisheyeFrame.java === --- /dev/null +++ /piccolo2d.java/trunk/examples/src/main/java/edu/umd/cs/piccolo/examples/fisheye/CalendarNode.java Tue Oct 20 13:43:49 2009 @@ -0,0 +1,120 @@ +package edu.umd.cs.piccolo.examples.fisheye; + +import java.awt.Font; + +import edu.umd.cs.piccolo.PNode; +import edu.umd.cs.piccolo.event.PBasicInputEventHandler; +import edu.umd.cs.piccolo.event.PInputEvent; + +class CalendarNode extends PNode { +static int DEFAULT_NUM_DAYS = 7; +static int DEFAULT_NUM_WEEKS = 12; +static int TEXT_X_OFFSET = 1; +static int TEXT_Y_OFFSET = 10; +static int DEFAULT_ANIMATION_MILLIS = 250; +static float FOCUS_SIZE_PERCENT = 0.65f; +static Font DEFAULT_FONT = new Font(Arial, Font.PLAIN, 10); + +int numDays = DEFAULT_NUM_DAYS; +int numWeeks = DEFAULT_NUM_WEEKS; +int daysExpanded = 0; +int weeksExpanded = 0; + +public CalendarNode() { +for (int week = 0; week numWeeks; week++) { +for (int day = 0; day numDays; day++) { +addChild(new DayNode(week, day)); +} +} + +CalendarNode.this.addInputEventListener(new PBasicInputEventHandler() { +public void mouseReleased(PInputEvent event) { +DayNode pickedDay = (DayNode) event.getPickedNode(); +if (pickedDay.hasWidthFocus pickedDay.hasHeightFocus) { +setFocusDay(null, true); +} +else { +setFocusDay(pickedDay, true); +} +} +}); +} + +public void setFocusDay(DayNode focusDay, boolean animate) { +for (int i = 0; i getChildrenCount(); i++) { +DayNode each = (DayNode) getChild(i); +each.hasWidthFocus = false; +each.hasHeightFocus = false; +} + +if (focusDay == null) { +daysExpanded = 0; +weeksExpanded = 0; +} +else { +focusDay.hasWidthFocus = true; +daysExpanded = 1; +weeksExpanded = 1; + +for (int i = 0; i numDays; i++) { +getDay(focusDay.week, i).hasHeightFocus = true; +} + +for (int i = 0; i numWeeks; i++) { +getDay(i, focusDay.day).hasWidthFocus = true; +} +} + +layoutChildren(animate); +} + +public DayNode getDay(int week, int day) { +return (DayNode) getChild((week * numDays) + day); +} + +protected void layoutChildren(boolean animate) { +double focusWidth = 0; +double focusHeight = 0; + +if (daysExpanded != 0 weeksExpanded != 0) { +focusWidth = (getWidth() * FOCUS_SIZE_PERCENT) / daysExpanded; +focusHeight = (getHeight() * FOCUS_SIZE_PERCENT) / weeksExpanded; +} + +double collapsedWidth = (getWidth() - (focusWidth * daysExpanded)) +/ (numDays - daysExpanded); +double collapsedHeight = (getHeight() - (focusHeight * weeksExpanded)) +/ (numWeeks - weeksExpanded); + +double xOffset = 0; +double yOffset = 0; +double rowHeight = 0; +DayNode each = null; + +for (int week = 0; week numWeeks; week++) { +for (int day = 0; day numDays; day++) { +each = getDay(week, day); +double width = collapsedWidth; +double height = collapsedHeight; + +if (each.hasWidthFocus()) +width = focusWidth; +if (each.hasHeightFocus()) +height = focusHeight; + +if (animate) { +each.animateToBounds(xOffset, yOffset, width, +height, DEFAULT_ANIMATION_MILLIS).setStepRate(0); +} +else { +each.setBounds(xOffset, yOffset, width, height); +} + +xOffset += width; +rowHeight = height; +} +xOffset = 0; +yOffset += rowHeight; +} +} +} === --- /dev/null +++
[piccolo2d-dev] [piccolo2d] r779 committed - Added License Information to files. I'll never get used to that.
Revision: 779 Author: allain.lalonde Date: Tue Oct 20 13:45:00 2009 Log: Added License Information to files. I'll never get used to that. http://code.google.com/p/piccolo2d/source/detail?r=779 Modified: /piccolo2d.java/trunk/examples/src/main/java/edu/umd/cs/piccolo/examples/fisheye/CalendarNode.java /piccolo2d.java/trunk/examples/src/main/java/edu/umd/cs/piccolo/examples/fisheye/DayNode.java /piccolo2d.java/trunk/examples/src/main/java/edu/umd/cs/piccolo/examples/fisheye/TabularFisheye.java /piccolo2d.java/trunk/examples/src/main/java/edu/umd/cs/piccolo/examples/fisheye/TabularFisheyeApplet.java /piccolo2d.java/trunk/examples/src/main/java/edu/umd/cs/piccolo/examples/fisheye/TabularFisheyeFrame.java === --- /piccolo2d.java/trunk/examples/src/main/java/edu/umd/cs/piccolo/examples/fisheye/CalendarNode.java Tue Oct 20 13:43:49 2009 +++ /piccolo2d.java/trunk/examples/src/main/java/edu/umd/cs/piccolo/examples/fisheye/CalendarNode.java Tue Oct 20 13:45:00 2009 @@ -1,3 +1,31 @@ +/* + * Copyright (c) 2008-2009, 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 edu.umd.cs.piccolo.examples.fisheye; import java.awt.Font; === --- /piccolo2d.java/trunk/examples/src/main/java/edu/umd/cs/piccolo/examples/fisheye/DayNode.java Tue Oct 20 13:43:49 2009 +++ /piccolo2d.java/trunk/examples/src/main/java/edu/umd/cs/piccolo/examples/fisheye/DayNode.java Tue Oct 20 13:45:00 2009 @@ -1,3 +1,31 @@ +/* + * Copyright (c) 2008-2009, 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 edu.umd.cs.piccolo.examples.fisheye; import java.awt.Color;
[piccolo2d-dev] [piccolo2d] r780 committed - style and javadoc fixes
Revision: 780 Author: heuermh Date: Tue Oct 20 14:02:49 2009 Log: style and javadoc fixes http://code.google.com/p/piccolo2d/source/detail?r=780 Modified: /piccolo2d.java/trunk/core/src/main/java/edu/umd/cs/piccolo/PCamera.java /piccolo2d.java/trunk/core/src/test/java/edu/umd/cs/piccolo/PCameraTest.java === --- /piccolo2d.java/trunk/core/src/main/java/edu/umd/cs/piccolo/PCamera.java Mon Oct 19 19:57:52 2009 +++ /piccolo2d.java/trunk/core/src/main/java/edu/umd/cs/piccolo/PCamera.java Tue Oct 20 14:02:49 2009 @@ -336,6 +336,9 @@ *by this camera is empty */ public PBounds getUnionOfLayerFullBounds() { +// todo: this method is implemented inconsistently with regards to non-final methods +// a subclass might override getLayerCount and/or getLayer, thus this method should either +//use layers.size() and layers.get(index) or getLayerCount() and getLayer(index) final PBounds result = new PBounds(); final int count = getLayerCount(); for (int i = 0; i count; i++) { @@ -608,10 +611,11 @@ } /** - * Translate the view transform that is applied to the camera's layers. + * Translate the view transform applied to the list of layers viewed by this + * camera by code[dx, dy]/code. * - * @param dx the delta which the x coordinate should be increased by - * @param dy the delta which the y coordinate should be increased by + * @param dx translate delta x + * @param dy translate delta y */ public void translateView(final double dx, final double dy) { viewTransform.translate(dx, dy); @@ -621,11 +625,25 @@ } /** - * Sets the offset of the view transform that is applied to the camera's - * layers. + * Offset the view transform applied to the list of layers viewed by this camera by code[dx, dy]/code. This is + * NOT effected by the view transform's current scale or rotation. This is implemented by directly adding dx to the + * m02 position and dy to the m12 position in the affine transform. * - * @param x the new x translation of the view transform - * @param y the new y translation of the view transform + * @param dx offset delta x + * @param dy offset delta y + */ +/* +public void offsetView(final double dx, final double dy) { +setViewOffset(viewTransform.getTranslateX() + dx, viewTransform.getTranslateY() + dy); +} +*/ + +/** + * Set the offset for the view transform applied to the list of layers + * viewed by this camera to code[x, y]/code. + * + * @param x offset x + * @param y offset y */ public void setViewOffset(final double x, final double y) { viewTransform.setOffset(x, y); @@ -635,35 +653,39 @@ } /** - * Get a copy of the view transform that is applied to the camera's layers. + * Return a copy of the view transform applied to the list of layers + * viewed by this camera. * - * @return the viewTransform being applied to the layers + * @return a copy of the view transform applied to the list of layers + *viewed by this camera */ public PAffineTransform getViewTransform() { return (PAffineTransform) viewTransform.clone(); } /** - * Get a reference to the view transform that is applied to the camera's - * layers. + * Return a reference to the view transform applied to the list of layers + * viewed by this camera. * - * @return a direct reference to the view transform being applied to the - * layers + * @return the view transform applied to the list of layers + *viewed by this camera */ public PAffineTransform getViewTransformReference() { return viewTransform; } /** - * Set the view transform that is applied to the views layers. + * Set the view transform applied to the list of layers + * viewed by this camera to codeviewTransform/code * - * @param aTransform the new view transform + * @param viewTransform view transform applied to the list of layers + *viewed by this camera */ -public void setViewTransform(final AffineTransform aTransform) { -viewTransform.setTransform(aTransform); +public void setViewTransform(final AffineTransform viewTransform) { +this.viewTransform.setTransform(viewTransform); applyViewConstraints(); invalidatePaint(); -firePropertyChange(PROPERTY_CODE_VIEW_TRANSFORM, PROPERTY_VIEW_TRANSFORM, null, viewTransform); +firePropertyChange(PROPERTY_CODE_VIEW_TRANSFORM, PROPERTY_VIEW_TRANSFORM, null, this.viewTransform); } /** @@ -798,21 +820,30 @@ // /** - * Returns
[piccolo2d-dev] [piccolo2d] r781 committed - Edited wiki page through web user interface.
Revision: 781 Author: heuermh Date: Tue Oct 20 18:58:11 2009 Log: Edited wiki page through web user interface. http://code.google.com/p/piccolo2d/source/detail?r=781 Modified: /wiki/TodosRelease1_3.wiki === --- /wiki/TodosRelease1_3.wiki Tue Oct 20 12:10:13 2009 +++ /wiki/TodosRelease1_3.wiki Tue Oct 20 18:58:11 2009 @@ -32,8 +32,6 @@ Issue 41 -Issue 63 - Issue 134 Issue 135 @@ -189,6 +187,8 @@ Issue 56 +Issue 63 + Issue 68 Issue 73 --~--~-~--~~~---~--~~ Piccolo2D Developers Group: http://groups.google.com/group/piccolo2d-dev?hl=en -~--~~~~--~~--~--~---
[piccolo2d-dev] Issue 136 in piccolo2d: PNotificationCenter is a singleton but isn't declared as final
Comment #1 on issue 136 by heuermh: PNotificationCenter is a singleton but isn't declared as final http://code.google.com/p/piccolo2d/issues/detail?id=136 I vote for pushing this to 2.0 -- You received this message because you are listed in the owner or CC fields of this issue, or because you starred this issue. 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] Issue 134 in piccolo2d: PTransformActivity can throw null pointer exception
Comment #1 on issue 134 by heuermh: PTransformActivity can throw null pointer exception http://code.google.com/p/piccolo2d/issues/detail?id=134 Should setDestinationTransform throw NPE or IllegalArgumentException when passed in null? That seems better to me than throwing a NPE later or doing nothing after a null check. The Piccolo2D API is not very consistent when it comes to null parameters though. -- You received this message because you are listed in the owner or CC fields of this issue, or because you starred this issue. 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] r782 committed - Making swing related asserts allow for swing thread to be run first.
Revision: 782 Author: allain.lalonde Date: Tue Oct 20 19:27:31 2009 Log: Making swing related asserts allow for swing thread to be run first. http://code.google.com/p/piccolo2d/source/detail?r=782 Modified: /piccolo2d.java/trunk/extras/src/test/java/edu/umd/cs/piccolox/pswing/PSwingTest.java === --- /piccolo2d.java/trunk/extras/src/test/java/edu/umd/cs/piccolox/pswing/PSwingTest.java Tue Oct 20 07:48:52 2009 +++ /piccolo2d.java/trunk/extras/src/test/java/edu/umd/cs/piccolox/pswing/PSwingTest.java Tue Oct 20 19:27:31 2009 @@ -34,7 +34,6 @@ import java.awt.geom.AffineTransform; import java.awt.image.BufferedImage; import java.io.IOException; - import javax.swing.JButton; import javax.swing.JComponent; import javax.swing.JLabel; @@ -108,20 +107,39 @@ // thread needs time to push the component hidden method before this // test passes // There has to be a way of forcing this without a sleep -int tryCount = 0; -while (tryCount 10) { -if (!pSwing.getVisible()) { +assertDelayedSuccess(setting component to invisible did not reflect in associated PSwing, 500, +new Predicate() { + +public boolean isTrue() { +return !pSwing.getVisible(); +} +}); + +} + +public void assertDelayedSuccess(String message, int delay, Predicate p) { +int remainingTries = delay / 50; +while (remainingTries 0) { +if (p.isTrue()) { return; } -tryCount ++; +remainingTries--; try { Thread.sleep(50); -} catch (InterruptedException e) { +} +catch (InterruptedException e) { // do nothing } - -} -fail(setting component to invisible did not reflect in associated PSwing); +} +fail(message); +} + +public void assertDelayedSuccess(int delay, Predicate p) { +assertDelayedSuccess(Failed asserting delayed success, delay, p); +} + +private interface Predicate { +boolean isTrue(); } public void testHidingPNodeHidesComponent() { @@ -175,9 +193,9 @@ assertTrue(pSwing.isPaintedGreek()); assertFalse(pSwing.isPaintedComponent()); } - + public void testGreekThresholdIsPersisted() { -final JPanel panel = new JPanel(); +final JPanel panel = new JPanel(); final MockPaintingPSwing pSwing = new MockPaintingPSwing(panel); pSwing.setGreekThreshold(2); assertEquals(2, pSwing.getGreekThreshold(), Double.MIN_VALUE); @@ -186,20 +204,27 @@ } public void testAssertSettingJLabelWidthTooSmallGrowsIt() { -JLabel label = new JLabel(Hello); +final JLabel label = new JLabel(Hello); PSwingCanvas canvas = new PSwingCanvas(); canvas.setBounds(0, 0, 100, 100); -MockPaintingPSwing swing = new MockPaintingPSwing(label); -assertFalse(label.getMinimumSize().getWidth() == 0); +final MockPaintingPSwing swing = new MockPaintingPSwing(label); +assertDelayedSuccess(500, +new Predicate() { + +public boolean isTrue() { +return label.getMinimumSize().getWidth() != 0; +} +}); swing.setWidth(10); canvas.getLayer().addChild(swing); canvas.doLayout(); // While paint, it uses the graphics element to determine the font's // display size and hence determine minimum size of JLabel. swing.paint(); + assertFalse(10 == swing.getWidth()); } - + public void testAssertSettingJButtonWidthTooSmallGrowsIt() { JButton label = new JButton(Hello); PSwingCanvas canvas = new PSwingCanvas(); @@ -216,21 +241,21 @@ } public void testPSwingAttachesItselfToItsCanvasWhenAddedToItsSceneGraph() { -PSwingCanvas canvas1 = new PSwingCanvas(); +PSwingCanvas canvas1 = new PSwingCanvas(); PSwing label = new PSwing(new JLabel(Hello)); assertEquals(0, canvas1.getSwingWrapper().getComponentCount()); canvas1.getLayer().addChild(label); -assertEquals(1, canvas1.getSwingWrapper().getComponentCount()); +assertEquals(1, canvas1.getSwingWrapper().getComponentCount()); } public void testPSwingRemovesItselfFromItsCanvasWhenRemovedFromScene() { -PSwingCanvas canvas1 = new PSwingCanvas(); -PSwing label = new PSwing(new JLabel(Hello)); +PSwingCanvas canvas1 = new PSwingCanvas(); +PSwing label = new PSwing(new JLabel(Hello)); canvas1.getLayer().addChild(label); label.removeFromParent(); -assertEquals(0,
[piccolo2d-dev] Issue 32 in piccolo2d: PSwing mouse wheel support
Updates: Status: Verified Comment #6 on issue 32 by heuermh: PSwing mouse wheel support http://code.google.com/p/piccolo2d/issues/detail?id=32 (No comment was entered for this change.) -- You received this message because you are listed in the owner or CC fields of this issue, or because you starred this issue. 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 -~--~~~~--~~--~--~---