psdi.webclient.controls

Class KPIGraph

    • Constructor Detail

      • KPIGraph

        public KPIGraph()
    • Method Detail

      • initialize

        public void initialize()
        Description copied from class: BaseInstance
        should be extended to do any setup required by the instance. for example, the DatasrcInstance will call initialize to create data sources found in the bind list.
        Overrides:
        initialize in class ControlInstance
      • getKPIData

        public java.util.Vector getKPIData()
                                    throws MXException,
                                           java.rmi.RemoteException
        Returns the String of the latest date among the KPIs in the set This would be date when the one of the inlcuded KPIs were last updated
        Returns:
        String - latest date string
        Throws:
        MXException
        java.rmi.RemoteException
      • getLabels

        public java.lang.String[] getLabels()
        Returns labels for this portlet. Following list shows list of keys to be used and the labels they stand for
        • drillreport - Drill Down Report
        • drillkpi - Dril Down in KPI
        • updatelbl - Update
        • statuslbl - Status
        • lastreadlbl - Last KPI Value
        • actuallbl - Actual
        • targetlbl - Target
        • variancelbl - Variance
        • kpilbl - KPI
        • lastrunlbl - Last Run
        • lastvaluelbl - Last Value
        Returns:
        String array of locale specific labels
      • updatekpis

        public void updatekpis()
                        throws MXException,
                               java.rmi.RemoteException
        Called when the user clicks "Update" on the control to update the KPIs
        Throws:
        MXException
        java.rmi.RemoteException
      • setGraphInfo

        public java.lang.String setGraphInfo(java.lang.String graphType)
                                      throws MXException,
                                             java.rmi.RemoteException
        Prepares graph information and graph object for image rendering, just before the graph frame is refreshed.
        Parameters:
        graphType -
        Returns:
        graphTitle
        Throws:
        MXException
        java.rmi.RemoteException
      • refreshChart

        public void refreshChart()
                          throws MXException,
                                 java.rmi.RemoteException
        Event handler method for "refreshchart" event, when clicked from Refresh Chart Button in the KPI Application in Trend Tab
        Throws:
        MXException
        java.rmi.RemoteException
      • formatNumber

        public java.lang.String formatNumber(java.lang.Object variance)
        Parameters:
        variance - as Double
        Returns:
        number as String
      • isNewKPI

        public boolean isNewKPI()
        Checks if the KPI is new
        Returns:
      • render

        public int render()
                   throws java.lang.NoSuchMethodException,
                          java.lang.IllegalAccessException,
                          java.lang.reflect.InvocationTargetException
        Description copied from class: ControlInstance
        Render this control's components
        Overrides:
        render in class ControlInstance
        Throws:
        java.lang.NoSuchMethodException
        java.lang.IllegalAccessException
        java.lang.reflect.InvocationTargetException