Class GraphBean


  • public class GraphBean
    extends Object
    Descriptor for a custom graph. Some details for the descriptor can be obtained from http://confluence.jetbrains.com/display/TCDL/Custom+Chart
    Author:
    kir
    • Constructor Detail

      • GraphBean

        public GraphBean​(org.jdom.Element element)
      • GraphBean

        public GraphBean​(String title,
                         String defaultFilters,
                         String hiddenFilters)
        Parameters:
        title - title of the graph
        defaultFilters - comma-separated list of filters (possible values are 'averaged', 'showFailed')
        hiddenFilters - comma-separated list of filters (possible values are 'all', 'averaged', 'showFailed', 'range', 'series' )
    • Method Detail

      • getFormat

        @Nullable
        public String getFormat()
      • setFormat

        public void setFormat​(String format)
      • getGraphId

        @NotNull
        public String getGraphId()
        Returns:
        graph identifier
      • getTitle

        @NotNull
        public String getTitle()
        Returns:
        graph title
      • setTitle

        public void setTitle​(String title)
        Set graph title
        Parameters:
        title - graph title
      • setSerieTitle

        public void setSerieTitle​(String serieTitle)
        Set title for series filter
        Parameters:
        serieTitle - series filter title
      • getSerieTitle

        @Nullable
        public String getSerieTitle()
        Returns:
        series filter title
      • getDefaultFilters

        @NotNull
        public String getDefaultFilters()
        Returns:
        list of default filters (which checkboxes should be checked by default)
      • setDefaultFilters

        public void setDefaultFilters​(String defaultFilters)
        Set list of default filters (which checkboxes should be checked by default)
        Parameters:
        defaultFilters - comma-separated list of filters (possible values are 'averaged', 'showFailed')
      • getHiddenFilters

        @NotNull
        public String getHiddenFilters()
        Returns:
        list of hidden filters
      • setHiddenFilters

        public void setHiddenFilters​(String hiddenFilters)
        Set list of filters which should not be visible
        Parameters:
        hiddenFilters - comma-separated list of filters (possible values are 'all', 'averaged', 'showFailed', 'range', 'series' )
      • setProperties

        public void setProperties​(Map<String,​String> properties)
      • getValueTypes

        public List<jetbrains.buildServer.web.statistics.graph.GraphBean.ValueTypeBean> getValueTypes()
        Returns:
        list of configured data series for the graph (list of value type descriptors)
      • addValueType

        public jetbrains.buildServer.web.statistics.graph.GraphBean.ValueTypeBean addValueType​(String key,
                                                                                               String description,
                                                                                               @Nullable
                                                                                               String buildTypeId)
        Adds nested value type bean, which describes another named series of data on the graph
        Parameters:
        key - key for the value type
        description - series name
        buildTypeId - build configuration id this value provider should be bound to
        Returns:
        added bean
        See Also:
        ValueProvider.getKey()
      • addValueType

        public jetbrains.buildServer.web.statistics.graph.GraphBean.ValueTypeBean addValueType​(String key,
                                                                                               String description,
                                                                                               @Nullable
                                                                                               String buildTypeId,
                                                                                               @Nullable
                                                                                               String color)
        Adds nested value type bean, which describes another named series of data on the graph
        Parameters:
        key - key for the value type
        description - series name
        buildTypeId - build configuration id this value provider should be bound to
        color - custom series color
        Returns:
        added bean
        See Also:
        ValueProvider.getKey()
      • readFrom

        public void readFrom​(org.jdom.Element element)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object