Class JSyntaxStyle

java.lang.Object
net.thevpc.jeep.editor.JSyntaxStyle
All Implemented Interfaces:
Cloneable

public final class JSyntaxStyle extends Object implements Cloneable
  • Field Details

  • Constructor Details

    • JSyntaxStyle

      public JSyntaxStyle(String name)
    • JSyntaxStyle

      public JSyntaxStyle(String name, ColorResource color, boolean bold, boolean italic)
    • JSyntaxStyle

      public JSyntaxStyle(String name, ColorResource color, int fontStyle)
  • Method Details

    • getName

      public String getName()
    • isBold

      public boolean isBold()
    • setBold

      public JSyntaxStyle setBold(boolean bold)
    • getColorString

      public String getColorString()
    • setColorString

      public JSyntaxStyle setColorString(ColorResource color)
    • setColorString

      public JSyntaxStyle setColorString(String color)
    • getBoxColor

      public ColorResource getBoxColor()
    • setBoxColor

      public JSyntaxStyle setBoxColor(ColorResource boxColor)
    • getFillColor

      public ColorResource getFillColor()
    • setFillColor

      public JSyntaxStyle setFillColor(ColorResource fillColor)
    • isItalic

      public Boolean isItalic()
    • setItalic

      public JSyntaxStyle setItalic(boolean italic)
    • getFontStyle

      public int getFontStyle()
    • setFontStyle

      public JSyntaxStyle setFontStyle(int fontStyle)
    • isFilled

      public boolean isFilled()
    • setFilled

      public JSyntaxStyle setFilled(boolean b)
    • isBoxed

      public boolean isBoxed()
    • setBoxed

      public JSyntaxStyle setBoxed(boolean b)
    • isJagged

      public boolean isJagged()
    • setJagged

      public JSyntaxStyle setJagged(boolean b)
    • isUnderline

      public boolean isUnderline()
    • setUnderline

      public JSyntaxStyle setUnderline(boolean b)
    • isCrossOut

      public boolean isCrossOut()
    • setCrossOut

      public JSyntaxStyle setCrossOut(boolean b)
    • getColor

      public ColorResource getColor()
    • setColor

      public JSyntaxStyle setColor(ColorResource color)
    • copy

      public JSyntaxStyle 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 text
      x - - the X origin >= 0
      y - - the Y origin >= 0
      graphics - - the graphics context
      e - - 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

      public void paintJaggedLine(Graphics g, int y, int x1, int x2, Color color)
    • paintUnderline

      public void paintUnderline(Graphics g, int y, int x1, int x2, Color color)