Package io.jmix.charts.component
Class StockChart.AbstractStockGraphItemEvent
java.lang.Object
java.util.EventObject
io.jmix.charts.component.StockChart.AbstractStockChartEvent
io.jmix.charts.component.StockChart.AbstractStockGraphItemEvent
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
StockChart.StockGraphItemClickEvent
,StockChart.StockGraphItemRightClickEvent
,StockChart.StockGraphItemRollOutEvent
,StockChart.StockGraphItemRollOverEvent
- Enclosing interface:
- StockChart
public abstract static class StockChart.AbstractStockGraphItemEvent
extends StockChart.AbstractStockChartEvent
Describes stock graph item event.
- See Also:
-
Field Summary
Fields inherited from class java.util.EventObject
source
-
Constructor Summary
ModifierConstructorDescriptionprotected
AbstractStockGraphItemEvent
(StockChart stockChart, StockPanel stockPanel, String panelId, StockGraph stockGraph, String graphId, DataItem dataItem, int itemIndex, int x, int y, int absoluteX, int absoluteY) -
Method Summary
Methods inherited from class io.jmix.charts.component.StockChart.AbstractStockChartEvent
getSource
Methods inherited from class java.util.EventObject
toString
-
Constructor Details
-
AbstractStockGraphItemEvent
protected AbstractStockGraphItemEvent(StockChart stockChart, StockPanel stockPanel, String panelId, StockGraph stockGraph, String graphId, DataItem dataItem, int itemIndex, int x, int y, int absoluteX, int absoluteY)
-
-
Method Details
-
getPanelId
- Returns:
- panel id
-
getGraphId
- Returns:
- graph id
-
getDataItem
-
getDataItemNN
-
getEntity
-
getEntityNN
-
getItemIndex
public int getItemIndex()- Returns:
- item index
-
getX
public int getX()- Returns:
- the X coordinate of the mouse pointer in the chart coordinates.
-
getY
public int getY()- Returns:
- the X coordinate of the mouse pointer in the chart coordinates.
-
getAbsoluteX
public int getAbsoluteX()- Returns:
- the X coordinate of the mouse pointer in local (DOM content) coordinates.
-
getAbsoluteY
public int getAbsoluteY()- Returns:
- the Y coordinate of the mouse pointer in local (DOM content) coordinates.
-
getStockPanel
- Returns:
- null or panel that contains clicked stock graph item
-
getStockGraph
- Returns:
- null or stock graph that contains clicked item
-