Class CustomChartImpl

All Implemented Interfaces:
CustomChart, AttachNotifier, Component, Component.BelongToFrame, Component.HasCaption, Component.HasDescription, Component.HasIcon, Component.HasXmlDescriptor, Component.Wrapper, HasContextHelp, HasDebugId, HasHtmlCaption, HasHtmlDescription, HasHtmlSanitizer, org.springframework.beans.factory.InitializingBean

public class CustomChartImpl extends AbstractComponent<JmixAmchartsScene> implements CustomChart, org.springframework.beans.factory.InitializingBean
  • Field Details

  • Constructor Details

    • CustomChartImpl

      public CustomChartImpl()
  • Method Details

    • setMessages

      @Autowired public void setMessages(Messages messages)
    • setMessageTools

      @Autowired public void setMessageTools(MessageTools messageTools)
    • setCurrentAuthentication

      @Autowired public void setCurrentAuthentication(CurrentAuthentication currentAuthentication)
    • setChartLocaleHelper

      @Autowired public void setChartLocaleHelper(ChartLocaleHelper chartLocaleHelper)
    • setFormatStringsRegistry

      @Autowired public void setFormatStringsRegistry(FormatStringsRegistry formatStringsRegistry)
    • createComponent

      protected JmixAmchartsScene createComponent()
    • createChartSerializer

      protected ChartSerializer createChartSerializer()
    • getConfiguration

      public AbstractChart getConfiguration()
      Specified by:
      getConfiguration in interface CustomChart
    • setConfiguration

      public void setConfiguration(AbstractChart configuration)
      Specified by:
      setConfiguration in interface CustomChart
    • repaint

      public void repaint()
      Description copied from interface: CustomChart
      Resend all items and properties to client and repaint chart. Use this method if you change some property of already displayed chart.
      Specified by:
      repaint in interface CustomChart
    • getNativeJson

      public String getNativeJson()
      Specified by:
      getNativeJson in interface CustomChart
      Returns:
      additional JSON configuration as a string.
    • setNativeJson

      public void setNativeJson(String json)
      Description copied from interface: CustomChart
      Set additional JSON configuration as a string. This JSON can override configuration loaded from XML and from Component API.
      Specified by:
      setNativeJson in interface CustomChart
      Parameters:
      json - additional JSON configuration
    • initLocale

      protected void initLocale()
    • setupDefaults

      protected void setupDefaults(AbstractChart chart)
    • setupChartLocale

      protected void setupChartLocale(AbstractChart chart)
    • setupRectangularChartDefaults

      protected void setupRectangularChartDefaults(RectangularChartModelImpl chart)
    • setupSerialChartDefaults

      protected void setupSerialChartDefaults(AbstractSerialChart chart)
    • afterPropertiesSet

      public void afterPropertiesSet() throws Exception
      Specified by:
      afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
      Throws:
      Exception