|
Cytoscape 2.8.0 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object cytoscape.util.ModulePropertiesImpl
public class ModulePropertiesImpl
Field Summary | |
---|---|
protected String |
moduleType
|
protected HashMap<String,String> |
propertyMap
|
protected String |
propertyPrefix
|
protected HashMap<String,String> |
savedPropertyMap
|
protected List<Tunable> |
tunablesList
|
protected HashMap<String,Tunable> |
tunablesMap
|
Constructor Summary | |
---|---|
ModulePropertiesImpl(String propertyPrefix,
String moduleType)
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. |
protected String |
getPrefix()
|
HashMap |
getProperties()
getProperties is used to extract properties from the Cytoscape properties file. |
List<String> |
getTunableList()
This method is used to get the list of available Tunables for this algorithm. |
List<Tunable> |
getTunables()
This method returns list of tunables. |
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. |
protected void |
setModuleType(String type)
|
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 |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected HashMap<String,String> propertyMap
protected HashMap<String,String> savedPropertyMap
protected HashMap<String,Tunable> tunablesMap
protected List<Tunable> tunablesList
protected String propertyPrefix
protected String moduleType
Constructor Detail |
---|
public ModulePropertiesImpl(String propertyPrefix, String moduleType)
propertyPrefix
- String representing the prefix to be used
when pulling properties from the property
list.Method Detail |
---|
public void add(Tunable tunable)
add
in interface ModuleProperties
tunable
- The Tunable to add to this LayoutPropertiespublic Tunable get(String name)
get
in interface ModuleProperties
name
- The name of the Tunable to retrieve.
public List<String> getTunableList()
getTunableList
in interface ModuleProperties
public String getValue(String name)
getValue
in interface ModuleProperties
name
- The name of the Tunable whose value you
want to retrieve.
public void updateValues()
updateValues
in interface ModuleProperties
public HashMap getProperties()
getProperties
in interface ModuleProperties
public void saveProperties()
saveProperties
in interface ModuleProperties
public void setProperty(String property, String value)
setProperty
in interface ModuleProperties
property
- DOCUMENT ME!value
- DOCUMENT ME!public void setSavedProperty(String property, String value)
setSavedProperty
in interface ModuleProperties
property
- DOCUMENT ME!value
- DOCUMENT ME!public void revertProperties()
revertProperties
in interface ModuleProperties
public void initializeProperties()
initializeProperties
in interface ModuleProperties
public List<Tunable> getTunables()
ModuleProperties
getTunables
in interface ModuleProperties
protected void setModuleType(String type)
protected String getPrefix()
|
Cytoscape 2.8.0 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |