Author: mmichaud
Date: 2009-05-29 07:18:36 -0700 (Fri, 29 May 2009)
New Revision: 16848
Removed:
core3/work-swing-impl/trunk/src/main/java/org/cytoscape/work/internal/tunables/BoundedDoubleHandler.java
core3/work-swing-impl/trunk/src/main/java/org/cytoscape/work/internal/tunables/BoundedFloatHandler.java
core3/work-swing-impl/trunk/src/main/java/org/cytoscape/work/internal/tunables/BoundedIntegerHandler.java
core3/work-swing-impl/trunk/src/main/java/org/cytoscape/work/internal/tunables/BoundedLongHandler.java
core3/work-swing-impl/trunk/src/main/java/org/cytoscape/work/internal/tunables/utils/Group.java
core3/work-swing-impl/trunk/src/main/java/org/cytoscape/work/internal/tunables/utils/myButton.java
Log:
[]
Deleted:
core3/work-swing-impl/trunk/src/main/java/org/cytoscape/work/internal/tunables/BoundedDoubleHandler.java
===================================================================
---
core3/work-swing-impl/trunk/src/main/java/org/cytoscape/work/internal/tunables/BoundedDoubleHandler.java
2009-05-29 14:15:22 UTC (rev 16847)
+++
core3/work-swing-impl/trunk/src/main/java/org/cytoscape/work/internal/tunables/BoundedDoubleHandler.java
2009-05-29 14:18:36 UTC (rev 16848)
@@ -1,74 +0,0 @@
-package org.cytoscape.work.internal.tunables;
-
-import javax.swing.*;
-
-import org.cytoscape.work.util.BoundedDouble;
-import org.cytoscape.work.internal.tunables.utils.myBoundedSwing;
-import org.cytoscape.work.internal.tunables.utils.mySlider;
-import org.cytoscape.work.*;
-import org.cytoscape.work.Tunable.Param;
-
-import java.awt.BorderLayout;
-import java.awt.Font;
-import java.lang.reflect.Field;
-
-
-public class BoundedDoubleHandler extends AbstractGuiHandler {
-
- private BoundedDouble myBounded;
- private Double initValue;
- private String title;
- private boolean useslider=false;
- private mySlider slider;
- private myBoundedSwing boundedField;
-
- protected BoundedDoubleHandler(Field f, Object o, Tunable t) {
- super(f,o,t);
- try {
- this.myBounded = (BoundedDouble)f.get(o);
- } catch (IllegalAccessException iae){iae.printStackTrace();}
-
- this.initValue = myBounded.getValue();
- this.title = t.description();
- for ( Param s :
t.flag())if(s.equals(Param.slider))useslider=true;
- panel = new JPanel(new BorderLayout());
- if(useslider){
- JLabel label = new JLabel(title);
- label.setFont(new Font(null, Font.PLAIN,12));
- panel.add(label,BorderLayout.WEST);
- slider = new
mySlider(title,myBounded.getLowerBound(),myBounded.getUpperBound(),myBounded.getValue(),myBounded.isLowerBoundStrict(),myBounded.isUpperBoundStrict());
- // Add ChangeListener????????
- slider.addChangeListener(this);
- panel.add(slider,BorderLayout.EAST);
- }
- else{
- JLabel label = new JLabel( title + " (max: " +
myBounded.getLowerBound().toString() + " min: " +
myBounded.getUpperBound().toString() + ")" );
- label.setFont(new Font(null, Font.PLAIN,12));
- boundedField = new
myBoundedSwing(myBounded.getValue(),myBounded.getLowerBound(),myBounded.getUpperBound(),myBounded.isLowerBoundStrict(),myBounded.isUpperBoundStrict());
- panel.add(label,BorderLayout.WEST);
- panel.add(boundedField,BorderLayout.EAST);
- }
- }
-
-
- public void handle() {
- if(useslider==true){
- myBounded.setValue(slider.getValue().doubleValue());
- }
- else{
-
myBounded.setValue(boundedField.getFieldValue().doubleValue());
- }
- }
-
-
- public void resetValue(){
-// System.out.println("#########Value will be reset to initial
value = " + initValue + "#########");
- myBounded.setValue(initValue);
- }
-
-
- public String getState() {
- return myBounded.getValue().toString();
- }
-
-}
Deleted:
core3/work-swing-impl/trunk/src/main/java/org/cytoscape/work/internal/tunables/BoundedFloatHandler.java
===================================================================
---
core3/work-swing-impl/trunk/src/main/java/org/cytoscape/work/internal/tunables/BoundedFloatHandler.java
2009-05-29 14:15:22 UTC (rev 16847)
+++
core3/work-swing-impl/trunk/src/main/java/org/cytoscape/work/internal/tunables/BoundedFloatHandler.java
2009-05-29 14:18:36 UTC (rev 16848)
@@ -1,74 +0,0 @@
-package org.cytoscape.work.internal.tunables;
-
-
-import javax.swing.*;
-
-import org.cytoscape.work.Tunable;
-import org.cytoscape.work.Tunable.Param;
-import org.cytoscape.work.util.BoundedFloat;
-import org.cytoscape.work.internal.tunables.utils.myBoundedSwing;
-import org.cytoscape.work.internal.tunables.utils.mySlider;
-
-import java.awt.BorderLayout;
-import java.awt.Font;
-import java.awt.event.ActionListener;
-import java.lang.reflect.*;
-
-
-public class BoundedFloatHandler extends AbstractGuiHandler {
-
- private BoundedFloat myBounded;
- private String title;
- private boolean useslider=false;
- private mySlider slider;
- private myBoundedSwing boundedField;
- private float initValue;
-
- protected BoundedFloatHandler(Field f, Object o, Tunable t) {
- super(f,o,t);
- try {
- this.myBounded = (BoundedFloat)f.get(o);
- } catch (IllegalAccessException iae) {iae.printStackTrace();}
-
- this.initValue = myBounded.getValue().floatValue();
- this.title = t.description();
- for ( Param s :
t.flag())if(s.equals(Param.slider))useslider=true;
- panel = new JPanel(new BorderLayout());
- if(useslider){
- JLabel label = new JLabel(title);
- label.setFont(new Font(null, Font.PLAIN,12));
- slider = new
mySlider(title,myBounded.getLowerBound(),myBounded.getUpperBound(),myBounded.getValue(),myBounded.isLowerBoundStrict(),myBounded.isUpperBoundStrict());
- // Add Change Listener????
- slider.addChangeListener(this);
- panel.add(label,BorderLayout.WEST);
- panel.add(slider,BorderLayout.EAST);
- }
- else{
- JLabel label = new JLabel( title + " (max: " +
myBounded.getLowerBound().toString() + " min: " +
myBounded.getUpperBound().toString() + ")" );
- label.setFont(new Font(null, Font.PLAIN,12));
- boundedField = new
myBoundedSwing(myBounded.getValue(),myBounded.getLowerBound(),myBounded.getUpperBound(),myBounded.isLowerBoundStrict(),myBounded.isUpperBoundStrict());
- panel.add(label,BorderLayout.WEST);
- panel.add(boundedField,BorderLayout.EAST);
- }
- }
-
- public void handle() {
- if(useslider==true){
- myBounded.setValue(slider.getValue().floatValue());
- }
- else{
- myBounded.setValue(boundedField.getFieldValue().floatValue());
- }
- }
-
-
- public void resetValue(){
-// System.out.println("#########Value will be reset to initial
value = "+ initValue + "#########");
- myBounded.setValue(initValue);
- }
-
-
- public String getState() {
- return myBounded.getValue().toString();
- }
-}
Deleted:
core3/work-swing-impl/trunk/src/main/java/org/cytoscape/work/internal/tunables/BoundedIntegerHandler.java
===================================================================
---
core3/work-swing-impl/trunk/src/main/java/org/cytoscape/work/internal/tunables/BoundedIntegerHandler.java
2009-05-29 14:15:22 UTC (rev 16847)
+++
core3/work-swing-impl/trunk/src/main/java/org/cytoscape/work/internal/tunables/BoundedIntegerHandler.java
2009-05-29 14:18:36 UTC (rev 16848)
@@ -1,73 +0,0 @@
-package org.cytoscape.work.internal.tunables;
-
-
-import javax.swing.*;
-
-import org.cytoscape.work.Tunable;
-import org.cytoscape.work.Tunable.Param;
-import org.cytoscape.work.util.BoundedInteger;
-import org.cytoscape.work.internal.tunables.utils.myBoundedSwing;
-import org.cytoscape.work.internal.tunables.utils.mySlider;
-
-import java.awt.BorderLayout;
-import java.awt.Font;
-import java.awt.event.ActionListener;
-import java.lang.reflect.*;
-
-public class BoundedIntegerHandler extends AbstractGuiHandler{
-
- private BoundedInteger myBounded;
- private String title;
- private boolean useslider=false;
- private mySlider slider;
- private myBoundedSwing boundedField;
- private int initValue;
-
- protected BoundedIntegerHandler(Field f, Object o, Tunable t) {
- super(f,o,t);
- try {
- this.myBounded = (BoundedInteger)f.get(o);
- } catch (IllegalAccessException iae) {iae.printStackTrace();}
-
- this.initValue = myBounded.getValue().intValue();
- this.title = t.description();
- for ( Param s :
t.flag())if(s.equals(Param.slider))useslider=true;
-
- panel = new JPanel(new BorderLayout());
- if(useslider){
- JLabel label = new JLabel(title);
- label.setFont(new Font(null, Font.PLAIN,12));
- panel.add(label,BorderLayout.WEST);
- slider = new
mySlider(title,myBounded.getLowerBound(),myBounded.getUpperBound(),myBounded.getValue(),myBounded.isLowerBoundStrict(),myBounded.isUpperBoundStrict());
- //Add ChangeListener??
- slider.addChangeListener(this);
- panel.add(slider,BorderLayout.EAST);
- }
- else{
- JLabel label = new JLabel( title + " (max: " +
myBounded.getLowerBound().toString() + " min: " +
myBounded.getUpperBound().toString() + ")" );
- label.setFont(new Font(null, Font.PLAIN,12));
- boundedField = new
myBoundedSwing(myBounded.getValue(),myBounded.getLowerBound(),myBounded.getUpperBound(),myBounded.isLowerBoundStrict(),myBounded.isUpperBoundStrict());
- panel.add(label,BorderLayout.WEST);
- panel.add(boundedField,BorderLayout.EAST);
- }
- }
-
- public void handle() {
- if(useslider==true){
- myBounded.setValue(slider.getValue().intValue());
- }
- else{
- myBounded.setValue(boundedField.getFieldValue().intValue());
- }
- }
-
- public void resetValue(){
-// System.out.println("#########Value will be reset to initial
value = "+initValue + "#########");
- myBounded.setValue(initValue);
- }
-
-
- public String getState() {
- return myBounded.getValue().toString();
- }
-}
Deleted:
core3/work-swing-impl/trunk/src/main/java/org/cytoscape/work/internal/tunables/BoundedLongHandler.java
===================================================================
---
core3/work-swing-impl/trunk/src/main/java/org/cytoscape/work/internal/tunables/BoundedLongHandler.java
2009-05-29 14:15:22 UTC (rev 16847)
+++
core3/work-swing-impl/trunk/src/main/java/org/cytoscape/work/internal/tunables/BoundedLongHandler.java
2009-05-29 14:18:36 UTC (rev 16848)
@@ -1,75 +0,0 @@
-package org.cytoscape.work.internal.tunables;
-
-
-import javax.swing.*;
-
-import org.cytoscape.work.Tunable;
-import org.cytoscape.work.Tunable.Param;
-import org.cytoscape.work.util.BoundedLong;
-import org.cytoscape.work.internal.tunables.utils.myBoundedSwing;
-import org.cytoscape.work.internal.tunables.utils.mySlider;
-
-import java.awt.BorderLayout;
-import java.awt.Font;
-import java.awt.event.ActionListener;
-import java.lang.reflect.*;
-
-
-public class BoundedLongHandler extends AbstractGuiHandler{
-
- private BoundedLong myBounded;
- private String title;
- private boolean useslider=false;
- private mySlider slider;
- private myBoundedSwing boundedField;
- private long initValue;
-
- protected BoundedLongHandler(Field f, Object o, Tunable t) {
- super(f,o,t);
- try {
- this.myBounded = (BoundedLong)f.get(o);
- } catch (IllegalAccessException iae) {iae.printStackTrace();}
-
- this.initValue = myBounded.getValue().longValue();
- this.title = t.description();
- for ( Param s :
t.flag())if(s.equals(Param.slider))useslider=true;
-
- panel = new JPanel(new BorderLayout());
- if(useslider){
- JLabel label = new JLabel(title);
- label.setFont(new Font(null, Font.PLAIN,12));
- panel.add(label,BorderLayout.WEST);
- slider = new
mySlider(title,myBounded.getLowerBound(),myBounded.getUpperBound(),myBounded.getValue(),myBounded.isLowerBoundStrict(),myBounded.isUpperBoundStrict());
- //Add ChangeListener???
- slider.addChangeListener(this);
- panel.add(slider,BorderLayout.EAST);
- }
- else{
- JLabel label = new JLabel( title + " (max: " +
myBounded.getLowerBound().toString() + " min: " +
myBounded.getUpperBound().toString() + ")" );
- label.setFont(new Font(null, Font.PLAIN,12));
- boundedField = new
myBoundedSwing(myBounded.getValue(),myBounded.getLowerBound(),myBounded.getUpperBound(),myBounded.isLowerBoundStrict(),myBounded.isUpperBoundStrict());
- panel.add(label,BorderLayout.WEST);
- panel.add(boundedField,BorderLayout.EAST);
- }
- }
-
-
- public void handle() {
- if(useslider==true){
- myBounded.setValue(slider.getValue().longValue());
- }
- else{
- myBounded.setValue(boundedField.getFieldValue().longValue());
- }
- }
-
- public void resetValue(){
-// System.out.println("#########Value will be reset to initial
value = "+initValue + "#########");
- myBounded.setValue(initValue);
- }
-
-
- public String getState() {
- return myBounded.getValue().toString();
- }
-}
Deleted:
core3/work-swing-impl/trunk/src/main/java/org/cytoscape/work/internal/tunables/utils/Group.java
===================================================================
---
core3/work-swing-impl/trunk/src/main/java/org/cytoscape/work/internal/tunables/utils/Group.java
2009-05-29 14:15:22 UTC (rev 16847)
+++
core3/work-swing-impl/trunk/src/main/java/org/cytoscape/work/internal/tunables/utils/Group.java
2009-05-29 14:18:36 UTC (rev 16848)
@@ -1,28 +0,0 @@
-package org.cytoscape.work.internal.tunables.utils;
-
-import java.util.ArrayList;
-
-
-public class Group{
-
- ArrayList<String> title;
- boolean collapsed;
-
- public Group(ArrayList<String> group,boolean collapsed){
- this.title = group;
- this.collapsed = collapsed;
- }
-
- public ArrayList<String> getValue(){
- return title;
- }
-
- public boolean isCollapsed(){
- return collapsed;
- }
-
- public void setCollapsed(boolean input){
- collapsed = input;
- }
-
-}
\ No newline at end of file
Deleted:
core3/work-swing-impl/trunk/src/main/java/org/cytoscape/work/internal/tunables/utils/myButton.java
===================================================================
---
core3/work-swing-impl/trunk/src/main/java/org/cytoscape/work/internal/tunables/utils/myButton.java
2009-05-29 14:15:22 UTC (rev 16847)
+++
core3/work-swing-impl/trunk/src/main/java/org/cytoscape/work/internal/tunables/utils/myButton.java
2009-05-29 14:18:36 UTC (rev 16848)
@@ -1,20 +0,0 @@
-package org.cytoscape.work.internal.tunables.utils;
-
-import javax.swing.JButton;
-
-
-...@suppresswarnings("serial")
-public class myButton extends JButton{
-
- private Boolean selected;
-
- public void setselected(Boolean value){
- selected = value;
- }
-
- public Boolean getselected(){
- return selected;
- }
-
-
-}
\ No newline at end of file
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"cytoscape-cvs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/cytoscape-cvs?hl=en
-~----------~----~----~----~------~----~------~--~---