Class ChartClickEvent

java.lang.Object
com.jbstrap.core.event.BaseEvent
com.jbstrap.core.event.ChartClickEvent

public class ChartClickEvent extends BaseEvent
This class contains the data of the basic click mouse event for the Chart component. These are the following:
  • The client on which the event occurred
  • The ChartCanvas instance witch event occured
  • The chart name witch event occured
  • The chart instance witch wvwnt occured
  • The event's unique ID
  • The series name witch event occured
  • The series instance witch event occured
  • The record index witch event occured
  • The record instance witch event occured
Since:
4.0
Author:
JBStrap
  • Constructor Details

    • ChartClickEvent

      public ChartClickEvent()
  • Method Details

    • getChartCanvas

      public ChartCanvas getChartCanvas()
      Gets the chart canvas component that triggered the event.
      Returns:
      The chart canvas component that triggered the event
    • getChart

      public BaseChart<?> getChart()
      Gets the chart that triggered the event.
      Returns:
      The chart instance that triggered the event
    • getSeriesName

      public String getSeriesName()
      The name of the series the user clicked on
      Returns:
      The name of the series the user clicked on
    • getSeries

      public Series getSeries()
      Gets the series instance the user clicked on
      Returns:
      The series instance the user clicked on
    • getRecordIndex

      public Long getRecordIndex()
      Gets the record index the user clicked on
      Returns:
      The index of the record the user clicked on
    • getRecord

      public Record getRecord()
      Gets the record the user clicked on
      Returns:
      The record the user clicked on
    • fireEvent

      public void fireEvent()
      Specified by:
      fireEvent in class BaseEvent