Class SyntaxStyles


  • public class SyntaxStyles
    extends java.lang.Object
    A set of SyntaxStyle instances for painting colorized text.
    • Constructor Summary

      Constructors 
      Constructor Description
      SyntaxStyles​(@NotNull SyntaxStyle @NotNull [] styles)
      Creates a new instance.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      @NotNull SyntaxStyle getStyle​(byte id)
      Returns a style for a token id.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SyntaxStyles

        public SyntaxStyles​(@NotNull
                            @NotNull SyntaxStyle @NotNull [] styles)
        Creates a new instance. The passed array maps token id to style. The first entry is unused; all other entries must be non-null.
        Parameters:
        styles - the styles to store
    • Method Detail

      • getStyle

        @NotNull
        public @NotNull SyntaxStyle getStyle​(byte id)
        Returns a style for a token id.
        Parameters:
        id - the token id
        Returns:
        the style