/** @see IFigure#setPreferredSize(Dimension) */ public void setPreferredSize(Dimension size) { if (prefSize != null && prefSize.equals(size)) return; prefSize = size; revalidate(); }
/** @see IFigure#setMinimumSize(Dimension) */ public void setMinimumSize(Dimension d) { if (minSize != null && minSize.equals(d)) return; minSize = d; revalidate(); }