org.cytoscape.cyni
Class AbstractCyniAlgorithmContext

java.lang.Object
  extended by org.cytoscape.cyni.AbstractCyniAlgorithmContext

public class AbstractCyniAlgorithmContext
extends Object


Field Summary
protected  boolean selectedOnly
          Indicates that only selected rows should be used.
 
Constructor Summary
AbstractCyniAlgorithmContext(boolean supportsSelectedOnly)
          The constructor
 
Method Summary
 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
 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

selectedOnly

protected boolean selectedOnly
Indicates that only selected rows should be used.

Constructor Detail

AbstractCyniAlgorithmContext

public AbstractCyniAlgorithmContext(boolean supportsSelectedOnly)
The constructor

Method Detail

setSelectedOnly

public void setSelectedOnly(boolean selectedOnly)
Set the flag that indicates that this algorithm should only operate on the currently selected rows.

Parameters:
selectedOnly - set to "true" if the algorithm should only apply to selected rows only

useSelectedOnly

public boolean useSelectedOnly()
Returns whether the algorithm allows working with only selected rows

Returns:
True if the algorithm allows working with only selected rows

getAttributesList

public 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

Parameters:
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 columns
type - The type of the columns

getAllAttributesStrings

public List<String> getAllAttributesStrings(org.cytoscape.model.CyTable table)
Returns a list of the names of the columns that contains strings

Parameters:
table - The CyTable to get the names of attributes.
Returns:
The list of column names

getAllAttributesNumbers

public List<String> getAllAttributesNumbers(org.cytoscape.model.CyTable table)
Returns a list of the names of the columns that contains numbers(Float,Integer,Double)

Parameters:
table - The CyTable to get the names of attributes.
Returns:
The list of column names


Copyright © 2013. All Rights Reserved.