Package org.zkoss.zss.engine.xel

Examples of org.zkoss.zss.engine.xel.Ref3d


   * @return The managed Reference at the same range if already exists;
   * otherwise, the passed in Reference is returned. 
   */
  public Reference addRef(Sheet sheetFrom, Sheet sheetTo, int left, int top, int right, int bottom) {
    Reference ref = sheetTo == null ?
      (Reference) new Ref2d(sheetFrom) : (Reference) new Ref3d(sheetFrom, sheetTo);
    final CellIndex ltci = getCellIndex(top, left);
    final CellIndex rbci = getCellIndex(bottom, right);
    if (!ltci.isEmpty() && !rbci.isEmpty()) {
      final Reference xref  = ltci.getLtRef(right, bottom);
      if (xref != null && xref.getSheet() == sheetFrom && xref.getSheetTo() == sheetTo) {
View Full Code Here


 
  /*package*/ Collection getIntersectRef3ds(int row, int col, int sheetIndex, Collection lst) {
    if (_ltRefs != null) {
      final BookImpl book = (BookImpl)((Matrix3d)getMatrix()).getBook();
      for(final Iterator it = _ltRefs.iterator(); it.hasNext();) {
        final Ref3d ref = (Ref3d) it.next();
        final Sheet bsheet = ref.getSheet();
        final Sheet esheet = ref.getSheetTo();
        final int[] indexes = book.getSheetIndexes(bsheet, esheet);
        final int bi = indexes[0];
        final int ei = indexes[1];
        final int refr = ref.getRight();
        final int refb = ref.getBottom();
        if ((refr == -1 || refr >= col) && (refb == -1 || refb >= row)
        && sheetIndex >= bi && sheetIndex <= ei) {
          lst.add(ref);
        }
      }
View Full Code Here

TOP

Related Classes of org.zkoss.zss.engine.xel.Ref3d

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.