Author: pwang
Date: 2010-10-20 10:46:23 -0700 (Wed, 20 Oct 2010)
New Revision: 22310
Modified:
cytoscape/trunk/application/src/main/java/cytoscape/actions/ApplyLayoutAction.java
Log:
clean up
Modified:
cytoscape/trunk/application/src/main/java/cytoscape/actions/ApplyLayoutAction.java
===================================================================
---
cytoscape/trunk/application/src/main/java/cytoscape/actions/ApplyLayoutAction.java
2010-10-20 17:45:38 UTC (rev 22309)
+++
cytoscape/trunk/application/src/main/java/cytoscape/actions/ApplyLayoutAction.java
2010-10-20 17:46:23 UTC (rev 22310)
@@ -25,10 +25,9 @@
private CyLayoutAlgorithm alg;
private JButton applyLayoutButton;
- public ApplyLayoutAction(JButton button){
- applyLayoutButton = button;
+ public ApplyLayoutAction(){
- layoutName =
CytoscapeInit.getProperties().get("defaultLayoutAlgorithm").toString();
+ layoutName =
CytoscapeInit.getProperties().get("preferredLayoutAlgorithm").toString();
Cytoscape.getPropertyChangeSupport().addPropertyChangeListener(Cytoscape.PREFERENCES_UPDATED,this);
}
@@ -69,18 +68,18 @@
}
}
- public boolean isInMenuBar(){
- return false;
+ public void setButton(JButton button){
+ this.applyLayoutButton = button;
}
- public boolean isInToolBar(){
+ public boolean isInMenuBar(){
return false;
}
public void propertyChange(PropertyChangeEvent e) {
if
(e.getPropertyName().equalsIgnoreCase(Cytoscape.PREFERENCES_UPDATED)){
- String newLayoutName =
CytoscapeInit.getProperties().get("defaultLayoutAlgorithm").toString();
+ String newLayoutName =
CytoscapeInit.getProperties().get("preferredLayoutAlgorithm").toString();
if (!newLayoutName.equalsIgnoreCase(layoutName)){
layoutName = newLayoutName;
--
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.