public interface VisualMappingManager
Add/Remove operations will be done through events. For more information, read JavaDoc for VisualStyleAddedEvent and VisualStyleAboutToBeRemovedEvent.
Module: vizmap-api
To use this in your app, include the following dependency in your POM:
<dependency> <groupId>org.cytoscape</groupId> <artifactId>vizmap-api</artifactId> </dependency>
Modifier and Type | Method and Description |
---|---|
void |
addVisualStyle(VisualStyle visualStyle)
Add a new
VisualStyle to this manager. |
Set<VisualLexicon> |
getAllVisualLexicon()
Returns a Set of all
VisualLexicon s. |
Set<VisualStyle> |
getAllVisualStyles()
Returns all available VisualStyles managed by this object.
|
VisualStyle |
getCurrentVisualStyle()
Returns currently selected Visual Style.
|
VisualStyle |
getDefaultVisualStyle()
Return default
VisualStyle . |
VisualStyle |
getVisualStyle(CyNetworkView networkViewModel)
Returns the VisualStyle associated with the target network
view model.
|
void |
removeVisualStyle(VisualStyle visualStyle)
Remove a VisualStyle from this manager.
|
void |
setCurrentVisualStyle(VisualStyle visualStyle)
Set the specified
VisualStyle as the current one. |
void |
setVisualStyle(VisualStyle visualStyle,
CyNetworkView networkViewModel)
Set a VisualStyle to the target network view model.
|
void setVisualStyle(VisualStyle visualStyle, CyNetworkView networkViewModel)
visualStyle
- Visual Style to be set.networkViewModel
- The target network view model.VisualStyle getVisualStyle(CyNetworkView networkViewModel)
networkViewModel
- Target network viewSet<VisualStyle> getAllVisualStyles()
void addVisualStyle(VisualStyle visualStyle)
VisualStyle
to this manager.visualStyle
- new visual style to be registered.void removeVisualStyle(VisualStyle visualStyle)
visualStyle
- VisualStyle to be removed.VisualStyle getDefaultVisualStyle()
VisualStyle
. This is just an empty visual style.void setCurrentVisualStyle(VisualStyle visualStyle)
VisualStyle
as the current one.visualStyle
- the VisualStyle
that will become the current style.VisualStyle getCurrentVisualStyle()
Set<VisualLexicon> getAllVisualLexicon()
VisualLexicon
s.VisualLexicon
s.Copyright 2011-2015 Cytoscape Consortium. All rights reserved.