Package org.swtchart

Interface ITitle

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      org.eclipse.swt.graphics.Font getFont()
      Gets the font for title text.
      org.eclipse.swt.graphics.Color getForeground()
      Gets the foreground color of title.
      org.eclipse.swt.custom.StyleRange[] getStyleRanges()
      Gets the style ranges.
      java.lang.String getText()
      Gets the title text.
      boolean isVisible()
      Gets the visibility state.
      void setFont​(org.eclipse.swt.graphics.Font font)
      Sets the font for title text.
      void setForeground​(org.eclipse.swt.graphics.Color color)
      Sets the foreground color of title.
      void setStyleRanges​(org.eclipse.swt.custom.StyleRange[] styleRanges)
      Sets the style ranges.
      void setText​(java.lang.String title)
      Sets the title text.
      void setVisible​(boolean visible)
      Sets the visibility state of title.
    • Method Detail

      • setText

        void setText​(java.lang.String title)
        Sets the title text.
        Parameters:
        title - the title text
      • getText

        java.lang.String getText()
        Gets the title text.
        Returns:
        the title text
      • setFont

        void setFont​(org.eclipse.swt.graphics.Font font)
        Sets the font for title text.
        Parameters:
        font - the font for title text
      • getFont

        org.eclipse.swt.graphics.Font getFont()
        Gets the font for title text.
        Returns:
        the font size for title text
      • setForeground

        void setForeground​(org.eclipse.swt.graphics.Color color)
        Sets the foreground color of title.
        Parameters:
        color - the foreground color of title
      • getForeground

        org.eclipse.swt.graphics.Color getForeground()
        Gets the foreground color of title.
        Returns:
        the foreground color of title
      • setStyleRanges

        void setStyleRanges​(org.eclipse.swt.custom.StyleRange[] styleRanges)
        Sets the style ranges. When style ranges are set, the font and background color set by setFont(Font) and setForeground(Color) makes no effect. Instead, the font and background color in style ranges are used.
        Parameters:
        styleRanges - the style ranges, or null to clear the currently set style ranges.
      • getStyleRanges

        org.eclipse.swt.custom.StyleRange[] getStyleRanges()
        Gets the style ranges.
        Returns:
        the style ranges
      • setVisible

        void setVisible​(boolean visible)
        Sets the visibility state of title.
        Parameters:
        visible - the visibility state
      • isVisible

        boolean isVisible()
        Gets the visibility state.
        Returns:
        true if title is visible