Package org.zkoss.poi.ss.usermodel

Examples of org.zkoss.poi.ss.usermodel.Picture


  }
 
  private void processPictureMove(Worksheet sheet, Map data) {
    DrawingManager dm = ((SheetCtrl)sheet).getDrawingManager();
    String widgetId = (String) data.get("id");
    Picture pic = null;
    List<Picture> pics = dm.getPictures();
    for (Picture p : pics) {
      if (p.getPictureId().equals(widgetId)) {
        pic = p;
        break;
View Full Code Here


  @Override
  public Picture addPicture(ClientAnchor anchor, byte[] image, int format) {
    synchronized (_sheet) {
      DrawingManager dm = ((SheetCtrl)_sheet).getDrawingManager();
      final Picture picture = dm.addPicture(_sheet, anchor, image, format);
      final RangeImpl rng = (RangeImpl) Ranges.range(_sheet, anchor.getRow1(), anchor.getCol1(), anchor.getRow2(), anchor.getCol2());
      final Collection<Ref> refs = rng.getRefs();
      if (refs != null && !refs.isEmpty()) {
        final Ref ref = refs.iterator().next();
        BookHelper.notifyPictureAdd(ref, picture);
View Full Code Here

TOP

Related Classes of org.zkoss.poi.ss.usermodel.Picture

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.