Examples of union()


Examples of java.awt.Rectangle.union()

   */
  private void makeRowsVisible(int minRow, int maxRow) {   
    // Compute the rectangle that includes a row
    Rectangle includingRectangle = getCellRect(minRow, 0, true);
    if (minRow != maxRow) {
      includingRectangle = includingRectangle.
          union(getCellRect(maxRow, 0, true));     
    }
    if (getAutoResizeMode() == AUTO_RESIZE_OFF) {
      int lastColumn = getColumnCount() - 1;
      includingRectangle = includingRectangle.
View Full Code Here

Examples of java.awt.Rectangle.union()

    if (getAutoResizeMode() == AUTO_RESIZE_OFF) {
      int lastColumn = getColumnCount() - 1;
      includingRectangle = includingRectangle.
          union(getCellRect(minRow, lastColumn, true));
      if (minRow != maxRow) {
        includingRectangle = includingRectangle.
            union(getCellRect(maxRow, lastColumn, true));     
      }
    }
    scrollRectToVisible(includingRectangle);
  }
View Full Code Here

Examples of jmathexpr.set.EmptySet.union()

        }
       
        Set result = new EmptySet();
       
        for (Set s : results) {
            result = result.union(s);
        }
       
        return result;
    }
   
View Full Code Here

Examples of jmathexpr.set.Set.union()

        }
       
        Set result = new EmptySet();
       
        for (Set s : results) {
            result = result.union(s);
        }
       
        return result;
    }
   
View Full Code Here

Examples of joust.tree.annotatedtree.treeinfo.EffectSet.union()

            if (!visited.contains(child)) {
                child.rebuildFromChildrenInternal(visited);
            }

            newEffectSet = newEffectSet.union(child.effectSet);
        }
        log.trace("New: {}", newEffectSet);

        setEffectSetInternal(newEffectSet, visited);
    }
View Full Code Here

Examples of kodkod.ast.Expression.union()

            case SHR: i=cint(a); return i.shr(cint(b));
            case SHA: i=cint(a); return i.sha(cint(b));
            case PLUS:
                obj = visitThis(a);
                if (obj instanceof IntExpression) { i=(IntExpression)obj; return i.plus(cint(b)); }
                s = (Expression)obj; return s.union(cset(b));
            case MINUS:
                // Special exception to allow "0-8" to not throw an exception, where 7 is the maximum allowed integer (when bitwidth==4)
                // (likewise, when bitwidth==5, then +15 is the maximum allowed integer, and we want to allow 0-16 without throwing an exception)
                if (a instanceof ExprConstant && ((ExprConstant)a).op==ExprConstant.Op.NUMBER && ((ExprConstant)a).num()==0)
                   if (b instanceof ExprConstant && ((ExprConstant)b).op==ExprConstant.Op.NUMBER && ((ExprConstant)b).num()==max+1)
View Full Code Here

Examples of kodkod.ast.Variable.union()

        while(n>0) {
           n--;
           Variable v = Variable.unary("");
           kodkod.ast.Decl dd = v.oneOf(a);
           if (d==null) d=dd; else d=dd.and(d);
           if (sum==null) sum=v; else { if (f!=null) f=v.intersection(sum).no().and(f); sum=v.union(sum); }
        }
        if (f!=null) return sum.eq(a).and(f).forSome(d); else return a.no().or(sum.eq(a).forSome(d));
    }

    //==============================================================================================================//
View Full Code Here

Examples of mf.org.apache.xerces.impl.dtd.models.CMStateSet.union()

                        //
                        //  If this leaf is the current input symbol, then we
                        //  want to add its follow list to the set of states to
                        //  transition to from the current state.
                        //
                        newSet.union(fFollowList[leafIndex]);
                    }

                   leafIndex = fLeafSorter[sorterIndex++];
                }
                /* Optimization(Jan, 2001) */
 
View Full Code Here

Examples of org.antlr.xjlib.appkit.gview.base.Rect.union()

                    continue;

                if (r == null)
                    r = element.bounds();
                else
                    r = r.union(element.bounds());
            }
        }
        return r;
    }
View Full Code Here

Examples of org.apache.isis.viewer.dnd.drawing.Bounds.union()

    }

    public void testEnclosingUnion() {
        final Bounds c = new Bounds(10, 20, 5, 5);
        final Bounds u = new Bounds(b);
        u.union(c);
        assertEquals(b, u);
    }

    public void testExplicitBounds() {
        assertEquals(5, b.getX());
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.