Package diva.canvas

Examples of diva.canvas.TransformContext


     * Reposition the grab-handle if necessary
     */
    public void relocate() {
        // Be sure to take into account that the transformContext of the
        // site and the context of the grab handle may be different.
        TransformContext tc = getTransformContext();
        Point2D p = _site.getPoint(tc);
        double x = p.getX();
        double y = p.getY();

        if (x != _x || y != _y) {
View Full Code Here


    /**
     * Schedule a repaint of the area given by the given shape
     */
    protected void repaint(Shape shape) {
        _layer.repaint(DamageRegion.createDamageRegion(new TransformContext(_layer), shape.getBounds2D()));
    }
View Full Code Here

TOP

Related Classes of diva.canvas.TransformContext

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.