Examples of ZssDrawing


Examples of jxl.biff.drawing.ZssDrawing

 
  private void importSheetImages(SheetImpl zkSheet, jxl.Sheet sheet){
    final int sz = sheet.getNumberOfImages();
    for(int i =0; i < sz; i++){
      Drawing drawing =  (Drawing) sheet.getDrawing(i);
      ZssDrawing zd = new ZssDrawing(drawing);
      try {
        final Image image = new ImageImpl(zd.getName(), zd.getAlt(), zd.getImageData(),
            zd.getTop(), zd.getTopFraction() / 256d,
            zd.getLeft(), zd.getLeftFraction() / 1024d,
            getWidthInPx(zkSheet, zd), getHeightInPx(zkSheet, zd));
        zkSheet.addImage(image);

        if(log.debugable()){
          StringBuffer sb = new StringBuffer();
          sb.append(zd.getName());
          sb.append("\n\tProperties: "+zd.getProperties());
          sb.append("\n\tLeft: "+zd.getLeft());
          sb.append("\n\tLeftFraction: "+zd.getLeftFraction());
          sb.append("\n\tTop: "+zd.getTop());
          sb.append("\n\tTopFraction: "+zd.getTopFraction());
          sb.append("\n\tRight: "+zd.getRight());
          sb.append("\n\tRightFraction: "+zd.getRightFraction());
          sb.append("\n\tBottom: "+zd.getBottom());
          sb.append("\n\tBottomFraction: "+zd.getBottomFraction());
 
          sb.append("\n\timage.getAlt(): "+image.getAlt());
          sb.append("\n\timage.getColumn(): "+image.getColumn());
          sb.append("\n\timage.getColumnFraction(): "+image.getColumnFraction());
          sb.append("\n\timage.getRow(): "+image.getRow());
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.