public final class SyntaxStyle
extends java.lang.Object
Constructor | Description |
---|---|
SyntaxStyle() |
|
SyntaxStyle(java.awt.Color color,
boolean bold,
boolean italic) |
|
SyntaxStyle(java.awt.Color color,
int fontStyle) |
|
SyntaxStyle(java.lang.String str) |
Modifier and Type | Method | Description |
---|---|---|
int |
drawText(javax.swing.text.Segment segment,
int x,
int y,
java.awt.Graphics graphics,
javax.swing.text.TabExpander e,
int startOffset) |
Draw text.
|
java.awt.Color |
getColor() |
|
java.lang.String |
getColorString() |
|
int |
getFontStyle() |
|
boolean |
isBold() |
|
java.lang.Boolean |
isItalic() |
|
void |
setBold(java.lang.Boolean bold) |
|
void |
setColorString(java.lang.String color) |
|
void |
setItalic(java.lang.Boolean italic) |
public SyntaxStyle()
public SyntaxStyle(java.awt.Color color, boolean bold, boolean italic)
public SyntaxStyle(java.awt.Color color, int fontStyle)
public SyntaxStyle(java.lang.String str)
public boolean isBold()
public void setBold(java.lang.Boolean bold)
public java.lang.String getColorString()
public void setColorString(java.lang.String color)
public java.lang.Boolean isItalic()
public void setItalic(java.lang.Boolean italic)
public int getFontStyle()
public java.awt.Color getColor()
public int drawText(javax.swing.text.Segment segment, int x, int y, java.awt.Graphics graphics, javax.swing.text.TabExpander e, int startOffset)
segment
- - the source of the textx
- - the X origin >= 0y
- - the Y origin >= 0graphics
- - the graphics contexte
- - how to expand the tabs. If this value is null, tabs will be
expanded as a space character.startOffset
- - starting offset of the text in the document >= 0