Package com.baulsupp.less

Examples of com.baulsupp.less.ViewRowRenderer


    renderers = new ArrayList<CursesListRenderer<Line>>();

    Renderer<Line> gridNonWrapped = format.getLineRenderer();
    gridNonWrapped.setWidth(Toolkit.getScreenWidth());

    ViewRowRenderer viewRenderer = new ViewRowRenderer(gridNonWrapped);
    renderers.add(viewRenderer);

    if (gridNonWrapped instanceof FieldRenderer) {
      ((FieldRenderer) gridNonWrapped).setWrappingMode(Wrap.NONE);

      Renderer<Line> gridWrapped = format.getLineRenderer();
      gridWrapped.setWidth(Toolkit.getScreenWidth());
      ((FieldRenderer) gridWrapped).setWrappingMode(Wrap.LAST_COLUMN);

      ((FieldRenderer) gridWrapped).addHighlight(less.getExtraHighlights());
      ((FieldRenderer) gridNonWrapped).addHighlight(less.getExtraHighlights());

      viewRenderer = new ViewRowRenderer(gridWrapped);
      renderers.add(viewRenderer);
    }

    TextRenderer<Line> plain = new TextRenderer<Line>();
    plain.setWrapping(Toolkit.getScreenWidth());
View Full Code Here


  public void rotateRenderer(Less less) {
    CursesListRenderer<Line> nextRenderer = getNextRenderer();

    if (nextRenderer instanceof ViewRowRenderer) {
      ViewRowRenderer viewRenderer = (ViewRowRenderer) nextRenderer;

      if (viewRenderer.getRenderer() instanceof FieldRenderer) {
        FieldRenderer fieldRenderer = (FieldRenderer) viewRenderer.getRenderer();
        less.list.setSidewaysSteps(fieldRenderer.getWidths().getSteps());
      }
    } else {
      less.list.setSidewaysSteps(null);
    }
View Full Code Here

TOP

Related Classes of com.baulsupp.less.ViewRowRenderer

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.