diff --git a/swt/src/main/java/edu/umd/cs/piccolox/swt/PSWTBoundsHandle.java b/swt/src/main/java/edu/umd/cs/piccolox/swt/PSWTBoundsHandle.java index 0a1fd73..6e4520a 100644 --- a/swt/src/main/java/edu/umd/cs/piccolox/swt/PSWTBoundsHandle.java +++ b/swt/src/main/java/edu/umd/cs/piccolox/swt/PSWTBoundsHandle.java @@ -45,12 +45,11 @@ import edu.umd.cs.piccolox.util.PBoundsLocator; /** - * PBoundsHandle a handle for resizing the bounds of another node. If a + * PSWTBoundsHandle 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. - *

* * @version 1.0 * @author Jesse Grosjean diff --git a/swt/src/main/java/edu/umd/cs/piccolox/swt/PSWTCanvas.java b/swt/src/main/java/edu/umd/cs/piccolox/swt/PSWTCanvas.java index 2f80bc6..f9992fd 100644 --- a/swt/src/main/java/edu/umd/cs/piccolox/swt/PSWTCanvas.java +++ b/swt/src/main/java/edu/umd/cs/piccolox/swt/PSWTCanvas.java @@ -62,11 +62,10 @@ import edu.umd.cs.piccolo.util.PStack; /** - * PSWTCanvas is a simple Swing component that can be used to embed - * Piccolo into a Java Swing application. Canvas's view the Piccolo scene graph + * PSWTCanvas 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. - *

* * @version 1.0 * @author Jesse Grosjean diff --git a/swt/src/main/java/edu/umd/cs/piccolox/swt/PSWTHandle.java b/swt/src/main/java/edu/umd/cs/piccolox/swt/PSWTHandle.java index 95c3330..cc9223d 100644 --- a/swt/src/main/java/edu/umd/cs/piccolox/swt/PSWTHandle.java +++ b/swt/src/main/java/edu/umd/cs/piccolox/swt/PSWTHandle.java @@ -49,9 +49,9 @@ import edu.umd.cs.piccolox.util.PNodeLocator; /** - * PHandle is used to modify some aspect of Piccolo when it is dragged. + * PSWTHandle 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. *

* diff --git a/swt/src/main/java/edu/umd/cs/piccolox/swt/PSWTKeyEvent.java b/swt/src/main/java/edu/umd/cs/piccolox/swt/PSWTKeyEvent.java index 9e826e0..f072ec3 100644 --- a/swt/src/main/java/edu/umd/cs/piccolox/swt/PSWTKeyEvent.java +++ b/swt/src/main/java/edu/umd/cs/piccolox/swt/PSWTKeyEvent.java @@ -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 */ diff --git a/swt/src/main/java/edu/umd/cs/piccolox/swt/PSWTMouseEvent.java b/swt/src/main/java/edu/umd/cs/piccolox/swt/PSWTMouseEvent.java index c6c4c8e..3c82362 100644 --- a/swt/src/main/java/edu/umd/cs/piccolox/swt/PSWTMouseEvent.java +++ b/swt/src/main/java/edu/umd/cs/piccolox/swt/PSWTMouseEvent.java @@ -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 */ diff --git a/swt/src/main/java/edu/umd/cs/piccolox/swt/PSWTPath.java b/swt/src/main/java/edu/umd/cs/piccolox/swt/PSWTPath.java index ee7d623..aab1d58 100644 --- a/swt/src/main/java/edu/umd/cs/piccolox/swt/PSWTPath.java +++ b/swt/src/main/java/edu/umd/cs/piccolox/swt/PSWTPath.java @@ -49,21 +49,8 @@ import edu.umd.cs.piccolo.util.PPaintContext; /** - * PPath is a wrapper around a java.awt.geom.GeneralPath. The setBounds - * method works by scaling the path to fit into the specified bounds. This - * normally works well, but if the specified base bounds get too small then it - * is impossible to expand the path shape again since all its numbers have - * tended to zero, so application code may need to take this into consideration. - *

- * One option that applications have is to call startResizeBounds - * before starting an interaction that may make the bounds very small, and - * calling endResizeBounds when this interaction is finished. When - * this is done PPath will use a copy of the original path to do the resizing so - * the numbers in the path wont loose resolution. - *

- * This class also provides methods for constructing common shapes using a - * general path. - *

+ * PSWTPath is a wrapper around a java.awt.geom.GeneralPath, with + * workarounds for drawing shapes in SWT where necessary. * * @version 1.0 * @author Jesse Grosjean diff --git a/swt/src/main/java/edu/umd/cs/piccolox/swt/PSWTRoot.java b/swt/src/main/java/edu/umd/cs/piccolox/swt/PSWTRoot.java index 00d47c5..3e84167 100644 --- a/swt/src/main/java/edu/umd/cs/piccolox/swt/PSWTRoot.java +++ b/swt/src/main/java/edu/umd/cs/piccolox/swt/PSWTRoot.java @@ -41,7 +41,6 @@ * environment. In particular it uses SWTTimers and the SWT event dispatch * thread. With the current setup only a single PSWTCanvas is expected to be * connected to a root. - *

* * @version 1.1 * @author Jesse Grosjean diff --git a/swt/src/main/java/edu/umd/cs/piccolox/swt/PSWTSelectionEventHandler.java b/swt/src/main/java/edu/umd/cs/piccolox/swt/PSWTSelectionEventHandler.java index 4bd4b38..50fb4c2 100644 --- a/swt/src/main/java/edu/umd/cs/piccolox/swt/PSWTSelectionEventHandler.java +++ b/swt/src/main/java/edu/umd/cs/piccolox/swt/PSWTSelectionEventHandler.java @@ -43,7 +43,7 @@ import edu.umd.cs.piccolox.event.PSelectionEventHandler; /** - * Modified to use SWT paths instead of normal paths. + * Selection event handler modified to use SWT paths instead of normal paths. * * @version 1.0 * @author Lance Good diff --git a/swt/src/main/java/edu/umd/cs/piccolox/swt/PSWTText.java b/swt/src/main/java/edu/umd/cs/piccolox/swt/PSWTText.java index c716aa2..39e9e04 100644 --- a/swt/src/main/java/edu/umd/cs/piccolox/swt/PSWTText.java +++ b/swt/src/main/java/edu/umd/cs/piccolox/swt/PSWTText.java @@ -27,12 +27,6 @@ * repositioned with mouse clicks. The text object is positioned so that its * upper-left corner is at the origin, though this can be changed with the * translate methods. - *

- * Warning: Serialized and ZSerialized objects of this class will not be - * compatible with future Jazz releases. The current serialization support is - * appropriate for short term storage or RMI between applications running the - * same version of Jazz. A future release of Jazz will provide support for long - * term persistence. */ public class PSWTText extends PNode { private static final long serialVersionUID = 1L; diff --git a/swt/src/main/java/edu/umd/cs/piccolox/swt/SWTShapeManager.java b/swt/src/main/java/edu/umd/cs/piccolox/swt/SWTShapeManager.java index 1be4c0b..8e35836 100644 --- a/swt/src/main/java/edu/umd/cs/piccolox/swt/SWTShapeManager.java +++ b/swt/src/main/java/edu/umd/cs/piccolox/swt/SWTShapeManager.java @@ -38,6 +38,8 @@ import org.eclipse.swt.graphics.Rectangle; /** + * SWT shape manager. + * * @author Lance Good */ public class SWTShapeManager { diff --git a/swt/src/main/java/edu/umd/cs/piccolox/swt/SWTTimer.java b/swt/src/main/java/edu/umd/cs/piccolox/swt/SWTTimer.java index cde5412..cca3c43 100644 --- a/swt/src/main/java/edu/umd/cs/piccolox/swt/SWTTimer.java +++ b/swt/src/main/java/edu/umd/cs/piccolox/swt/SWTTimer.java @@ -36,7 +36,7 @@ import org.eclipse.swt.widgets.Display; /** - * + * SWT timer. * * @author Lance Good */