|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.cytoscape.cyni.CyniAlgorithmContext
public class CyniAlgorithmContext
This is a class that contains several methods that are needed to display the context of a Cyni algorithm
| Field Summary | |
|---|---|
protected boolean |
selectedOnly
Indicates that only selected rows should be used. |
| Constructor Summary | |
|---|---|
CyniAlgorithmContext(boolean supportsSelectedOnly)
The constructor |
|
| Method Summary | |
|---|---|
boolean |
contextContentValid()
This method checks the context values to validate them. |
boolean |
contextHasOwnSwingPanel()
This method tells cytoscape if this algorithm provides its own swing Panel to display the context parameters. |
List<String> |
getAllAttributesNumbers(org.cytoscape.model.CyTable table)
Returns a list of the names of the columns that contains numbers(Float,Integer,Double) |
List<String> |
getAllAttributesStrings(org.cytoscape.model.CyTable table)
Returns a list of the names of the columns that contains strings |
void |
getAttributesList(List<String> attributeList,
org.cytoscape.model.CyTable table,
String prefix,
Object type)
Fills a list with names of columns that has the same type that the one requested |
JPanel |
getContextSwingPanel()
Returns the swing Panel that will be used instead of the tunables panel |
void |
setSelectedOnly(boolean selectedOnly)
Set the flag that indicates that this algorithm should only operate on the currently selected rows. |
boolean |
useSelectedOnly()
Returns whether the algorithm allows working with only selected rows |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected boolean selectedOnly
| Constructor Detail |
|---|
public CyniAlgorithmContext(boolean supportsSelectedOnly)
| Method Detail |
|---|
public boolean contextHasOwnSwingPanel()
public JPanel getContextSwingPanel()
public boolean contextContentValid()
public void setSelectedOnly(boolean selectedOnly)
selectedOnly - set to "true" if the algorithm should only apply to selected
rows onlypublic boolean useSelectedOnly()
public void getAttributesList(List<String> attributeList,
org.cytoscape.model.CyTable table,
String prefix,
Object type)
attributeList - The list of names of columns.table - The CyTable to get the names of attributes.prefix - The prefix that could be added to the name of columnstype - The type of the columnspublic List<String> getAllAttributesStrings(org.cytoscape.model.CyTable table)
table - The CyTable to get the names of attributes.
public List<String> getAllAttributesNumbers(org.cytoscape.model.CyTable table)
table - The CyTable to get the names of attributes.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||