Examples of recalcBoundingBox()


Examples of net.sf.fysix.leveleditor.tool.level.subtool.draw.ShapeMapObject.recalcBoundingBox()

            int xdiff = wps[i].getX()-anchorPos.getX();
            int ydiff = wps[i].getY()-anchorPos.getY();
            wps[i].setX((int)(anchorPos.getX()+xdiff*Math.cos(Math.PI/4.0)+ydiff*Math.sin(Math.PI/4.0)));
            wps[i].setY((int)(anchorPos.getY()-xdiff*Math.sin(Math.PI/4.0)+ydiff*Math.cos(Math.PI/4.0)));
            }
            ptrSMO.recalcBoundingBox();
          }
        }
      }
    }

View Full Code Here

Examples of net.sf.fysix.leveleditor.tool.level.subtool.draw.ShapeMapObject.recalcBoundingBox()

                  int xdiff = wps[i].getX()-anchorPos.getX();
                  int ydiff = wps[i].getY()-anchorPos.getY();
                  wps[i].setX((int)(anchorPos.getX()+xdiff*Math.cos(Math.PI/4.0)+ydiff*Math.sin(Math.PI/4.0)));
                  wps[i].setY((int)(anchorPos.getY()-xdiff*Math.sin(Math.PI/4.0)+ydiff*Math.cos(Math.PI/4.0)));
                }
                ptrSMO.recalcBoundingBox();
              }
            }
          }
        } else if (source instanceof CustomToggleButton){
            //currentType = (PhysicalEntity)((CustomToggleButton)source).getUserObject();
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.