|
Cytoscape 3.0.0-alpha8-SNAPSHOT API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface VisualStyle
A VisualStyle is a collection of VisualMappingFunctions and default values that define how a set of attributes is mapped to visual properties of View objects.
| Method Summary | ||
|---|---|---|
void |
addVisualMappingFunction(VisualMappingFunction<?,?> mapping)
Add a new VisualMappingFunction to this VisualStyle. |
|
void |
apply(View<? extends CyIdentifiable> view)
Apply visual only to a individual View Object (node/edge), not the entire network view. |
|
Collection<VisualMappingFunction<?,?>> |
getAllVisualMappingFunctions()
Returns all VisualMappingFunctions in this style. |
|
|
getDefaultValue(VisualProperty<V> vp)
Returns default value for the VisualProperty. |
|
String |
getTitle()
Returns name of this visual style. |
|
|
getVisualMappingFunction(VisualProperty<V> vp)
Get current VisualMappingFunction for the VisualProperty. |
|
void |
removeVisualMappingFunction(VisualProperty<?> vp)
Remove a VisualMappingFunction for the VisualProperty. |
|
|
setDefaultValue(VisualProperty<V> vp,
S value)
Set default value for the VisualProperty. |
|
void |
setTitle(String title)
Set new title for this VisualStyle. |
|
| Method Detail |
|---|
String getTitle()
Title of Visual Style is a mutable field and may NOT be unique.
void setTitle(String title)
title - New title of this VisualStyle.void addVisualMappingFunction(VisualMappingFunction<?,?> mapping)
mapping - new VisualMappingFunction to be added.void removeVisualMappingFunction(VisualProperty<?> vp)
vp - VisualMappingFunction associated with this VisualProperty will be removed.<V> VisualMappingFunction<?,V> getVisualMappingFunction(VisualProperty<V> vp)
V - Data type of VisualProperty.vp - visual property associated with the target mapping.
Collection<VisualMappingFunction<?,?>> getAllVisualMappingFunctions()
<V> V getDefaultValue(VisualProperty<V> vp)
V - Data type of VisualPropertyvp - target VisualProperty
<V,S extends V> void setDefaultValue(VisualProperty<V> vp,
S value)
V - Data type of VisualPropertyS - Data type of actual default value. This can be same as V or its child classes.vp - target VisualPropertyvalue - Value to be set as default. This can be child type of V. For example,
if V is Number, S can be Double, Integer, etc.void apply(View<? extends CyIdentifiable> view)
viewObject -
|
Cytoscape 3.0.0-alpha8-SNAPSHOT API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||