Package it.stefanobertini.zebra.beans

Examples of it.stefanobertini.zebra.beans.Font


public class BarcodeTextTest {

    @Test
    public void test() {

  BarcodeText command = new BarcodeText(new Font("4", 0), 10);

  CommandOutputBuilder output = new CommandOutputBuilder();
  output.printLn("BARCODE-TEXT 4 0 10");

  assertCommand(output, command);
View Full Code Here


public class MultilineTest {

    @Test
    public void test() {

  Multiline command = new Multiline(47, TextRotation.horizontal, new Font("4", 0), new Position(10, 20));
  command.addText("1st line of text");
  command.addText("2nd line of text");
  command.addText(":");
  command.addText("Nth line of text");
View Full Code Here

public class SetLinePrintFontTest {

    @Test
    public void test() {
  SetLinePrintFont command = new SetLinePrintFont(new Font("4", 0), 1);

  CommandOutputBuilder output = new CommandOutputBuilder();
  output.printLn("! U1 SETLP 4 0 1");

  assertCommand(output, command);
View Full Code Here

  assertCommand(output, command);
    }

    @Test(expected = ValidationException.class)
    public void testValidation1() {
  SetLinePrintFont command = new SetLinePrintFont(new Font("4", 0), -1);

  CommandOutputBuilder output = new CommandOutputBuilder();
  output.printLn("");

  assertCommand(output, command);
View Full Code Here

public class FontGroupTest {

    @Test
    public void test() {
  FontGroup command = new FontGroup(1);
  command.addFont(new Font("4", 0));
  command.addFont("4", 1);

  CommandOutputBuilder output = new CommandOutputBuilder();
  output.printLn("FG 1 4 0 4 1");
View Full Code Here

public class TextTest {

    @Test
    public void test() {
  Text command = new Text(TextRotation.horizontal, new Font("4", 0), new Position(200, 100), "TEXT");

  CommandOutputBuilder output = new CommandOutputBuilder();
  output.printLn("TEXT 4 0 200 100 TEXT");

  assertCommand(output, command);
View Full Code Here

public class ConcatTest {

    @Test
    public void test() {
  Concat command = new Concat(Orientation.horizontal, new Position(1, 2));
  command.addText(new Font("3", 4), 5, "First line");
  command.addText(new Font("7", 8), 9, "Second line");

  CommandOutputBuilder output = new CommandOutputBuilder();
  output.printLn("CONCAT 1 2");
  output.printLn("3 4 5 First line");
  output.printLn("7 8 9 Second line");
View Full Code Here

        fonts.add(font);
        return this;
    }

    public FontGroup addFont(String font, int size) {
        addFont(new Font(font, size));
        return this;
    }
View Full Code Here

public class FakeTest {

    @Test
    public void testFont() {
  Font font = new Font("4", 0);
  font.getFont();
  font.getSize();
  font.toString();
    }
View Full Code Here

    }

    @Test
    public void test3() {

  Barcode command = new Barcode(BarcodeType.Code128, BarcodeRatio.RATIO_2D0_TO_1__1, 1, 50, new Position(150, 10), "HORIZ.", new Font("4", 0), 10);

  CommandOutputBuilder output = new CommandOutputBuilder();
  output.printLn("BARCODE-TEXT 4 0 10");
  output.printLn("BARCODE 128 1 1 50 150 10 HORIZ.");
  output.printLn("BARCODE-TEXT OFF");
View Full Code Here

TOP

Related Classes of it.stefanobertini.zebra.beans.Font

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.