Package com.baulsupp.kolja.util.colours

Examples of com.baulsupp.kolja.util.colours.ColourPair


    return null;
  }

  private ColourPair getFileColour(String name) {
    ColourPair result = colours.get(name);

    if (result == null) {
      result = colourRotator.next();
      colours.put(name, result);
    }
View Full Code Here


    return null;
  }

  private ColourPair getColour(Object name) {
    ColourPair result = colours.get(name);

    if (result == null) {
      result = colourRotator.next();
      colours.put(name, result);
    }
View Full Code Here

  public static ColourPair parseColours(Element element) {
    Colour foreground = Colour.valueOf(element.getAttribute("foreground"));
    Colour background = Colour.valueOf(element.getAttribute("background"));

    return new ColourPair(foreground, background);
  }
View Full Code Here

    HighlightResult highlightResults = null;
    if (highlight != null) {
      highlightResults = highlight.getHighlights(viewRow);
    }

    ColourPair rowColour = highlightResults != null ? highlightResults.getRow() : null;
    if (rowColour != null) {
      seperator = this.seperator.changeColour(rowColour);
    } else {
      seperator = this.seperator;
    }

    if (viewRow.isFailed()) {
      row.append(new ColouredString(rowColour, viewRow.toString()));
      return row;
    }

    MultiColourString gridRow = new MultiColourString();
    boolean firstColumn = true;
    for (int i = 0; i < l; i++) {
      String currentColumn = columns.get(i);

      ColourPair columnColour = rowColour;
      if (highlightResults != null) {
        ColourPair newPair = highlightResults.getColumnHighlight(currentColumn);
        if (newPair != null) {
          columnColour = newPair;
        }
      }
View Full Code Here

TOP

Related Classes of com.baulsupp.kolja.util.colours.ColourPair

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.