コード例 #1
0
ファイル: AbstractBlock.java プロジェクト: bruno-sales/PCS
 /**
  * Arranges the contents of the block, within the given constraints, and returns the block size.
  *
  * @param g2 the graphics device.
  * @param constraint the constraint (<code>null</code> not permitted).
  * @return The block size (in Java2D units, never <code>null</code>).
  */
 public Size2D arrange(Graphics2D g2, RectangleConstraint constraint) {
   Size2D base = new Size2D(getWidth(), getHeight());
   return constraint.calculateConstrainedSize(base);
 }