Interface IAbstractChartVisualElement<T>
- All Known Subinterfaces:
IBarChartVisualElement<T>,IGanttChartVisualElement<T>,IHeatmapChartVisualElement<T>,ILineChartVisualElement<T>
- All Known Implementing Classes:
AbstractGridLineVisualSet.AbstractGridLineVisualElement,AbstractLineVisualSet.AbstractLineVisualElement,AbstractPolylineVisualSet.AbstractPolylineVisualElement,AbstractRegionVisualSet.AbstractRegionVisualElement,BarLabeledVisualSet.BarLabeledVisualElement,BarVisualSet.BarVisualElement,BoxAndWhiskerVisualSet.BoxAndWhiskerVisualElement,ConnectionVisualSet.ConnectionVisualElement,GanttPolylineVisualSet.GanttPolylineVisualElement,GanttVisualSet.GanttVisualElement,HeatmapVisualSet.HeatmapVisualElement,HistogramVisualSet.HistogramVisualElement,HorizontalGridLineVisualSet.HorizontalGridLineVisualElement,LabeledVisualSet.LabeledVisualElement,LineBarVisualSet.LineBarVisualElement,LineVisualSet.LineVisualElement,PointsVisualSet.PointsVisualElement,PolylineVisualSet.PolylineVisualElement,RangeRegionVisualSet.RangeRegionVisualElement,RegionVisualSet.RegionVisualElement,TriangleMarkerVisualSet.TriangleMarkerVisualElement,VerticalGridLineVisualSet.VerticalGridLineVisualElement,VisualSet.VisualElement
public interface IAbstractChartVisualElement<T>
Interface implemented by VisualSetElements that can be displayed on any
subclass of a
Chart.- Author:
- Aleksey Kirillov
-
Method Summary
Modifier and TypeMethodDescriptionvoidacceptContextMenuHandlers(Object menu, MouseEvent e) Used to handle the open context menu event.doubleDelegates a call toVisualSet.getArgument(Object)for the data element corresponding to this visual element.Returns the current data element.Returns the nextVisualSet.VisualElement.Returns the previousVisualSet.VisualElement.Delegates a call toVisualSet.getTooltipText(Object)for the data element corresponding to this visual element.Returns the current VisualSet containing this VisualElement.voidonMouseEntered(MouseEvent mouseEvent) Used to handle theMouseEventthat the mouse cursor enters an area inside the boundaries of this visual.voidonMouseExited(MouseEvent mouseEvent) Used to handle theMouseEventthat the mouse cursor exites an area inside the boundaries of this visual.voidonMousePressed(MouseEvent mouseEvent) Used to handle theMouseEventthat the mouse cursor pressed in the area inside the boundaries of this visual.
-
Method Details
-
getContents
Object getContents()Returns the current data element.- Returns:
- the current data element
-
getVisualSet
IAbstractChartVisualSet getVisualSet()Returns the current VisualSet containing this VisualElement.- Returns:
- the current VisualSet containing this VisualElement
-
getArgument
double getArgument()Delegates a call toVisualSet.getArgument(Object)for the data element corresponding to this visual element.- Returns:
- the result of a call
VisualSet.getArgument(Object)
-
getTooltipText
String getTooltipText()Delegates a call toVisualSet.getTooltipText(Object)for the data element corresponding to this visual element.- Returns:
- the result of a call
VisualSet.getTooltipText(Object)
-
onMouseEntered
Used to handle theMouseEventthat the mouse cursor enters an area inside the boundaries of this visual.- Parameters:
mouseEvent- mouse enter event handle
-
onMouseExited
Used to handle theMouseEventthat the mouse cursor exites an area inside the boundaries of this visual.- Parameters:
mouseEvent- mouse exit event handle
-
onMousePressed
Used to handle theMouseEventthat the mouse cursor pressed in the area inside the boundaries of this visual.- Parameters:
mouseEvent- mouse press event handle
-
getPreviousVisualElement
IAbstractChartVisualElement<T> getPreviousVisualElement()Returns the previousVisualSet.VisualElement.- Returns:
- the previous
VisualSet.VisualElement
-
getNextVisualElement
IAbstractChartVisualElement<T> getNextVisualElement()Returns the nextVisualSet.VisualElement.- Returns:
- the next
VisualSet.VisualElement
-
acceptContextMenuHandlers
Used to handle the open context menu event.- Parameters:
menu- opened context menue- mouse event handle
-