Package de.hpi.eworld.gui.util

Examples of de.hpi.eworld.gui.util.Polygon2D.addPoint()


  public Rectangle2D getInitialBounds() {
    PolygonLocationModel model = (PolygonLocationModel) getModelElement()
        .getLocation();
    Polygon2D poly = new Polygon2D();
    for (GlobalPosition p : model.getPoints()) {
      poly.addPoint(p.projected());
    }

    return poly.getBounds2D();
  }
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.