diff --git a/examples/edu/umd/cs/piccolo/examples/DynamicExample.java b/examples/edu/umd/cs/piccolo/examples/DynamicExample.java index 3424e2a..b7ea44e 100644 --- a/examples/edu/umd/cs/piccolo/examples/DynamicExample.java +++ b/examples/edu/umd/cs/piccolo/examples/DynamicExample.java @@ -1,7 +1,6 @@ package edu.umd.cs.piccolo.examples; import java.awt.BasicStroke; import java.awt.Color; -import java.awt.Stroke; import java.util.Iterator; import java.util.Random; diff --git a/examples/edu/umd/cs/piccolo/examples/ExampleRunner.java b/examples/edu/umd/cs/piccolo/examples/ExampleRunner.java index 7d550dd..ab75a88 100644 --- a/examples/edu/umd/cs/piccolo/examples/ExampleRunner.java +++ b/examples/edu/umd/cs/piccolo/examples/ExampleRunner.java @@ -8,7 +8,6 @@ import javax.swing.JButton; import javax.swing.JCheckBox; import javax.swing.JFrame; -import javax.swing.JList; import javax.swing.JPanel; import edu.umd.cs.piccolo.util.PDebug; @@ -16,8 +15,6 @@ public class ExampleRunner extends JFrame { - private JList examples; - public ExampleRunner() { setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE); setTitle("Piccolo Example Runner"); diff --git a/examples/edu/umd/cs/piccolo/examples/LensExample.java b/examples/edu/umd/cs/piccolo/examples/LensExample.java index a13441c..2342f74 100644 --- a/examples/edu/umd/cs/piccolo/examples/LensExample.java +++ b/examples/edu/umd/cs/piccolo/examples/LensExample.java @@ -118,7 +118,7 @@ sharedLayer.addChild(sharedNode); PText label = new PText("Move the lens \n (by dragging title bar) over the green rectangle, and it will appear red. press and drag the mouse on the canvas and it will draw squiggles. press and drag the mouse over the lens and drag squiggles that are only visible through the lens."); - label.setConstrainWidthToTextWidth(false); + label.setWrapMode(PText.NO_WRAP); label.setBounds(200, 100, 200, 200); sharedLayer.addChild(label); diff --git a/extras/edu/umd/cs/piccolox/PFrame.java b/extras/edu/umd/cs/piccolox/PFrame.java index 777c855..6cd3996 100644 --- a/extras/edu/umd/cs/piccolox/PFrame.java +++ b/extras/edu/umd/cs/piccolox/PFrame.java @@ -59,7 +59,6 @@ private PCanvas canvas; private GraphicsDevice graphicsDevice; - private DisplayMode originalDisplayMode; private EventListener escapeFullScreenModeListener; public PFrame() { @@ -75,12 +74,6 @@ graphicsDevice = aDevice; - try { - originalDisplayMode = graphicsDevice.getDisplayMode(); - } catch (InternalError e) { - e.printStackTrace(); - } - setBounds(getDefaultFrameBounds()); setBackground(null); diff --git a/extras/edu/umd/cs/piccolox/event/PStyledTextEventHandler.java b/extras/edu/umd/cs/piccolox/event/PStyledTextEventHandler.java index 48bbe2d..64af73c 100644 --- a/extras/edu/umd/cs/piccolox/event/PStyledTextEventHandler.java +++ b/extras/edu/umd/cs/piccolox/event/PStyledTextEventHandler.java @@ -120,13 +120,6 @@ super.paint(g); } - - /** - * If the standard scroll rect to visible is on, then you can get weird behaviors if the - * canvas is put in a scrollpane. - */ - public void scrollRectToVisible() { - } }; tComp.setBorder(new CompoundBorder(new LineBorder(Color.black),new EmptyBorder(3,3,3,3))); return tComp; diff --git a/extras/edu/umd/cs/piccolox/handles/PHandle.java b/extras/edu/umd/cs/piccolox/handles/PHandle.java index a85a815..8f2a2c7 100644 --- a/extras/edu/umd/cs/piccolox/handles/PHandle.java +++ b/extras/edu/umd/cs/piccolox/handles/PHandle.java @@ -45,7 +45,6 @@ import edu.umd.cs.piccolo.event.PInputEvent; import edu.umd.cs.piccolo.event.PInputEventFilter; import edu.umd.cs.piccolo.nodes.PPath; -import edu.umd.cs.piccolo.util.PAffineTransform; import edu.umd.cs.piccolo.util.PBounds; import edu.umd.cs.piccolo.util.PDimension; import edu.umd.cs.piccolox.util.PLocator; @@ -66,8 +65,6 @@ public static Shape DEFAULT_HANDLE_SHAPE = new Ellipse2D.Float(0f, 0f, DEFAULT_HANDLE_SIZE, DEFAULT_HANDLE_SIZE); public static Color DEFAULT_COLOR = Color.white; - private static PAffineTransform TEMP_TRANSFORM = new PAffineTransform(); - private PLocator locator; private transient PDragSequenceEventHandler handleDragger; diff --git a/extras/edu/umd/cs/piccolox/handles/PStickyHandleManager.java b/extras/edu/umd/cs/piccolox/handles/PStickyHandleManager.java index 0d30a9e..a74c6be 100644 --- a/extras/edu/umd/cs/piccolox/handles/PStickyHandleManager.java +++ b/extras/edu/umd/cs/piccolox/handles/PStickyHandleManager.java @@ -38,7 +38,6 @@ private PNode target; private PCamera camera; - private boolean isResizing; public PStickyHandleManager(PCamera newCamera, PNode newTarget) { setCameraTarget(newCamera, newTarget); @@ -76,13 +75,11 @@ public void startResizeBounds() { super.startResizeBounds(); target.startResizeBounds(); - isResizing = true; } public void endResizeBounds() { super.endResizeBounds(); target.endResizeBounds(); - isResizing = false; } public boolean pickAfterChildren(PPickPath pickPath) { diff --git a/extras/edu/umd/cs/piccolox/swt/PSWTCanvas.java b/extras/edu/umd/cs/piccolox/swt/PSWTCanvas.java index 64d266f..db8fcd2 100644 --- a/extras/edu/umd/cs/piccolox/swt/PSWTCanvas.java +++ b/extras/edu/umd/cs/piccolox/swt/PSWTCanvas.java @@ -89,7 +89,6 @@ private PZoomEventHandler zoomEventHandler; private boolean paintingImmediately; private boolean animatingOnLastPaint; - private boolean processInputsScheduled; /** * Construct a canvas with the basic scene graph consisting of a @@ -389,7 +388,6 @@ private boolean isButton1Pressed; private boolean isButton2Pressed; private boolean isButton3Pressed; - private boolean lastModifiers; /** * This method installs mouse and key listeners on the canvas that forward diff --git a/extras/edu/umd/cs/piccolox/swt/PSWTHandle.java b/extras/edu/umd/cs/piccolox/swt/PSWTHandle.java index 1473f48..0704363 100644 --- a/extras/edu/umd/cs/piccolox/swt/PSWTHandle.java +++ b/extras/edu/umd/cs/piccolox/swt/PSWTHandle.java @@ -44,7 +44,6 @@ import edu.umd.cs.piccolo.event.PDragSequenceEventHandler; import edu.umd.cs.piccolo.event.PInputEvent; import edu.umd.cs.piccolo.event.PInputEventFilter; -import edu.umd.cs.piccolo.util.PAffineTransform; import edu.umd.cs.piccolo.util.PBounds; import edu.umd.cs.piccolo.util.PDimension; import edu.umd.cs.piccolox.util.PLocator; @@ -65,8 +64,6 @@ public static Shape DEFAULT_HANDLE_SHAPE = new Ellipse2D.Float(0f, 0f, DEFAULT_HANDLE_SIZE, DEFAULT_HANDLE_SIZE); public static Color DEFAULT_COLOR = Color.white; - private static PAffineTransform TEMP_TRANSFORM = new PAffineTransform(); - private PLocator locator; private PDragSequenceEventHandler handleDragger; diff --git a/extras/edu/umd/cs/piccolox/swt/PSWTPath.java b/extras/edu/umd/cs/piccolox/swt/PSWTPath.java index 9307743..3b9f750 100644 --- a/extras/edu/umd/cs/piccolox/swt/PSWTPath.java +++ b/extras/edu/umd/cs/piccolox/swt/PSWTPath.java @@ -81,7 +81,6 @@ private static final Rectangle2D.Float TEMP_RECTANGLE = new Rectangle2D.Float(); private static final RoundRectangle2D.Float TEMP_ROUNDRECTANGLE = new RoundRectangle2D.Float(); private static final Ellipse2D.Float TEMP_ELLIPSE = new Ellipse2D.Float(); - private static final PAffineTransform TEMP_TRANSFORM = new PAffineTransform(); private static final Color DEFAULT_STROKE_PAINT = Color.black; private static final BasicStroke BASIC_STROKE = new BasicStroke(); private static final float PEN_WIDTH = 1f; diff --git a/extras/edu/umd/cs/piccolox/swt/PSWTStickyHandleManager.java b/extras/edu/umd/cs/piccolox/swt/PSWTStickyHandleManager.java index a5a4d2d..3740fbd 100644 --- a/extras/edu/umd/cs/piccolox/swt/PSWTStickyHandleManager.java +++ b/extras/edu/umd/cs/piccolox/swt/PSWTStickyHandleManager.java @@ -38,7 +38,6 @@ private PNode target; private PCamera camera; - private boolean isResizing; public PSWTStickyHandleManager(PCamera newCamera, PNode newTarget) { setCameraTarget(newCamera, newTarget); @@ -76,13 +75,11 @@ public void startResizeBounds() { super.startResizeBounds(); target.startResizeBounds(); - isResizing = true; } public void endResizeBounds() { super.endResizeBounds(); target.endResizeBounds(); - isResizing = false; } public boolean pickAfterChildren(PPickPath pickPath) {