Class SyntaxStyles
- java.lang.Object
-
- net.sf.gridarta.textedit.textarea.SyntaxStyles
-
public class SyntaxStyles extends java.lang.ObjectA set ofSyntaxStyleinstances 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 SyntaxStylegetStyle(byte id)Returns a style for a token id.
-
-
-
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
-
-