Examples of substract()


Examples of ariba.util.core.ArithmeticOperations.substract()

            case NONNUMERIC :
                // if this is modified, please modify the getArithmeticOperations
                // in TypeChecker as well
                ArithmeticOperations ops = getArithmeticOperations(v1Type, v2Type);
                if (ops != null) {
                    return ops.substract(v1, v2);
                }
                return newReal( type, doubleValue(v1) - doubleValue(v2) );
            case CUSTOMNUMERICTYPE:
                ArithmeticOperations operations =
                        getArithmeticOperations(v1Type, v2Type);
View Full Code Here

Examples of ariba.util.core.ArithmeticOperations.substract()

                }
                return newReal( type, doubleValue(v1) - doubleValue(v2) );
            case CUSTOMNUMERICTYPE:
                ArithmeticOperations operations =
                        getArithmeticOperations(v1Type, v2Type);
                return operations.substract(v1, v2);
            default:
                return newInteger( type, longValue(v1) - longValue(v2) );
        }
    }
View Full Code Here

Examples of org.apache.harmony.awt.gl.MultiRectArea.substract()

        g.copyArea(adjustedCopyRect.x - dx, adjustedCopyRect.y - dy, adjustedCopyRect.width, adjustedCopyRect.height, dx, dy);

        wasPainted = false;
        MultiRectArea affectedArea = new MultiRectArea(visibleBounds);
        affectedArea.add(lastPaintedRect);
        affectedArea.substract(adjustedCopyRect);
        if (!affectedArea.isEmpty()) {
            Shape oldClip = g.getClip();

            g.setClip(affectedArea);
            parent.paint(g);
View Full Code Here

Examples of org.apache.harmony.awt.gl.MultiRectArea.substract()

                    if (childrenCoverage == null && comp.isOpaque()) {
                        childrenCoverage = new MultiRectArea(bounds);
                        clip = new MultiRectArea(bounds);
                    } else {
                        clip = new MultiRectArea(bounds);
                        clip.substract(childrenCoverage);
                        if (clip.isEmpty()) {
                            continue;
                        }
                        if (comp.isOpaque()) {
                            childrenCoverage = MultiRectArea.union(childrenCoverage, clip);
View Full Code Here

Examples of org.apache.harmony.awt.gl.MultiRectArea.substract()

                    if (childrenCoverage == null && comp.isOpaque()) {
                        childrenCoverage = new MultiRectArea(bounds);
                        clip = new MultiRectArea(bounds);
                    } else {
                        clip = new MultiRectArea(bounds);
                        clip.substract(childrenCoverage);
                        if (clip.isEmpty()) {
                            continue;
                        }
                        if (comp.isOpaque()) {
                            childrenCoverage = MultiRectArea.union(childrenCoverage, clip);
View Full Code Here

Examples of org.apache.harmony.awt.gl.MultiRectArea.substract()

        g.copyArea(adjustedCopyRect.x - dx, adjustedCopyRect.y - dy, adjustedCopyRect.width, adjustedCopyRect.height, dx, dy);

        wasPainted = false;
        MultiRectArea affectedArea = new MultiRectArea(visibleBounds);
        affectedArea.add(lastPaintedRect);
        affectedArea.substract(adjustedCopyRect);
        if (!affectedArea.isEmpty()) {
            Shape oldClip = g.getClip();

            g.setClip(affectedArea);
            parent.paint(g);
View Full Code Here

Examples of org.apache.harmony.awt.gl.MultiRectArea.substract()

        g.copyArea(adjustedCopyRect.x - dx, adjustedCopyRect.y - dy, adjustedCopyRect.width, adjustedCopyRect.height, dx, dy);

        wasPainted = false;
        MultiRectArea affectedArea = new MultiRectArea(visibleBounds);
        affectedArea.add(lastPaintedRect);
        affectedArea.substract(adjustedCopyRect);
        if (!affectedArea.isEmpty()) {
            Shape oldClip = g.getClip();

            g.setClip(affectedArea);
            parent.paint(g);
View Full Code Here

Examples of org.apache.harmony.awt.gl.MultiRectArea.substract()

            MultiRectArea paint = (MultiRectArea) entry.getValue();
            MultiRectArea update = updateRegions.get(c);
            if (update == null) {
                continue;
            }
            update.substract(paint);
            if (update.isEmpty()) {
                updateRegions.remove(c);
            }
        }
    }
View Full Code Here

Examples of org.apache.harmony.awt.gl.MultiRectArea.substract()

            }
            MultiRectArea diff = new MultiRectArea(mra);
            diff.translate(x, y);

            if (paint != null) {
                diff.substract(paint);
            }
            if (update != null) {
                diff.substract(update);
            }
            if (diff.isEmpty()) {
View Full Code Here

Examples of org.apache.harmony.awt.gl.MultiRectArea.substract()

            if (paint != null) {
                diff.substract(paint);
            }
            if (update != null) {
                diff.substract(update);
            }
            if (diff.isEmpty()) {
                return null;
            }
            diff.translate(-x, -y);
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.