Package idare.ThirdParty
Class DelayedVizProp
- java.lang.Object
-
- idare.ThirdParty.DelayedVizProp
-
public class DelayedVizProp extends Object
DelayedVizProp, as suggested in the Cytoscape cookbook.
-
-
Constructor Summary
Constructors Constructor Description DelayedVizProp(org.cytoscape.model.CyIdentifiable netObj, org.cytoscape.view.model.VisualProperty<?> prop, Object value, boolean isLocked)Specify the desired visual property value for a node or edge.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidapplyAll(org.cytoscape.view.model.CyNetworkView netView, Iterable<DelayedVizProp> delayedProps)Assign the visual properties stored in delayedProps to the given CyNetworkView.static voidtestAll(org.cytoscape.view.model.CyNetworkView netView, Iterable<DelayedVizProp> delayedProps)Test whether the DelayedVizProps got properly applied.
-
-
-
Constructor Detail
-
DelayedVizProp
public DelayedVizProp(org.cytoscape.model.CyIdentifiable netObj, org.cytoscape.view.model.VisualProperty<?> prop, Object value, boolean isLocked)Specify the desired visual property value for a node or edge.- Parameters:
netObj- A CyNode or CyEdgeprop- The visual property whose value you want to assignvalue- The visual property value you want to assignisLocked- true if you want the value to be set as a bypass value, false if you want the value to persist until a visual style is applied to the network view
-
-
Method Detail
-
applyAll
public static void applyAll(org.cytoscape.view.model.CyNetworkView netView, Iterable<DelayedVizProp> delayedProps)Assign the visual properties stored in delayedProps to the given CyNetworkView.- Parameters:
netView- The CyNetworkView that contains the nodes and edges for which you want to assign the visual propertiesdelayedProps- A series of DelayedVizProps that specifies the visual property values of nodes and edges
-
testAll
public static void testAll(org.cytoscape.view.model.CyNetworkView netView, Iterable<DelayedVizProp> delayedProps)Test whether the DelayedVizProps got properly applied. This should only be called after applyAll- Parameters:
netView- - TheCyNetworkViewtheDelayedVizPropgot assigned to.delayedProps- - TheDelayedVizPropiterable which needs to be checked.
-
-