Package simtools.diagram

Examples of simtools.diagram.DiagramClipboard


      int dx=_dragPoint.x;
      int dy=_dragPoint.y;

      g2.translate(dx,dy);
     
      DiagramClipboard dc=DiagramClipboard.get();

      // loop on objects to be displayed
      //--------------------------------
      g2.setColor(Color.green);
      for(int i=0;i<dc.size();i++){
        // connectors are not connected to connections
        // can't call getConnections() on
        // connections are connected to connectors
        // and have been copied to clipboard
        Object o=dc.elementAt(i);
        if(o instanceof AbstractShape){
          AbstractShape r=(AbstractShape)o;
          r.draw(g2);
          // update drawing size
          r.getMax(pMax);
View Full Code Here


            int dx=_dragPoint.x;
            int dy=_dragPoint.y;

            g2.translate(dx,dy);

            DiagramClipboard dc=DiagramClipboard.get();

            // loop on objects to be displayed
            //--------------------------------
            g2.setColor(Color.green);
            for(int i=0;i<dc.size();i++){
                // connectors are not connected to connections
                // can't call getConnections() on
                // connections are connected to connectors
                // and have been copied to clipboard
                Element r= (Element)dc.get(i);


                g2.draw(r);

                // UPdate the bottom right point
View Full Code Here

TOP

Related Classes of simtools.diagram.DiagramClipboard

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.