Package simtools.shapes

Examples of simtools.shapes.AbstractShape.translate()


      int y=(int)((double)pt.y/_param.scale)-_param.ymargin;
      Vector v=DiagramClipboard.get();
      if(v.size()>0){
        if(v.get(0) instanceof AbstractShape){
          AbstractShape as=(AbstractShape)v.get(0);
          as.translate(x,y);
          ShapesContainer.this.addElement(as);
        }
      }
      DiagramClipboard.get().clear();
      _dragging=false;
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.