Package ket.display

Examples of ket.display.ColourScheme


  }
  */

  public Band boxesByDepth(Argument a, TreeMap<Integer, Vector<Band>> map, Position topLeft, ColourScheme colourScheme) {
    Band band = super.boxesByDepth(a, map, topLeft, colourScheme);
    ColourScheme localCS = getLocalColourScheme(colourScheme);
    Argument local = getArgument();
    if (local==null) {
      local = a;
    }
    Position childTopLeft = getPosition(topLeft);
View Full Code Here


    text.clear();
    sizes.clear();
    Vector<Equation> equations = getEquations();

    figs.clear();
    ColourScheme colourScheme = getColourScheme();

    n = equations.size();
    Vector<Integer> visible = findVisibleEquationIndices();
    for (int i=0; i<n; i++) {
      Equation e = equations.get(i);
View Full Code Here

    colourSetup(g2D, colourScheme);
    draw(g2D, topLeft, colourScheme);
  }

  public ColourScheme getLocalColourScheme(ColourScheme colourScheme) {
    ColourScheme localCS = getColourScheme();
    return localCS!=null ? localCS : colourScheme;
  }
View Full Code Here

    ColourScheme localCS = getColourScheme();
    return localCS!=null ? localCS : colourScheme;
  }

  public void colourSetup(Graphics2D g2D, ColourScheme colourScheme) {
    ColourScheme cs = getLocalColourScheme(colourScheme);
    if (argument!=null) {
      Color boxColour = cs.getBoxColour(argument);
      g2D.setColor(boxColour);
    } else {
      g2D.setColor(new Color(0, 0, 0)) ; // !ERROR
    }
  }
View Full Code Here

    }
  }

  @Override
  public void drawBand(Graphics2D g2D, Position topLeft, ColourScheme colourScheme) {
    ColourScheme localCS = getLocalColourScheme(colourScheme);
    for (Box child: children) {
      if (isBand(child)) {
        child.paint(g2D, getPosition(topLeft), localCS);
      }
    }
View Full Code Here

    }
  }

  @Override
  public void draw(Graphics2D g2D, Position topLeft, ColourScheme colourScheme) {
    ColourScheme localCS = getLocalColourScheme(colourScheme);
    //- drawCross(topLeft, g2D);
    for (Box child: children) {
      child.paint(g2D, getPosition(topLeft), localCS);
    }
  }
View Full Code Here

TOP

Related Classes of ket.display.ColourScheme

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.