Package java.awt.geom.Rectangle2D

Examples of java.awt.geom.Rectangle2D.Double


  InteractionDiagramModel<SVGInteraction, SVGInstance> interactionDiagramModel;

  private void updateExtents() {
    for (Figure f : getFigures()) {
      if (!f.equals(background)) {
        Double figureBounds = f.getBounds();
        Double newExtents = new Double();
        Double currentExtents = background.getBounds();
        // TODO: cleanup re-extenting
        newExtents.width = (((currentExtents.x - newExtents.x) + currentExtents.width) < ((figureBounds.x - newExtents.x)
            + figureBounds.width + (2 * SVGConstants.DEFAULT_DRAWING_MARGINE))) ? ((figureBounds.x - newExtents.x)
            + figureBounds.width + (2 * SVGConstants.DEFAULT_DRAWING_MARGINE))
            : ((currentExtents.x - newExtents.x) + currentExtents.width);
View Full Code Here

TOP

Related Classes of java.awt.geom.Rectangle2D.Double

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.