[Patchanim-commit] SF.net SVN: patchanim:[256] trunk/patchanim/src/com/mebigfatguy/patchanim/ gui/
Brought to you by:
dbrosius
From: <dbr...@us...> - 2008-12-25 18:40:06
|
Revision: 256 http://patchanim.svn.sourceforge.net/patchanim/?rev=256&view=rev Author: dbrosius Date: 2008-12-25 18:40:04 +0000 (Thu, 25 Dec 2008) Log Message: ----------- reenable control point movement, as i see that the tween algorithm was flawed for x,y Modified Paths: -------------- trunk/patchanim/src/com/mebigfatguy/patchanim/gui/JColorControlPatchPanel.java Modified: trunk/patchanim/src/com/mebigfatguy/patchanim/gui/JColorControlPatchPanel.java =================================================================== --- trunk/patchanim/src/com/mebigfatguy/patchanim/gui/JColorControlPatchPanel.java 2008-12-25 18:35:51 UTC (rev 255) +++ trunk/patchanim/src/com/mebigfatguy/patchanim/gui/JColorControlPatchPanel.java 2008-12-25 18:40:04 UTC (rev 256) @@ -46,14 +46,14 @@ private static final long serialVersionUID = -2524694507912574529L; private static final double MINCLICKDISTANCESQ = 12.0; - //private static final double MINDRAGDISTANCESQ = 3.0; + private static final double MINDRAGDISTANCESQ = 3.0; private PatchCoords coords; - private PatchColor color; + private final PatchColor color; private JPatchSamplePanel sample; private JLabel colorLabel; private JTextField colorField; - private transient ValueDocumentListener docListener = new ValueDocumentListener(); + private transient final ValueDocumentListener docListener = new ValueDocumentListener(); private int selectedXPt; private int selectedYPt; @@ -180,8 +180,6 @@ } public boolean drag(Point p, Rectangle bounds) { - return false; -/* double inputX = ((p.x - bounds.x) * 100.0) / bounds.width; double inputY = ((p.y - bounds.y) * 100.0) / bounds.height; inputX = Math.min(100.0, Math.max(inputX, 0.0)); @@ -203,7 +201,6 @@ } return false; -*/ } private boolean setSelectedControlPt(Point p, Rectangle bounds) { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |