Package com.puppetlabs.xtext.textflow.CharSequences

Examples of com.puppetlabs.xtext.textflow.CharSequences.Fixed


  @Test
  public void test_TextLinewrap() {
    // default is 132 characters before a wrap and 0 wrap indent
    MeasuredTextFlow flow = this.getInjector().getInstance(TextFlow.class);
    Fixed stars = new CharSequences.Fixed('*', 22);
    for(int i = 0; i < 24; i++) {
      flow.appendText(stars);
      flow.appendSpaces(0);
    }
    assertEquals(4, flow.getHeight());
View Full Code Here

TOP

Related Classes of com.puppetlabs.xtext.textflow.CharSequences.Fixed

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.