Package CH.ifa.draw.framework

Examples of CH.ifa.draw.framework.DrawingChangeEvent


      Rectangle newRect = this.figure.displayBox();
      Drawing drawing = view.drawing();
      FigureChangeEvent ev0 = new FigureChangeEvent(this.figure);
      drawing.figureChanged(ev0);

      DrawingChangeEvent ev = new DrawingChangeEvent(drawing, oldRect);
      view.drawingRequestUpdate(ev);
      ev = new DrawingChangeEvent(drawing, newRect);
      view.drawingRequestUpdate(ev);
      // view.drawingInvalidated(ev);
      // view.repairDamage();
   }
View Full Code Here


      r.add(shadowLayouter.transformRectangle(r));
    }

    r = applyScale(r, false);

    super.drawingInvalidated(new DrawingChangeEvent(e.getDrawing(), r));

    revalidate();
  }
View Full Code Here

    to.translate(lightX, lightY);
    to.scale(factor, factor);
    to.translate(-lightX, -lightY);

    view.drawingInvalidated(new DrawingChangeEvent(view.drawing(), new Rectangle(-10000, -10000, 20000, 20000)));
    view.repairDamage();
  }
View Full Code Here

TOP

Related Classes of CH.ifa.draw.framework.DrawingChangeEvent

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.