|
Cytoscape 2.5.1 (c) 2006,2007 ISB, MSKCC, UCSD | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcytoscape.layout.LayoutProperties
public class LayoutProperties
The LayoutProperties class is a helper class to support the management of settings and properties for layout algorithms that implement CyLayoutAlgorithm or extend AbstractLayout. LayoutProperties objects maintain a list of Tunables that are supplied by the individual algorithms. Each Tunable represents a value that should be loaded from the Cytoscape properties file, and made available as a setting in the LayoutSettingsDialog. Tunables are added to the LayoutProperties using the add method and are retrieved with the get method.
| Constructor Summary | |
|---|---|
LayoutProperties(String propertyPrefix)
Constructor. |
|
| Method Summary | |
|---|---|
void |
add(Tunable tunable)
This method is used to add a new Tunable to the LayoutProperties list. |
Tunable |
get(String name)
This method is used to get the Tunable named name from this LayoutProperties. |
HashMap |
getProperties()
getProperties is used to extract properties from the Cytoscape properties file. |
JPanel |
getTunablePanel()
This method returns a JPanel that represents the all of the Tunables associated with this LayoutProperties object. |
String |
getValue(String name)
This method is used to get the value from the Tunable named name from this LayoutProperties. |
void |
initializeProperties()
This method is used to read the properties from the Cytoscape properties file and set the values for that property in the appropriate Tunable. |
void |
revertProperties()
revertProperties is used primarily by the settings dialog mechanism when the user does a "Cancel". |
void |
saveProperties()
saveProperties is used to add modified properties to the Cytoscape properties so they can be saved in the properties file. |
void |
setProperty(String property,
String value)
DOCUMENT ME! |
void |
setSavedProperty(String property,
String value)
DOCUMENT ME! |
void |
updateValues()
This method calls the updateValues method of each Tunable that is part of this LayoutProperty. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LayoutProperties(String propertyPrefix)
propertyPrefix - String representing the prefix to be used
when pulling properties from the property
list.| Method Detail |
|---|
public void add(Tunable tunable)
tunable - The Tunable to add to this LayoutPropertiespublic Tunable get(String name)
name - The name of the Tunable to retrieve.
public String getValue(String name)
name - The name of the Tunable whose value you
want to retrieve.
public void updateValues()
public HashMap getProperties()
public void saveProperties()
public void setProperty(String property,
String value)
property - DOCUMENT ME!value - DOCUMENT ME!
public void setSavedProperty(String property,
String value)
property - DOCUMENT ME!value - DOCUMENT ME!public void revertProperties()
public void initializeProperties()
public JPanel getTunablePanel()
|
www.cytoscape.org | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||