Package org.zkoss.zss.engine.impl

Examples of org.zkoss.zss.engine.impl.AreaRefImpl


    //top line
    if ((borderIndex & tb) != 0) {
      for (int col = lCol; col <= rCol; ++col) {
        Styles.setBorder(sheet, tRow, col, bsColor, bsLineStyle, tb);
      }
      all.add(new AreaRefImpl(tRow, lCol, tRow, rCol, refSheet));
      final int tRow0 = tRow - 1;
      if (tRow0 >= 0) {
        for (int col = lCol; col <= rCol; ++col) {
          Styles.setBorder(sheet, tRow0, col, bsColor, bsLineStyle, bb);
        }
        all.add(new AreaRefImpl(tRow0, lCol, tRow0, rCol, refSheet));
      }
    }
   
    //bottom row
    if ((borderIndex & bb) != 0) {
      for (int col = lCol; col <= rCol; ++col) {
        Styles.setBorder(sheet, bRow, col, bsColor, bsLineStyle, bb);
      }
      all.add(new AreaRefImpl(bRow, lCol, bRow, rCol, refSheet));
      final int bRow0 = bRow + 1;
      if (bRow0 <= maxrow) {
        for (int col = lCol; col <= rCol; ++col) {
          Styles.setBorder(sheet, bRow0, col, bsColor, bsLineStyle, tb);
        }
        all.add(new AreaRefImpl(bRow0, lCol, bRow0, rCol, refSheet));
      }
    }
   
    //left column
    if ((borderIndex & lb) != 0) {
      for (int row = tRow; row <= bRow; row++) {
        Styles.setBorder(sheet, row, lCol, bsColor, bsLineStyle, lb);
      }
      all.add(new AreaRefImpl(tRow, lCol, bRow, lCol, refSheet));
      final int lCol0 = lCol - 1;
      if (lCol0 >= 0) {
        for (int row = tRow; row <= bRow; row++) {
          Styles.setBorder(sheet, row, lCol0, bsColor, bsLineStyle, rb);
        }
        all.add(new AreaRefImpl(tRow, lCol0, bRow, lCol0, refSheet));
      }
    }

    //right column
    if ((borderIndex & rb) != 0) {
      for (int row = tRow; row <= bRow; row++) {
        Styles.setBorder(sheet, row, rCol, bsColor, bsLineStyle, rb);
      }
      all.add(new AreaRefImpl(tRow, rCol, bRow, rCol, refSheet));
      final int rCol0 = rCol + 1;
      if (rCol0 <= maxcol) {
        for (int row = tRow; row <= bRow; row++) {
          Styles.setBorder(sheet, row, rCol0, bsColor, bsLineStyle, lb);
        }
        all.add(new AreaRefImpl(tRow, rCol0, bRow, rCol0, refSheet));
      }
    }

    return all;
  }
View Full Code Here


          Styles.setBorder(sheet, row, col, bsColor, bsLineStyle, tb);
        }
      }
    }
   
    all.add(new AreaRefImpl(tRow, lCol, bRow, rCol, refSheet));
    return all;
  }
View Full Code Here

          Styles.setBorder(sheet, row, col, bsColor, bsLineStyle, ub);
        }
      }
    }
   
    all.add(new AreaRefImpl(tRow, lCol, bRow, rCol, refSheet));
    return all;
  }
View Full Code Here

    final Set<Ref> all = new HashSet<Ref>();
    for (int col = lCol; col <= rCol; ++col) {
      final int orgChar256 = sheet.getColumnWidth(col);
      if (char256 != orgChar256) {
        sheet.setColumnWidth(col, char256);
        all.add(new AreaRefImpl(0, col, maxrow, col, refSheet));
      }
    }
    return all;
  }
View Full Code Here

      final int orgTwips = rowobj == null ? sheet.getDefaultRowHeight() : rowobj.getHeight();
      if ((twips < 0 && orgTwips < 0) || twips == orgTwips) {
        continue;
      }
      BookHelper.setRowHeight(sheet, row, twips, customHeight);
      all.add(new AreaRefImpl(row, 0, row, maxcol, refSheet));
    }
    return all;
  }
View Full Code Here

        cell.setCellStyle(style);
      }
    }
    final Set<Ref> all = new HashSet<Ref>(1);
    final RefSheet refSheet = BookHelper.getRefSheet((Book)sheet.getWorkbook(), sheet);
    all.add(new AreaRefImpl(tRow, lCol, bRow, rCol, refSheet));
   
    return all;
  }
View Full Code Here

          assignChangeInfo(toEval, affected, mergeChanges, changeInfo0);
        }
      }
    }
    final RefSheet refSheet = BookHelper.getRefSheet((Book)sheet.getWorkbook(), sheet);
    affected.add(new AreaRefImpl(srcbRow + 1, srclCol, dstbRow, srcrCol, refSheet));
    return changeInfo;
  }
View Full Code Here

          assignChangeInfo(toEval, affected, mergeChanges, changeInfo0);
        }
      }
    }
    final RefSheet refSheet = BookHelper.getRefSheet((Book)sheet.getWorkbook(), sheet);
    affected.add(new AreaRefImpl(dsttRow, srclCol, srctRow - 1, srcrCol, refSheet));
    return changeInfo;
  }
View Full Code Here

          assignChangeInfo(toEval, affected, mergeChanges, changeInfo0);
        }
      }
    }
    final RefSheet refSheet = BookHelper.getRefSheet((Book)sheet.getWorkbook(), sheet);
    affected.add(new AreaRefImpl(srctRow, srcrCol + 1, srcbRow, dstrCol, refSheet));
    return changeInfo;
  }
View Full Code Here

          assignChangeInfo(toEval, affected, mergeChanges, changeInfo0);
        }
      }
    }
    final RefSheet refSheet = BookHelper.getRefSheet((Book)sheet.getWorkbook(), sheet);
    affected.add(new AreaRefImpl(srctRow, dstlCol, srcbRow, srclCol - 1, refSheet));
    return changeInfo;
  }
View Full Code Here

TOP

Related Classes of org.zkoss.zss.engine.impl.AreaRefImpl

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.