processing.app.syntax

## Class SyntaxStyle

- Object
- - SyntaxStyle

-     public class SyntaxStyle
      extends Object

  A simple text style class. It can specify the color and bold flag of a run of text.

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `SyntaxStyle(Color color, boolean bold)` Creates a new SyntaxStyle.

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `Color` | `getColor()` Returns the color specified in this style.
    `boolean` | `isBold()` Returns true if boldface is enabled for this style.
    `String` | `toString()` Returns a string representation of this object.

    - ### Methods inherited from class Object

      `equals, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- - ### Constructor Detail

    - #### SyntaxStyle

          public SyntaxStyle(Color color,
                     boolean bold)

      Creates a new SyntaxStyle.
      Parameters:
        `color` - The text color
        `italic` - True if the text should be italics
        `bold` - True if the text should be bold

  - ### Method Detail

    - #### getColor

          public Color getColor()

      Returns the color specified in this style.

    - #### isBold

          public boolean isBold()

      Returns true if boldface is enabled for this style.

    - #### toString

          public String toString()

      Returns a string representation of this object.
      Overrides:
        `toString` in class `Object`