Interface StockChart

All Superinterfaces:
Component, Component.BelongToFrame, Component.HasCaption, Component.HasDescription, Component.HasIcon, HasColors<StockChart>, StockChartModel<StockChart>
All Known Implementing Classes:
StockChartImpl

@StudioComponent(caption="StockChart", category="Charts", xmlElement="stockChart", xmlns="http://jmix.io/schema/ui/charts", xmlnsAlias="chart", icon="io/jmix/charts/icon/component/stockChart.svg", canvasIcon="io/jmix/charts/icon/component/stockChart.svg", canvasIconSize=LARGE) public interface StockChart extends Component, StockChartModel<StockChart>, Component.BelongToFrame, Component.HasIcon, Component.HasCaption
Stock chart component.
See documentation for properties of AmStockChart JS object.
http://docs.amcharts.com/3/javascriptstockchart/AmStockChart
  • Field Details

  • Method Details

    • repaint

      void repaint()
      Resend all items and properties to client and repaint chart. Use this method if you change some property of already displayed chart.
    • addClickListener

      Subscription addClickListener(Consumer<StockChart.StockChartClickEvent> clickListener)
      Adds a listener to stock chart click events. Called when user clicks on the stock chart.
      Parameters:
      clickListener - a listener to add
      Returns:
      subscription
    • addRightClickListener

      Subscription addRightClickListener(Consumer<StockChart.StockChartRightClickEvent> clickListener)
      Adds listener to stock chart right click events. Called when user clicks on the stock chart.
      Parameters:
      clickListener - a listener to add
      Returns:
      subscription
    • addStockEventClickListener

      Subscription addStockEventClickListener(Consumer<StockChart.StockEventClickEvent> clickListener)
      Adds listener to stock event click events. Called when user clicks on the stock event.
      Parameters:
      clickListener - a listener to add
      Returns:
      subscription
    • addStockEventRollOutListener

      Subscription addStockEventRollOutListener(Consumer<StockChart.StockEventRollOutEvent> rollOutListener)
      Adds a listener to stock event roll-out events. Called when the stock event did roll-out.
      Parameters:
      rollOutListener - a listener to add
      Returns:
      subscription
    • addStockEventRollOverListener

      Subscription addStockEventRollOverListener(Consumer<StockChart.StockEventRollOverEvent> rollOverListener)
      Adds listener to stock event roll-over events. Called when the stock event did roll-over.
      Parameters:
      rollOverListener - a listener to add
      Returns:
      subscription
    • addZoomListener

      Subscription addZoomListener(Consumer<StockChart.ZoomEvent> zoomListener)
      Adds listener to stock chart zoom events.
      Parameters:
      zoomListener - a listener to add
      Returns:
      subscription
    • addPeriodSelectorChangeListener

      Subscription addPeriodSelectorChangeListener(Consumer<StockChart.PeriodSelectorChangeEvent> changeListener)
      Adds a listener to period selector change events. Called when the period selector changed.
      Parameters:
      changeListener - a listener
      Returns:
      subscription
    • addDataSetSelectorCompareListener

      Subscription addDataSetSelectorCompareListener(Consumer<StockChart.DataSetSelectorCompareEvent> compareListener)
      Adds a listener to dataset selector compare events. Called when the data set is selected for comparing.
      Parameters:
      compareListener - a listener to add
      Returns:
      subscription
    • addDataSetSelectorSelectListener

      Subscription addDataSetSelectorSelectListener(Consumer<StockChart.DataSetSelectorSelectEvent> selectListener)
      Adds a listener to dataset selector select events. Called when the dataset selector selected.
      Parameters:
      selectListener - a listener to add
      Returns:
      subscription
    • addDataSetSelectorUnCompareListener

      Subscription addDataSetSelectorUnCompareListener(Consumer<StockChart.DataSetSelectorUnCompareEvent> unCompareListener)
      Adds a listener to dataset selector uncompare events. Called when the dataset selector removed from comparison.
      Parameters:
      unCompareListener - a listener to add
      Returns:
      subscription
    • addStockGraphClickListener

      Subscription addStockGraphClickListener(Consumer<StockChart.StockGraphClickEvent> clickListener)
      Adds a listener to stock graph click events. Called when user clicks on the stock graph.
      Parameters:
      clickListener - a listener to add
      Returns:
      subscription
    • addStockGraphRollOutListener

      Subscription addStockGraphRollOutListener(Consumer<StockChart.StockGraphRollOutEvent> rollOutListener)
      Adds a listener to stock graph roll-out events. Called when the stock graph did roll-out.
      Parameters:
      rollOutListener - a listener to add
      Returns:
      subscription
    • addStockGraphRollOverListener

      Subscription addStockGraphRollOverListener(Consumer<StockChart.StockGraphRollOverEvent> rollOverListener)
      Adds a listener to stock graph roll-over events. Called when the stock graph did roll-over.
      Parameters:
      rollOverListener - a listener to add
      Returns:
      subscription
    • addStockGraphItemClickListener

      Subscription addStockGraphItemClickListener(Consumer<StockChart.StockGraphItemClickEvent> clickListener)
      Adds a listener to stock graph item click events. Called when user clicks on the stock graph item.
      Parameters:
      clickListener - a listener to add
      Returns:
      subscription
    • addStockGraphItemRightClickListener

      Subscription addStockGraphItemRightClickListener(Consumer<StockChart.StockGraphItemRightClickEvent> clickListener)
      Adds a listener to stock graph item right click events. Called when user clicks on the stock graph item.
      Parameters:
      clickListener - a listener to add
      Returns:
      subscription
    • addStockGraphItemRollOutListener

      Subscription addStockGraphItemRollOutListener(Consumer<StockChart.StockGraphItemRollOutEvent> rollOutListener)
      Adds a listener to stock graph item roll-out events. Called when the stock graph item did roll-out.
      Parameters:
      rollOutListener - a listener to add
      Returns:
      subscription
    • addStockGraphItemRollOverListener

      Subscription addStockGraphItemRollOverListener(Consumer<StockChart.StockGraphItemRollOverEvent> rollOverListener)
      Adds a listener to stock graph item roll-over events.
      Parameters:
      rollOverListener - a listener to add
      Returns:
      subscription
    • setNativeJson

      void setNativeJson(String json)
      Set additional JSON configuration as a string. This JSON can override configuration loaded from XML and from Component API.
      Parameters:
      json - additional JSON configuration
    • getNativeJson

      String getNativeJson()
      Returns:
      additional JSON configuration as a string.