Class GraphItemStyle


  • public class GraphItemStyle
    extends Object
    This class contains styling for individual graph items
    • Constructor Detail

      • GraphItemStyle

        public GraphItemStyle()
        Create style record with default values.
      • GraphItemStyle

        public GraphItemStyle​(int color)
        Create style record for line item with given color
        Parameters:
        color - The color
      • GraphItemStyle

        public GraphItemStyle​(int type,
                              int color,
                              int lineWidth,
                              int flags)
        constructor
        Parameters:
        type - The type
        color - The color
        lineWidth - The line width
        flags - The flags
    • Method Detail

      • getType

        public int getType()
        Returns:
        the type
      • getColor

        public int getColor()
        Returns:
        the color
      • getLineWidth

        public int getLineWidth()
        Returns:
        the lineWidth
      • getFlags

        public int getFlags()
        Returns:
        the flags
      • setType

        public void setType​(int type)
        Parameters:
        type - the type to set
      • setColor

        public void setColor​(int color)
        Parameters:
        color - the color to set
      • setLineWidth

        public void setLineWidth​(int lineWidth)
        Parameters:
        lineWidth - the lineWidth to set
      • setFlags

        public void setFlags​(int flags)
        Parameters:
        flags - the flags to set
      • isShowAverage

        public boolean isShowAverage()
        Convenient method for checking SHOW_AVERAGE flag
        Returns:
        true if SHOW_AVERAGE is set
      • isShowThresholds

        public boolean isShowThresholds()
        Convenient method for checking SHOW_THRESHOLDS flag
        Returns:
        true if SHOW_THRESHOLDS is set
      • isShowTrend

        public boolean isShowTrend()
        Convenient method for checking SHOW_TREND flag
        Returns:
        true if SHOW_TREND is set
      • isInverted

        public boolean isInverted()
        Convenient method for checking INVERTED flag
        Returns:
        true if INVERTED is set