|
Cytoscape 3.0.0-beta1 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface BookmarksUtil
A set of utility methods to manipulate the bookmarks.
Method Summary | |
---|---|
boolean |
containsBookmarks(Bookmarks pBookmarks,
String pCategoryName,
DataSource pDataSource)
Check if a bookmark is in the bookmarks. |
boolean |
deleteBookmark(Bookmarks pBookmarks,
String pCategoryName,
DataSource pDataSource)
Delete a bookmark (pDataSource) from the category (pCategoryName) in the bookmarks object (pBookmarks) |
String |
getAttribute(DataSource source,
String attrName)
Given the attribute name, return the value in a bookmark |
Category |
getCategory(String categoryName,
List<Category> categoryList)
Select specific category from a list of categories. |
List<DataSource> |
getDataSourceList(String categoryName,
List<Category> categoryList)
Traverse bookmark tree and get a list of data sources from the specified category. |
void |
saveBookmark(Bookmarks pBookmarks,
String pCategoryName,
DataSource pDataSource)
Store a bookmark object in bookmarks object |
Method Detail |
---|
List<DataSource> getDataSourceList(String categoryName, List<Category> categoryList)
categoryName
- the specified category to get a list of data sources from.categoryList
- the list of categories to traverse for the specified category.
Category getCategory(String categoryName, List<Category> categoryList)
categoryName
- the category to select.categoryList
- the list of categories to select from.
Category
that was selected.String getAttribute(DataSource source, String attrName)
source
- a bookmark objectattrName
- an attribute name
void saveBookmark(Bookmarks pBookmarks, String pCategoryName, DataSource pDataSource)
pBookmarks
- bookmarks objectpCategoryName
- category namepDataSource
- a single bookmarkboolean deleteBookmark(Bookmarks pBookmarks, String pCategoryName, DataSource pDataSource)
pBookmarks
- Bookmark object, which hold a set of bookmarkpCategoryName
- category namepDataSource
- a single bookmark object
boolean containsBookmarks(Bookmarks pBookmarks, String pCategoryName, DataSource pDataSource)
pBookmarks
- bookmarks objectpCategoryName
- category namepDataSource
- a bookmark
|
Cytoscape 3.0.0-beta1 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |