Exemplo n.º 1
0
 /** Returns the well's position in cm, with all modifiers. */
 public Point2D getAbsoluteLocation() {
   if (parentPlate.isRotated) {
     return new Point2D.Double(
         parentPlate.getTLcorner().getX()
             + parentPlate.getDimensions().getY()
             - relativeLocation.getY(),
         parentPlate.getTLcorner().getY() + relativeLocation.getX());
   } else {
     return new Point2D.Double(
         parentPlate.getTLcorner().getX() + relativeLocation.getX(),
         parentPlate.getTLcorner().getY() + relativeLocation.getY());
   }
 }