|
Cytoscape 2.8.0 API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcytoscape.visual.SubjectBase
cytoscape.visual.customgraphic.CustomGraphicsManager
public class CustomGraphicsManager
| Field Summary | |
|---|---|
static String |
METADATA_FILE
|
| Fields inherited from class cytoscape.visual.SubjectBase |
|---|
observers |
| Constructor Summary | |
|---|---|
CustomGraphicsManager()
Creates an image pool object and restore existing images from user resource directory. |
|
| Method Summary | |
|---|---|
void |
addGraphics(CyCustomGraphics graphics,
URL source)
Add a custom graphics to current session. |
Collection<CyCustomGraphics> |
getAll()
Get a collection of all Custom Graphics in current session. |
CyCustomGraphics |
getByID(Long id)
Get a Custom Graphics by integer ID. |
CyCustomGraphics |
getBySourceURL(URL sourceURL)
Get Custom Graphics by source URL. |
SortedSet<Long> |
getIDSet()
|
Properties |
getMetadata()
Convert current list of custom graphics into Property object. |
Boolean |
isUsedInCurrentSession(CyCustomGraphics graphics)
|
void |
propertyChange(PropertyChangeEvent evt)
Save images to local disk when exiting from Cytoscape. |
void |
removeAll()
Remove all custom graphics from memory. |
void |
removeGraphics(Long id)
Remove graphics from current session (memory). |
void |
restoreImages()
Restore images from .cytoscape/images dir. |
void |
setUsedInCurrentSession(CyCustomGraphics graphics,
Boolean isUsed)
|
| Methods inherited from class cytoscape.visual.SubjectBase |
|---|
addChangeListener, fireStateChanged, removeChangeListener |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String METADATA_FILE
| Constructor Detail |
|---|
public CustomGraphicsManager()
| Method Detail |
|---|
public void restoreImages()
public void addGraphics(CyCustomGraphics graphics,
URL source)
hash - : Hasn code of image objectgraphics - : Actual custom graphics objectsource - : Source URL of graphics (if exists. Can be null)public void removeGraphics(Long id)
id - : ID of graphics (hash code)public CyCustomGraphics getByID(Long id)
hash - Hash code of Custom Graphics object
public CyCustomGraphics getBySourceURL(URL sourceURL)
sourceURL -
public Collection<CyCustomGraphics> getAll()
public void removeAll()
public Properties getMetadata()
public void propertyChange(PropertyChangeEvent evt)
propertyChange in interface PropertyChangeListenerpublic SortedSet<Long> getIDSet()
public Boolean isUsedInCurrentSession(CyCustomGraphics graphics)
public void setUsedInCurrentSession(CyCustomGraphics graphics,
Boolean isUsed)
|
Cytoscape 2.8.0 API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||