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:
  • 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

      public String getPanelId()
      Returns:
      panel id
    • getGraphId

      public String getGraphId()
      Returns:
      graph id
    • getDataItem

      @Nullable public DataItem getDataItem()
    • getDataItemNN

      public DataItem getDataItemNN()
    • getEntity

      @Nullable public Entity getEntity()
    • getEntityNN

      public Entity 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

      public StockPanel getStockPanel()
      Returns:
      null or panel that contains clicked stock graph item
    • getStockGraph

      public StockGraph getStockGraph()
      Returns:
      null or stock graph that contains clicked item