The Dimension2D class is to encapsulate a width and a height dimension.
This class is only the abstract superclass for all objects that store a 2D dimension. The actual storage representation of the sizes is left to the subclass.
The Dimension2D class is to encapsulate a width and a height dimension. This class is only the abstract superclass for all objects that store a 2D dimension. The actual storage representation of the sizes is left to the subclass.
(clone this)Creates a new object of the same class as this object.
returns: a clone of this instance. - java.lang.Object
throws: java.lang.OutOfMemoryError - if there is not enough memory.
Creates a new object of the same class as this object. returns: a clone of this instance. - `java.lang.Object` throws: java.lang.OutOfMemoryError - if there is not enough memory.
(get-height this)Returns the height of this Dimension in double precision.
returns: the height of this Dimension. - double
Returns the height of this Dimension in double precision. returns: the height of this Dimension. - `double`
(get-width this)Returns the width of this Dimension in double precision.
returns: the width of this Dimension. - double
Returns the width of this Dimension in double precision. returns: the width of this Dimension. - `double`
(set-size this d)(set-size this width height)Sets the size of this Dimension object to the specified width and height. This method is included for completeness, to parallel the getSize method of Component.
width - the new width for the Dimension object - double
height - the new height for the Dimension object - double
Sets the size of this Dimension object to the specified width and height. This method is included for completeness, to parallel the getSize method of Component. width - the new width for the Dimension object - `double` height - the new height for the Dimension object - `double`
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |