Class VisualPropertyUtil
- java.lang.Object
-
- org.cytoscape.view.presentation.property.VisualPropertyUtil
-
public final class VisualPropertyUtil extends Object
Utility functions for traversing visual lexicon tree.Module:
presentation-api
To use this in your app, include the following dependency in your POM:
<dependency> <groupId>org.cytoscape</groupId> <artifactId>presentation-api</artifactId> </dependency>
Cytoscape Backwards Compatibility (Static Class): This class is static and therefore can't be extended by users. This means that we may add methods for minor version updates. Methods will only be removed for major version updates.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static boolean
isChildOf(VisualProperty<?> parent, VisualProperty<?> vp, VisualLexicon lexicon)
Check whether the given VisualProperty is a child of parent vp or not.
-
-
-
Method Detail
-
isChildOf
public static boolean isChildOf(VisualProperty<?> parent, VisualProperty<?> vp, VisualLexicon lexicon)
Check whether the given VisualProperty is a child of parent vp or not.- Parameters:
parent
- parent visual propertyvp
- visual property to be testedlexicon
- lexicon tree- Returns:
- true if it's a child of the parent or parent itself. Otherwise, return false.
-
-