Interface IAbstractChartVisualSet
- All Known Subinterfaces:
IBarChartVisualSet
,IGanttChartVisualSet
,IHeatmapChartVisualSet
,ILineChartVisualSet
- All Known Implementing Classes:
AbstractGridLineVisualSet
,AbstractLineVisualSet
,AbstractPolylineVisualSet
,AbstractRegionVisualSet
,BarLabeledVisualSet
,BarVisualSet
,BoxAndWhiskerVisualSet
,ConnectionVisualSet
,GanttPolylineVisualSet
,GanttVisualSet
,HeatmapVisualSet
,HistogramVisualSet
,HorizontalGridLineVisualSet
,LabeledVisualSet
,LineBarVisualSet
,LineVisualSet
,PointsVisualSet
,PolylineVisualSet
,RangeRegionVisualSet
,RegionVisualSet
,SlotsVisualSet
,TriangleMarkerVisualSet
,VerticalGridLineVisualSet
,VisualSet
,WaterfallVisualSet
public interface IAbstractChartVisualSet
Interface implemented by VisualSets that can be displayed on any subclass of
a
Chart
.- Author:
- Aleksey Kirillov
-
Method Summary
Modifier and TypeMethodDescriptionaddVisibilityChangeHandler
(Consumer<VisibilityChangeDescriptor<? extends IAbstractChartVisualSet>> handler) Adds the action to be executed every time the visibility of this VisualSet is changed.void
Adds the action to be executed every time the elements list of this VisualSet is changed.List
<?> Returns the list of visual set contents.double
Returns the maximum possible value that stored in the current data elements list.double
Returns the minimum possible value that stored in the current data elements list.getName()
Returns visual set name i.e.Return the currentVisualSet.UpdatePolicy
.List
<Consumer<VisibilityChangeDescriptor<? extends IAbstractChartVisualSet>>> Return the list of the actions to be executed every time the visibility of this VisualSet is changed.int
getVisibleVisualElementsCount
(double beginArgument, double endArgument) Returns the number of VisualElements drawn within the bounds of the specified begin and end X-axis arguments.List
<? extends IAbstractChartVisualElement<?>> getVisualElements
(boolean recalculationRequired) Returns the list of visual elements corresponding to current data elements.boolean
Returns the value of the property mouseTransparent.removeVisibilityChangeHandler
(Consumer<VisibilityChangeDescriptor<? extends IAbstractChartVisualSet>> handler) Removes the action to be executed every time the visibility of this VisualSet is changed.void
Removes the action to be executed every time the elements list of this VisualSet is changed.setMouseTransparent
(boolean mouseTransparent) Sets the value of the property mouseTransparent.setUpdatePolicy
(VisualSet.UpdatePolicy updatePolicy) Sets the newVisualSet.UpdatePolicy
i.e.
-
Method Details
-
getContents
List<?> getContents()Returns the list of visual set contents.- Returns:
- the list of visual set contents
-
getName
String getName()Returns visual set name i.e. theString
is used to sort and name the visual sets on the chart.- Returns:
- visual set name
-
getVisibleVisualElementsCount
int getVisibleVisualElementsCount(double beginArgument, double endArgument) Returns the number of VisualElements drawn within the bounds of the specified begin and end X-axis arguments.- Parameters:
beginArgument
- begin bounds X-axis argumentendArgument
- end bounds X-axis argument- Returns:
- the number of VisualElements drawn within the bounds of the specified begin and end X-axis arguments
-
addVisibilityChangeHandler
IAbstractChartVisualSet addVisibilityChangeHandler(Consumer<VisibilityChangeDescriptor<? extends IAbstractChartVisualSet>> handler) Adds the action to be executed every time the visibility of this VisualSet is changed.- Parameters:
handler
- visibility change action- Returns:
- reference to this object
-
removeVisibilityChangeHandler
IAbstractChartVisualSet removeVisibilityChangeHandler(Consumer<VisibilityChangeDescriptor<? extends IAbstractChartVisualSet>> handler) Removes the action to be executed every time the visibility of this VisualSet is changed.- Parameters:
handler
- visibility change action- Returns:
- reference to this object
-
getVisibilityChangeHandlers
List<Consumer<VisibilityChangeDescriptor<? extends IAbstractChartVisualSet>>> getVisibilityChangeHandlers()Return the list of the actions to be executed every time the visibility of this VisualSet is changed.- Returns:
- the list of the actions to be executed every time the visibility of this VisualSet is changed
-
getMinArgument
double getMinArgument()Returns the minimum possible value that stored in the current data elements list.- Returns:
- the minimum possible value that stored in the current data elements list
-
getMaxArgument
double getMaxArgument()Returns the maximum possible value that stored in the current data elements list.- Returns:
- the maximum possible value that stored in the current data elements list
-
getVisualElements
Returns the list of visual elements corresponding to current data elements. Cannot be changed by the user.- Parameters:
recalculationRequired
- flag of the need to recalculate the visual elements- Returns:
- the list of visual elements corresponding to current data elements
-
addVisualSetChangeHandler
Adds the action to be executed every time the elements list of this VisualSet is changed.- Parameters:
handler
- visibility change action
-
removeVisualSetChangeHandler
Removes the action to be executed every time the elements list of this VisualSet is changed.- Parameters:
handler
- visibility change action
-
getUpdatePolicy
VisualSet.UpdatePolicy getUpdatePolicy()Return the currentVisualSet.UpdatePolicy
.- Returns:
- the current
VisualSet.UpdatePolicy
-
setUpdatePolicy
Sets the newVisualSet.UpdatePolicy
i.e. the VisualSet update control rule.- Parameters:
updatePolicy
- newVisualSet.UpdatePolicy
i.e. the VisualSet update control rule- Returns:
- reference to this object
-
isMouseTransparent
boolean isMouseTransparent()Returns the value of the property mouseTransparent. If true, this VisualSet is completely transparent to mouse events. When choosing target for mouse event, VisualSets with mouseTransparent set to true won't be taken into account.- Returns:
- the value of the property mouseTransparent
-
setMouseTransparent
Sets the value of the property mouseTransparent. If true, this VisualSet is completely transparent to mouse events. When choosing target for mouse event, VisualSets with mouseTransparent set to true won't be taken into account.- Parameters:
mouseTransparent
- new value of property mouseTransparent- Returns:
- reference to this object
-