/** * Sets the height of the shape. * * @param height the height of the shape */ public void setHeight(double height) { dim.setHeight(height); }
public static Dimensions createDimensions(double width, double height) { Dimensions dim = new Dimensions(); dim.setWidth(width); dim.setHeight(height); return dim; }