Author: ks156
Date: 2009-01-09 15:41:26 +0100 (Fri, 09 Jan 2009)
New Revision: 3401
Modified:
software_suite_v2/software/tools/attitunesStudio/trunk/src/GUI/AttituneCmdConf.java
Log:
* Forgot sme function in my previous commit. Now it should be OK.
Modified:
software_suite_v2/software/tools/attitunesStudio/trunk/src/GUI/AttituneCmdConf.java
===================================================================
---
software_suite_v2/software/tools/attitunesStudio/trunk/src/GUI/AttituneCmdConf.java
2009-01-09 14:21:55 UTC (rev 3400)
+++
software_suite_v2/software/tools/attitunesStudio/trunk/src/GUI/AttituneCmdConf.java
2009-01-09 14:41:26 UTC (rev 3401)
@@ -529,7 +529,7 @@
myPanel.add(jSpinnerCount, new GridBagConstraints(3, 0, 1, 1,
0.0, 0.0, GridBagConstraints.CENTER, GridBagConstraints.HORIZONTAL, new
Insets(0, 0, 0, 0), 0, 0));
jSliderSpeed.setMinimum(10);
jSliderSpeed.setMaximum(100);
-
jSliderSpeed.setValue(((Double)selectedStruct.get("speed")).intValue());
+
jSliderSpeed.setValue((100-((Double)selectedStruct.get("speed")).intValue()));
myPanel.add(jSliderSpeed, new GridBagConstraints(3, 1, 1, 1,
0.0, 0.0, GridBagConstraints.CENTER, GridBagConstraints.HORIZONTAL, new
Insets(0, 0, 0, 0), 0, 0));
}
@@ -550,7 +550,7 @@
selectedStruct.put("count",
((Integer)jSpinnerCount.getValue()).doubleValue());
selectedStruct.put("speed",
(100-((Integer)jSliderSpeed.getValue()).doubleValue()));
Double length =
((Integer)jSpinnerCount.getValue()).doubleValue() *
- ((Integer)jSliderSpeed.getValue()).doubleValue() *
0.002;
+ (100-((Integer)jSliderSpeed.getValue()).doubleValue())
* 0.002;
attBlockViewer.updateBlock(attBlockViewer.getFocusedBlock(),
selectedStruct);
attBlockViewer.getFocusedBlock().setLength(length);
attBlockViewer.getFocusedBlock().setPosition(position);
------------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It is the best place to buy or sell services for
just about anything Open Source.
http://p.sf.net/sfu/Xq1LFB
_______________________________________________
Tux-droid-svn mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tux-droid-svn