Cytoscape 3.0.1 API

org.cytoscape.view.layout
Interface CyLayoutAlgorithmManager


public interface CyLayoutAlgorithmManager

This class provides access to the available layout algorithms.


Cytoscape Backwards Compatibility (API Interface): We expect that this interface will be used but not implemented by developers using this interface. As such, we reserve the right to add methods to the interface as part of minor version upgrades. We will not remove methods for any changes other than major version upgrades.

Field Summary
static String DEFAULT_LAYOUT_NAME
          The name of the default layout.
static String DEFAULT_LAYOUT_PROPERTY_NAME
          The name of the default layout property.
 
Method Summary
 Collection<CyLayoutAlgorithm> getAllLayouts()
          Returns a collection of all available layouts.
 CyLayoutAlgorithm getDefaultLayout()
          Returns the default layout.
 CyLayoutAlgorithm getLayout(String name)
          Returns a layout algorithm of the specified name and null if no algorithm exists with that name.
 

Field Detail

DEFAULT_LAYOUT_NAME

static final String DEFAULT_LAYOUT_NAME
The name of the default layout.

See Also:
Constant Field Values

DEFAULT_LAYOUT_PROPERTY_NAME

static final String DEFAULT_LAYOUT_PROPERTY_NAME
The name of the default layout property.

See Also:
Constant Field Values
Method Detail

getLayout

CyLayoutAlgorithm getLayout(String name)
Returns a layout algorithm of the specified name and null if no algorithm exists with that name.

Parameters:
name - The name of the algorithm.
Returns:
a layout algorithm of the specified name and null if no algorithm exists with that name.

getAllLayouts

Collection<CyLayoutAlgorithm> getAllLayouts()
Returns a collection of all available layouts.

Returns:
a collection of all available layouts.

getDefaultLayout

CyLayoutAlgorithm getDefaultLayout()
Returns the default layout. The default layout name can be specified using the DEFAULT_LAYOUT_PROPERTY_NAME property.

Returns:
the default layout.

Cytoscape 3.0.1 API

Copyright 2011 Cytoscape Consortium. All rights reserved.