Size
Contents
[
Hide
]
Inheritance: java.lang.Object
public class Size
Represents a size.
Constructors
Constructor | Description |
---|---|
Size(double width, double height) | Initializes a new instance of the Size class. |
Methods
Method | Description |
---|---|
getWidth() | Gets the width. |
getHeight() | Gets the height. |
toString() |
Size(double width, double height)
public Size(double width, double height)
Initializes a new instance of the Size class.
Parameters:
Parameter | Type | Description |
---|---|---|
width | double | The width in pixels. |
height | double | The height in pixels. |
getWidth()
public double getWidth()
Gets the width.
Returns: double - A double value that represents the width in pixels.
getHeight()
public double getHeight()
Gets the height.
Returns: double - A double value that represents the height in pixels.
toString()
public String toString()
Returns: java.lang.String