Package it.stefanobertini.zebra.beans

Examples of it.stefanobertini.zebra.beans.Position


public class RssTest {

    @Test
    public void test1() {
  Rss command = new Rss(Orientation.horizontal, new Position(10, 110), 2, 25, 3, 22, RssBarcodeType.RSS_14, "1234567890123", "1234567890");

  CommandOutputBuilder output = new CommandOutputBuilder();
  output.printLn("BARCODE RSS 10 110 2 25 3 22 1 1234567890123|1234567890");

  assertCommand(output, command);
View Full Code Here


  assertCommand(output, command);
    }

    @Test
    public void test2() {
  Rss command = new Rss(Orientation.horizontal, new Position(10, 110), 2, 25, 3, 22, RssBarcodeType.RSS_14_Stacked, "1234567890123", "");

  CommandOutputBuilder output = new CommandOutputBuilder();
  output.printLn("BARCODE RSS 10 110 2 25 3 22 3 1234567890123");

  assertCommand(output, command);
View Full Code Here

  assertCommand(output, command);
    }

    @Test
    public void test3() {
  Rss command = new Rss(Orientation.horizontal, new Position(10, 110), 2, 25, 3, 22, RssBarcodeType.RSS_Expanded, "1234567890123", "");

  CommandOutputBuilder output = new CommandOutputBuilder();
  output.printLn("BARCODE RSS 10 110 2 25 3 22 6 1234567890123");

  assertCommand(output, command);
View Full Code Here

  assertCommand(output, command);
    }

    @Test
    public void test4() {
  Rss command = new Rss(Orientation.horizontal, new Position(10, 110), 2, 25, 3, 22, RssBarcodeType.UCC_128_Composite_A_B, "12345678901234567890",
          "1234567890");

  CommandOutputBuilder output = new CommandOutputBuilder();
  output.printLn("BARCODE RSS 10 110 2 25 3 22 11 12345678901234567890|1234567890");
View Full Code Here

  assertCommand(output, command);
    }

    @Test
    public void test5() {
  Rss command = new Rss(Orientation.horizontal, new Position(10, 110), 2, 25, 3, 22, RssBarcodeType.RSS_14, "1011234567890", "");

  CommandOutputBuilder output = new CommandOutputBuilder();
  output.printLn("BARCODE RSS 10 110 2 25 3 22 1 1011234567890");

  assertCommand(output, command);
View Full Code Here

public class InverseLineTest {

    @Test
    public void testDefault() {
  InverseLine command = new InverseLine(new Position(1, 2), new Position(3, 4));

  CommandOutputBuilder output = new CommandOutputBuilder();
  output.printLn("INVERSE-LINE 1 2 3 4 1");

  assertCommand(output, command);
View Full Code Here

  assertCommand(output, command);
    }

    @Test
    public void test() {
  InverseLine command = new InverseLine(new Position(1, 2), new Position(3, 4), 5);

  CommandOutputBuilder output = new CommandOutputBuilder();
  output.printLn("INVERSE-LINE 1 2 3 4 5");

  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 CompressedGraphicsTest {

    @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");
View Full Code Here

    @Test
    public void test2() {
  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

TOP

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

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.