Package ket.display.box

Examples of ket.display.box.BoxText


  @Override
  public Box toBox(Argument argument, long settings, ColourScheme colourScheme) {
    // Represent blanks strings with nice unicode empty quotes, ''.
    String value = string.equals("") ? "\u0091\u0092" : string;
    return new BoxText(argument, value, settings);
  }
View Full Code Here


    if (mc.isRangeSelectionSet()) {
      modeString = "*" + modeString + "*";
    } else if (mc.isColumnSelectionSet()) {
      modeString = "|" + modeString + "|";
    }
    this.modeBox = new BoxText(MODE, modeString, Box.BOLD_FONT);
    String details = ds.getDetails(); // An optional sub-heading to the label.
    if (details!=null) {
      Box detailsBox = new BoxText(MODE, details, 0L); // Subscript?
      this.modeBox = BoxTools.centredVerticalBoxList(MODE, 0L, this.modeBox, detailsBox);
    }
    this.modeBox = new BorderedBox(MODE, this.modeBox, Box.RIGHT_ALIGN|Box.BOTTOM_ALIGN, false, colourScheme);
  }
View Full Code Here

      double large = 50.0; // bigger than box's yet-to-be-determined width and height.
      Offset bounds = new Offset(2.0*large, 2.0*large);

      Color borderColour = colourScheme.getBorderColour();
      BoxText box = new BoxText(null, " "+label.name+" " , Box.RIGHT_ALIGN|Box.BOTTOM_ALIGN);
      label.actualX = centreX + label.x - large;
      label.actualY = centreY + label.y - large;

      BoxText content = new BoxText(null, " " + label.name + " " , Box.RIGHT_ALIGN|Box.BOTTOM_ALIGN);
      Color colour = colourScheme.getBorderColour(); // This doesn't appear appear to be used.
      Box border = new BorderedBox(null, content, Box.X_CENTRE_ALIGN|Box.Y_CENTRE_ALIGN, highlight, colourScheme);

      Position centre = new Position(label.actualX, label.actualY);
      border.setupAndPaint(g2D, colourScheme, Box.DEFAULT_BOX_FONT_SIZE, centre, new Offset(2*large, 2*large), background);
View Full Code Here

TOP

Related Classes of ket.display.box.BoxText

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.