/** * Sets the size of this <code>Dimension</code> object to the specified * width and height. This method is included for completeness, to parallel * the {@link java.awt.Component#getSize() getSize} method of * {@link java.awt.Component}. * * @param width the new width for the <code>Dimension</code> object * @param height the new height for the <code>Dimension</code> object */ public void setSize(final double width, final double height) { setHeight((float) height); setWidth((float) width); }
/** * Sets the size of this <code>Dimension</code> object to the specified * width and height. This method is included for completeness, to parallel * the {@link java.awt.Component#getSize() getSize} method of * {@link java.awt.Component}. * * @param width the new width for the <code>Dimension</code> object * @param height the new height for the <code>Dimension</code> object */ public void setSize(final double width, final double height) { setHeight((float) height); setWidth((float) width); }
/** * Sets the size of this <code>Dimension</code> object to the specified * width and height. This method is included for completeness, to parallel * the {@link java.awt.Component#getSize() getSize} method of * {@link java.awt.Component}. * * @param width the new width for the <code>Dimension</code> object * @param height the new height for the <code>Dimension</code> object */ public void setSize(final double width, final double height) { setHeight((float) height); setWidth((float) width); }