Package diva.canvas

Examples of diva.canvas.DamageRegion


     * adjusts the geometry to the current location of the child
     * moves the grab-handles to their new locations.
     */
    public void repaint() {
        // Create the damage region
        DamageRegion d = DamageRegion.createDamageRegion(getTransformContext(),
                getBounds());

        // Change the geometry to match the current location
        refresh();

        // Move the grabhandles
        relocateGrabHandles();

        // Extend the damage region
        d.extend(getBounds());

        // Propagate the damage request
        if (getParent() != null) {
            getParent().repaint(d);
        }
View Full Code Here


     * should therefore be used for repaints that are generated by
     * modifications to the geometry.
     */
    public void repaintAlready() {
        // Create the damage region
        DamageRegion d = DamageRegion.createDamageRegion(getTransformContext(),
                getBounds());

        // Move the grabhandles
        relocateGrabHandles();

        // Extend the damage region
        d.extend(getBounds());

        // Propagate the damage request
        if (getParent() != null) {
            getParent().repaint(d);
        }
View Full Code Here

TOP

Related Classes of diva.canvas.DamageRegion

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.