Package it.stefanobertini.zebra.beans

Examples of it.stefanobertini.zebra.beans.Size


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

  item.toString();
    }

    @Test
    public void testSize() {
  Size item = new Size(0, 0);
  item.setHeight(0);
  item.setWidth(0);
  item.getHeight();
  item.getWidth();
  item.toString();
    }
View Full Code Here

public class ExpandedGraphicsTest {

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

  CommandOutputBuilder output = new CommandOutputBuilder();
  output.printLn("EXPANDED-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 };

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

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

  assertCommand(output, command);
View Full Code Here

TOP

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

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.