Package org.eclipse.ecf.tutorial.scribbleshare.toolbox

Examples of org.eclipse.ecf.tutorial.scribbleshare.toolbox.AbstractTool.draw()


    // DataInputStream dins = new DataInputStream(bins);
    try {
      ObjectInputStream ois = new ObjectInputStream(bins);
      AbstractTool tool = (AbstractTool) ois.readObject();
      // Apply the tool to the local canvas.
      tool.draw(canvas);
      tools.add(tool);
    } catch (IOException e1) {
      // TODO Auto-generated catch block
      e1.printStackTrace();
    } catch (ClassNotFoundException e) {
View Full Code Here


    canvas.addPaintListener(new PaintListener() {

      public void paintControl(PaintEvent e) {
        for (Iterator i = tools.iterator(); i.hasNext();) {
          AbstractTool at = (AbstractTool) i.next();
          at.draw(canvas);
        }
      }

    });
    Listener listener = new Listener() {
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.