Interface Displayer

    • Method Detail

      • setDisplayerSettings

        void setDisplayerSettings​(org.dashbuilder.displayer.DisplayerSettings displayerSettings)
        The data displayer to draw.
      • getDisplayerSettings

        org.dashbuilder.displayer.DisplayerSettings getDisplayerSettings()
      • setDataSetHandler

        void setDataSetHandler​(DataSetHandler dataSetHandler)
        The handler used to fetch and manipulate the data set.
      • getDisplayerConstraints

        org.dashbuilder.displayer.DisplayerConstraints getDisplayerConstraints()
        Every Displayer implementation must define the set of features it supports as well as other behavioral settings. These "constrains" are needed for two main reasons:
        • Validation purposes: in order to ensure the DisplayerSettings are valid and ready for rendering.
        • Edition purposes: in order to let the DisplayerEditor know what features/settings/behaviour this Displayer implementation supports.
      • addListener

        void addListener​(DisplayerListener... listeners)
        Add a listener interested in receive events generated within this displayer component.
      • addFormatter

        void addFormatter​(String columnId,
                          ValueFormatter formatter)
        Registers a custom formatter for the given column
      • draw

        void draw()
        Draw the chart
      • redraw

        void redraw()
        Same as draw but does not necessary implies to repaint everything again. It's just a matter of update & display the latest data set changes.
      • isDrawn

        boolean isDrawn()
        Check if the displayer is completely drawn.
      • setRefreshOn

        void setRefreshOn​(boolean enabled)
        Enables or disables the automatic refresh capability (enabled by default).
        See Also:
        DisplayerSettings.getRefreshInterval()
      • isRefreshOn

        boolean isRefreshOn()
        Check if the automatic refresh is on.
      • export

        void export​(ExportFormat format,
                    int maxRows,
                    ExportCallback callback)
        Export the data being displayed into the specified output format.
        Parameters:
        format - The output format
        maxRows - Max rows to be exported. If lower or equals to 0 then all rows will be exported.
        callback - The callback instance to be notified
      • close

        void close()
        Frees any resource the displayer is consuming.