EVALUATION
Need some new methods for minimum and maximum size of a frame. Commit to Tiger.
richard.ray@eng 2000-03-17
Necessary javadoc changes:
(Preliminary Specification)
java.awt.Window:
/**
* Sets the minimum size of this window to a constant
* value. Subsequent calls to <code>getMinimumSize</code>
* will always return this value. If current window's
* size is less than specified by <code>minimumSize</code>
* param it's automatically enlarged. If <code>setSize</code>
* or <code>setBounds</code> call is made with width and height
* less than specified by <code>setMinimumSize</code> window
* will by automatically enlarged to minimumSize value.
* Setting the minimum size to <code>null</code> restores
* the default behavior.
* <p>
* Resizing operation may be restricted if user tries
* to resize window below the <code>minimumSize</code> value.
* This behaviour is platform-dependent.
*
* @param minimumSize the new minimum size of this window
* @see Component#setMinimumSize
* @see #getMinimumSize
* @see #isMinimumSizeSet
* @see #setSize(Dimension)
*/
public void setMinimumSize(Dimension minimumSize)
/**
* {@inheritDoc}
* <p>
* Values of <code>d.width</code> or <code>d.height</code>
* will be automatically enlarged if they are less than
* window's minimum size specified by previous call to
* <code>setMinimumSize</code>.
*
* @see #getSize
* @see #setBounds
* @see #setMinimumSize
*/
public void setSize(Dimension d)
/**
* {@inheritDoc}
* <p>
* Values of <code>width</code> or <code>height</code>
* will be automatically enlarged if they are less than
* window's minimum size specified by previous call to
* <code>setMinimumSize</code>.
*
* @see #getSize
* @see #setBounds
* @see #setMinimumSize
*/
public void setSize(int width, int height)
/**
* {@inheritDoc}
* <p>
* Values of <code>width</code> or <code>height</code>
* will be automatically enlarged if they are less than
* window's minimum size specified by previous call to
* <code>setMinimumSize</code>.
*
* @see #getBounds
* @see #setLocation(int, int)
* @see #setLocation(Point)
* @see #setSize(int, int)
* @see #setSize(Dimension)
* @see #setMinimumSize
* @see #setLocationByPlatform
* @see #isLocationByPlatform
* @since 1.5
*/
public void setBounds(int x, int y, int width, int height)
/**
* {@inheritDoc}
* <p>
* Values of <code>r.width</code> or <code>r.height</code>
* will be automatically enlarged if they are less than
* window's minimum size specified by previous call to
* <code>setMinimumSize</code>.
*
* @see #getBounds
* @see #setLocation(int, int)
* @see #setLocation(Point)
* @see #setSize(int, int)
* @see #setSize(Dimension)
* @see #setMinimumSize
* @see #setLocationByPlatform
* @see #isLocationByPlatform
* @since 1.5
*/
public void setBounds(Rectangle r)
/**
* @deprecated As of JDK version 1.1,
* replaced by <code>setBounds(int, int, int, int)</code>.
*/
@Deprecated
public void reshape(int x, int y, int width, int height)
###@###.### 2005-06-10 13:18:36 GMT
|