public void draw(Graphics2D g2d, int x, int y, int width) {

    int currenty = y;
    for (PrintItem pi : m_aCommands) {
      pi.draw(g2d, x, currenty, width);
      currenty += pi.getHeight();
    }
  }
  public void printBarCode(String type, String position, String code) {

    PrintItem pi = new PrintItemBarcode(type, position, code, getImageScale());
    m_aCommands.add(pi);
    m_iBodyHeight += pi.getHeight();
  }
  // INTERFAZ PRINTER 2
  public void printImage(BufferedImage image) {

    PrintItem pi = new PrintItemImage(image, getImageScale());
    m_aCommands.add(pi);
    m_iBodyHeight += pi.getHeight();
  }