Class JSyntaxStyle
java.lang.Object
net.thevpc.jeep.editor.JSyntaxStyle
- All Implemented Interfaces:
Cloneable
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionJSyntaxStyle(String name) JSyntaxStyle(String name, ColorResource color, boolean bold, boolean italic) JSyntaxStyle(String name, ColorResource color, int fontStyle) -
Method Summary
Modifier and TypeMethodDescriptioncopy()intdrawText(Segment segment, int x, int y, Graphics graphics, TabExpander e, int startOffset) Draw text.getColor()intgetName()booleanisBold()booleanisBoxed()booleanbooleanisFilled()isItalic()booleanisJagged()booleanvoidpaintJaggedLine(Graphics g, int y, int x1, int x2, Color color) voidpaintUnderline(Graphics g, int y, int x1, int x2, Color color) setBold(boolean bold) setBoxColor(ColorResource boxColor) setBoxed(boolean b) setColor(ColorResource color) setColorString(String color) setColorString(ColorResource color) setCrossOut(boolean b) setFillColor(ColorResource fillColor) setFilled(boolean b) setFontStyle(int fontStyle) setItalic(boolean italic) setJagged(boolean b) setUnderline(boolean b)
-
Field Details
-
BOLD
public static final int BOLD- See Also:
-
ITALIC
public static final int ITALIC- See Also:
-
PLAIN
public static final int PLAIN- See Also:
-
BOXED
public static final int BOXED- See Also:
-
FILLED
public static final int FILLED- See Also:
-
JAGGED
public static final int JAGGED- See Also:
-
UNDERLINE
public static final int UNDERLINE- See Also:
-
CROSS_OUT
public static final int CROSS_OUT- See Also:
-
-
Constructor Details
-
JSyntaxStyle
-
JSyntaxStyle
-
JSyntaxStyle
-
-
Method Details
-
getName
-
isBold
public boolean isBold() -
setBold
-
getColorString
-
setColorString
-
setColorString
-
getBoxColor
-
setBoxColor
-
getFillColor
-
setFillColor
-
isItalic
-
setItalic
-
getFontStyle
public int getFontStyle() -
setFontStyle
-
isFilled
public boolean isFilled() -
setFilled
-
isBoxed
public boolean isBoxed() -
setBoxed
-
isJagged
public boolean isJagged() -
setJagged
-
isUnderline
public boolean isUnderline() -
setUnderline
-
isCrossOut
public boolean isCrossOut() -
setCrossOut
-
getColor
-
setColor
-
copy
-
drawText
public int drawText(Segment segment, int x, int y, Graphics graphics, TabExpander e, int startOffset) Draw text. This can directly call the Utilities.drawTabbedText. Sub-classes can override this method to provide any other decorations.- Parameters:
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- Returns:
- size
-
paintJaggedLine
-
paintUnderline
-