Package br.com.objectos.way.barcode

Examples of br.com.objectos.way.barcode.BarWidth


  public static List<Bar> of(List<BarWidth> widths) {
    List<Bar> res = newArrayList();

    for (int i = 0; i < widths.size(); i++) {
      BarColor color = i % 2 == 0 ? BarColor.BLACK : BarColor.WHITE;
      BarWidth width = widths.get(i);
      Bar bar = Bar.of(color, width);
      res.add(bar);
    }

    return res;
View Full Code Here


  public String getStyleClass() {
    BarColor color = bar.getColor();
    String colorName = color.name();

    BarWidth width = bar.getWidth();
    String widthName = width.name();

    return String.format("bc-%s bc-%s", colorName.toLowerCase(), widthName.toLowerCase());
  }
View Full Code Here

TOP

Related Classes of br.com.objectos.way.barcode.BarWidth

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.