Interface IYAxisCategoryVisualSetContainer<X>
- All Known Implementing Classes:
GanttVisualSetContainer,HeatmapVisualSetContainer
public interface IYAxisCategoryVisualSetContainer<X>
Interface of Y-axis categories property owners. Provides a set of methods
corresponding to it. Used for visuals that are drawn on separate
Y-axis categories of the charts.
- Author:
- Aleksey Kirillov
-
Method Summary
Modifier and TypeMethodDescriptionbooleancontainsAnyChild(X category) Checks if given category contains at least one child row with at least oneVisualSet.getChildrens(X category) Returns the childrens list for given category.Returns the parent category for the given category.Returns the policy for calculating the height of the category.intgetTreeLevel(X category) Returns the nesting level of the given category.booleanisTree()Checks if this container is a tree container.booleanisTreeStateExpanded(X category) Checks if the given category is currently expanded.setTreeState(X category, boolean expanded, boolean recursively) Sets the expand status of the given category.
-
Method Details
-
isTree
boolean isTree()Checks if this container is a tree container.- Returns:
trueif this container is a tree container,falseotherwise
-
isTreeStateExpanded
Checks if the given category is currently expanded.Used in tree structures.
- Parameters:
category- category for which the expand status is being checked- Returns:
truethe given category is currently expanded,falseotherwise
-
containsAnyChild
Checks if given category contains at least one child row with at least oneVisualSet.Used in tree structures.
- Parameters:
category- category for which the childs are being checked- Returns:
trueif given given category contains at least one child row with at least oneVisualSet,falseotherwise
-
setTreeState
Sets the expand status of the given category. Provides the opportunity to expand a list of elements recursively, i.e. also expand all parent elements, up to the top-level elements.Used in tree structures.
- Parameters:
category- category for which the expand status is being setexpanded- new expand statusrecursively- determines whether the new status should be applied to all parent elements up to top-level elements- Returns:
- reference to this object
-
getTreeLevel
Returns the nesting level of the given category.Used in tree structures to define parent-child dependencies between categories.
- Parameters:
category- category for which the nesting level is being checked- Returns:
- the nesting level of the given category
-
getParent
Returns the parent category for the given category.Used in tree structures to define parent-child dependencies between categories.
- Parameters:
category- category for which the parent row is being checked- Returns:
- the parent category for the given category
-
getChildrens
Returns the childrens list for given category.Used in tree structures.
- Parameters:
category- category for which the childrens list is being checked- Returns:
- the childrens list for given category
-
getRowHeightPolicy
IRowHeightPolicy getRowHeightPolicy()Returns the policy for calculating the height of the category.- Returns:
- the policy for calculating the height of the category
-