Package CH.ifa.draw.framework

Examples of CH.ifa.draw.framework.Figure.displayBox()


    Rectangle db = presentationFigure.displayBox();

    for (FigureEnumeration fe = figures(); fe.hasMoreElements();)
    {
      Figure f = fe.nextFigure();
      Rectangle kind = f.displayBox();
      db = db.union(kind);
    }

    return db;
  }
View Full Code Here


      {
        r = ((LayoutableTag) subFigure).getLayouter().calculateSize();
      }
      else
      {
        r = subFigure.displayBox();
      }

      width = Math.max(r.width, width);

      // Add sub figure height and vertical insets
View Full Code Here

      {
        r = ((LayoutableTag) subFigure).getLayouter().calculateSize();
      }
      else
      {
        r = subFigure.displayBox();
      }

      // Set the sub figure position and size
      int x = xBaseLine + CommonUtil.rnd(xFactor * r.width);
      r.setLocation(x, yPos);
View Full Code Here

      }

      // Set the sub figure position and size
      int x = xBaseLine + CommonUtil.rnd(xFactor * r.width);
      r.setLocation(x, yPos);
      subFigure.displayBox(r);

      // Add sub figure height and vertical insets
      yPos += insets.top + insets.bottom + r.height;
    }
  }
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.