Package it.stefanobertini.zebra

Examples of it.stefanobertini.zebra.CommandOutputBuilder


  command.addText("1st line of text");
  command.addText("2nd line of text");
  command.addText(":");
  command.addText("Nth line of text");

  CommandOutputBuilder output = new CommandOutputBuilder();
  output.printLn("MULTILINE 47");
  output.printLn("TEXT 4 0 10 20");
  output.printLn("1st line of text");
  output.printLn("2nd line of text");
  output.printLn(":");
  output.printLn("Nth line of text");
  output.printLn("ENDMULTILINE");

  assertCommand(output, command);
    }
View Full Code Here


    @Test
    public void test() {
  LeftMargin command = new LeftMargin(10);

  CommandOutputBuilder output = new CommandOutputBuilder();
  output.printLn("! U1 LMARGIN 10");

  assertCommand(output, command);
    }
View Full Code Here

    @Test
    public void testDefault() {
  LeftMargin command = new LeftMargin();

  CommandOutputBuilder output = new CommandOutputBuilder();
  output.printLn("! U1 LMARGIN 0");

  assertCommand(output, command);
    }
View Full Code Here

    @Test
    public void test1() {
  CompressedGraphics command = new CompressedGraphics(Orientation.horizontal, new Size(2, 16), new Position(90, 45),
          "F0F0F0F0F0F0F0F00F0F0F0F0F0F0F0FF0F0F0F0F0F0F0F00F0F0F0F0F0F0F0F");

  CommandOutputBuilder output = new CommandOutputBuilder();
  output.printLn("COMPRESSED-GRAPHICS 2 16 90 45 F0F0F0F0F0F0F0F00F0F0F0F0F0F0F0FF0F0F0F0F0F0F0F00F0F0F0F0F0F0F0F");

  assertCommand(output, command);
    }
View Full Code Here

    @Test
    public void test() {
  CheckSum command = new CheckSum();

  CommandOutputBuilder output = new CommandOutputBuilder();
  output.printLn("! UTILITIES");
  output.printLn("CHECKSUM");
  output.printLn("PRINT");

  assertCommand(output, command);
    }
View Full Code Here

    @Test
    public void test() {
  LinePrintOrient command = new LinePrintOrient(LpOrientation.vertical);

  CommandOutputBuilder output = new CommandOutputBuilder();
  output.printLn("! U1 LP-ORIENT 270");

  assertCommand(output, command);
    }
View Full Code Here

    @Test
    public void testDefault() {
  LinePrintOrient command = new LinePrintOrient();

  CommandOutputBuilder output = new CommandOutputBuilder();
  output.printLn("! U1 LP-ORIENT 0");

  assertCommand(output, command);
    }
View Full Code Here

  int[] data = { 0xF0, 0xF0, 0xF0, 0xF0, 0xF0, 0xF0, 0xF0, 0xF0, 0x0F, 0x0F, 0x0F, 0x0F, 0x0F, 0x0F, 0x0F, 0x0F, 0xF0, 0xF0, 0xF0, 0xF0, 0xF0, 0xF0,
          0xF0, 0xF0, 0x0F, 0x0F, 0x0F, 0x0F, 0x0F, 0x0F, 0x0F, 0x0F };

  CompressedGraphics command = new CompressedGraphics(Orientation.vertical, new Size(2, 16), new Position(90, 45), data);

  CommandOutputBuilder output = new CommandOutputBuilder();
  output.printLn("VCOMPRESSED-GRAPHICS 2 16 90 45 F0F0F0F0F0F0F0F00F0F0F0F0F0F0F0FF0F0F0F0F0F0F0F00F0F0F0F0F0F0F0F");

  assertCommand(output, command);
    }
View Full Code Here

    @Test
    public void test() {
  Cut command = new Cut();

  CommandOutputBuilder output = new CommandOutputBuilder();
  output.printLn("! U1 CUT");

  assertCommand(output, command);
    }
View Full Code Here

    @Test
    public void test() {
  GetTime command = new GetTime();

  CommandOutputBuilder output = new CommandOutputBuilder();
  output.printLn("! UTILITIES");
  output.printLn("GET-TIME");
  output.printLn("PRINT");

  assertCommand(output, command);
    }
View Full Code Here

TOP

Related Classes of it.stefanobertini.zebra.CommandOutputBuilder

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.