Package it.stefanobertini.zebra.beans

Examples of it.stefanobertini.zebra.beans.Position


    private Orientation orientation;
    private Position position;
    private List<CommandTextProducerInterface> textList = new ArrayList<CommandTextProducerInterface>();

    public ScalableConcat(Orientation orientation) {
        this(orientation, new Position());
    }
View Full Code Here


public class BarcodeTest {

    @Test
    public void test1() {

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

  CommandOutputBuilder output = new CommandOutputBuilder();
  output.printLn("BARCODE 128 1 1 50 150 10 HORIZ.");

  assertCommand(output, command);
View Full Code Here

    }

    @Test
    public void test2() {

  Barcode command = new Barcode(Orientation.vertical, BarcodeType.Code128, BarcodeRatio.RATIO_1D5_TO_1__0, 2, 150, new Position(110, 210), "VERT.");

  CommandOutputBuilder output = new CommandOutputBuilder();
  output.printLn("VBARCODE 128 2 0 150 110 210 VERT.");

  assertCommand(output, command);
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

public class ScalableConcatTest {

    @Test
    public void test() {
  ScalableConcat command = new ScalableConcat(Orientation.horizontal, new Position(0, 20));
  command.addBitmapText(new Font("4", 1), 0, "2/");
  command.addScalableText("PLL_LAT.CSF", 20, 20, 15, "$");
  command.addScalableText("PLL_LAT.CSF", 40, 40, 0, "22");
  command.addScalableText("PLL_LAT.CSF", 20, 20, 0, "99");
View Full Code Here

    private int fontHeight;
    private Position position = new Position(0, 0);
    private String text = "";

    public ScaleText(String name, int fontWidth, int fontHeight) {
        this(Orientation.horizontal, name, fontWidth, fontHeight, new Position(0, 0), "");
    }
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

public class ScaleToFitTest {

    @Test
    public void test() {
  ScaleToFit command = new ScaleToFit(Orientation.horizontal, "PLL_LAT.CSF", 40, 10, new Position(0, 10), "SALE");

  CommandOutputBuilder output = new CommandOutputBuilder();
  output.printLn("SCALE-TO-FIT PLL_LAT.CSF 40 10 0 10 SALE");

  assertCommand(output, command);
View Full Code Here

public class AztecTest {

    @Test
    public void test1() {

  CommandInterface command = new Aztec(Orientation.horizontal, new Position(50, 100), 7, 47, "123456789012");

  CommandOutputBuilder output = new CommandOutputBuilder();
  output.printLn("BARCODE AZTEC 50 100 XD 7 EC 47");
  output.printLn("123456789012");
  output.printLn("ENDAZTEC");
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.