Package com.jediterm

Examples of com.jediterm.TextStyle


  public void drawSelection(Graphics2D g) {
                /* which is the top one */
    Point top;
    Point bottom;
    TextStyle current = myStyleState.getCurrent();
    g.setColor(current.getForeground());
    g.setXORMode(current.getBackground());
    if (mySelectionStart == null || mySelectionEnd == null) {
      return;
    }

    if (mySelectionStart.y == mySelectionEnd.y) {
View Full Code Here


    public void drawCursor(Graphics2D g) {
      if (needsRepaint()) {
        final int y = (myCursorCoordinates.y - 1 - myClientScrollOrigin);

        if (y >= 0 && y < myTermSize.height) {
          TextStyle current = myStyleState.getCurrent();

          boolean isCursorShown = calculateIsCursorShown(System.currentTimeMillis());

          if (isCursorShown) {
            g.setColor(current.getForeground());
          }
          else {
            g.setColor(current.getBackground());
          }
          g.fillRect(myCursorCoordinates.x * myCharSize.width, y * myCharSize.height,
                     myCharSize.width, myCharSize.height);


View Full Code Here

TOP

Related Classes of com.jediterm.TextStyle

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.