com.ibm.tivoli.maximo.skd.control.chart

Class SimpleChartControl

  • All Implemented Interfaces:
    java.lang.Cloneable


    public class SimpleChartControl
    extends DatasrcInstance
    Chart Control for managing the creation of Charts via a delagated SimpleChartBean
    • Constructor Detail

      • SimpleChartControl

        public SimpleChartControl()
    • Method Detail

      • getChartBean

        public SimpleChartBean getChartBean()
        Convenience method for getting the Chart's DataBean casted to a SimpleCartBean
        Returns:
      • getChartIds

        public java.util.Map getChartIds()
        Returns the Map of ChartIds managed by this control/bean. May return null, if the chart bean is only creating a single chart.
        Returns:
      • getSupportedChartTypes

        public com.ibm.json.java.JSONArray getSupportedChartTypes()
        Returns the array of supported chart types, may be null.
        Returns:
      • getSupportedChartThemes

        public com.ibm.json.java.JSONArray getSupportedChartThemes()
        Returns the array of Supported Chart Themes
        Returns:
      • async_get_chart_data

        public int async_get_chart_data()
                                 throws MXException
        HIGHASYNC method that is used by the chart jsp control to fetch the chart data to be rendered. This method writes the JSON data to the output stream directly.
        Returns:
        Throws:
        MXException
      • getWidth

        public java.lang.String getWidth()
      • getHeight

        public java.lang.String getHeight()
      • toEmulatedBidi

        public static java.lang.String toEmulatedBidi(java.lang.String rtlString)
        Used in dojo charting, to 'emulate' visually the bidi layout for a given string. Dojo Charting 1.7 does not fully support bidi text layout in the charts, so this function enables us to visually emulate that behaviour when we render some text in the chart.
        Parameters:
        rtlString -
        Returns: