Class CompositeVTB

    • Method Detail

      • getSubKeys

        public abstract String[] getSubKeys()
        Return an array of the data subKeys - the keys reference ValueProvider.getKey call
        Returns:
        keys for the data
      • getSeriesName

        public abstract String getSeriesName​(String subKey,
                                             int idx)
        Return series name for the data
        Parameters:
        subKey - key for the series, see getSubKeys
        idx - index for the subKey, zero-based, 0..getSubKeys.length - 1
        Returns:
        name of the serie to be shown on the UI in the combo box
      • updateSettingsForSubType

        protected BuildChartSettings updateSettingsForSubType​(ChartSettings chartSettings,
                                                              String subKey,
                                                              int idx)
        Update and return BuildChartSettings object
        Parameters:
        chartSettings - chart settings object - initial chart settings, de facto instance of BuildChartSettings, but this may change in the future.
        subKey - key for the series, see getSubKeys
        idx - index for the subKey, zero-based, 0..getSubKeys.length - 1
        Returns:
        name of the serie to be shown on the UI in the combo box
      • getDataSet

        @NotNull
        public List<BuildValue> getDataSet​(@NotNull
                                           ChartSettings _chartSettings)
        Description copied from interface: ValueProvider
        This should return dataset based given chartSettings
        Specified by:
        getDataSet in interface ValueProvider
        Parameters:
        _chartSettings - to be applied to dataset
        Returns:
        filtered dataset
      • getOrCreateValueProviderFor

        @Nullable
        protected BuildValueProvider getOrCreateValueProviderFor​(@NotNull
                                                                 String subKey)
      • hasData

        public boolean hasData​(ChartSettings buildChartSettings)
        Description copied from interface: ValueProvider
        Returns true if at least one not-null value is available for this ValueProvider for given settings
        Specified by:
        hasData in interface ValueProvider
        Parameters:
        buildChartSettings - dataset chartSettings
        Returns:
        true if there are some data available for this ValueProvider with given settings
      • getKey

        public String getKey()
        Description copied from interface: ValueProvider
        Metric id i.e. "BuildDuration", this key should be unique
        Specified by:
        getKey in interface ValueProvider
        Returns:
        Unique key name
      • getSeriesColor

        @Nullable
        public String getSeriesColor​(String s)
        Description copied from interface: ValueType

        Allows to provide special color coding for series.

        Color should be formatted as web color - hex "#rrggbb" (or short hex form "#rgb") or color name.

        Specified by:
        getSeriesColor in interface ValueType
        Parameters:
        s - series key
        Returns:
        series color, null to autogenerate by renderer
      • getSeriesGenericName

        public String getSeriesGenericName()
        Description copied from interface: ValueType
        Generic name for this value's series
        Specified by:
        getSeriesGenericName in interface ValueType
        Returns:
        short name string
      • getValueFormat

        @Nullable
        public String getValueFormat()
        Description copied from interface: ValueType

        Format name for Values (point hints and axis).

        Following formats are supported by default:

        • text - no special formatting, value is treat as float
        • integer - only integer values
        • duration - value is treat as milliseconds and is formatted
        • size - value is treat as bytes and is formatted
        • percent - value is treat as N%
        • percentBy1 - value is treat as (N * 100)%

        Specified by:
        getValueFormat in interface ValueType
        Returns:
        format name.