Cytoscape 3.0.1 API

org.cytoscape.io.util
Interface RecentlyOpenedTracker


public interface RecentlyOpenedTracker

Manages list of recently opened files. Currently, this is used for tracking recent sessions.


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.

Method Summary
 void add(URL newURL)
          Adds "newURL" to the list of recently opened file names and trims the list if it has exceeded its maximum length.
 URL getMostRecentlyOpenedURL()
          Returns the last addition or null if there are no URLs.
 List<URL> getRecentlyOpenedURLs()
          Returns the current list of recently opened file names.
 void writeOut()
          Writes the list of recently opened files to the file specified by the constructor argument.
 

Method Detail

getMostRecentlyOpenedURL

URL getMostRecentlyOpenedURL()
Returns the last addition or null if there are no URLs.

Returns:
the last addition or null if there are no URLs.

getRecentlyOpenedURLs

List<URL> getRecentlyOpenedURLs()
Returns the current list of recently opened file names.

Returns:
the current list of recently opened file names

add

void add(URL newURL)
Adds "newURL" to the list of recently opened file names and trims the list if it has exceeded its maximum length.

Parameters:
newURL - the URL to add to the list of recently opened file names.

writeOut

void writeOut()
              throws FileNotFoundException
Writes the list of recently opened files to the file specified by the constructor argument.

Throws:
FileNotFoundException

Cytoscape 3.0.1 API

Copyright 2011 Cytoscape Consortium. All rights reserved.