public final class Size
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static Size |
Empty
Constant with empty size (0, 0)
|
int |
height
The height value in pixels
|
static Size |
OnePixelSize
Constant with one pixel size (1, 1)
|
int |
width
The width value in pixels
|
Constructor and Description |
---|
Size(int width,
int height)
Createa a new
Size instance |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
int |
hashCode() |
boolean |
isEmpty()
Gets value indicating whether this size is empty
|
boolean |
isOnePixelSize()
Gets the value indicating whether this size is one pixel size
|
java.lang.String |
toString() |
public final int width
public final int height
public static final Size Empty
public static final Size OnePixelSize
public Size(int width, int height)
Size
instancewidth
- The width value in pixelsheight
- The height value in pixelspublic boolean isEmpty()
public boolean isOnePixelSize()
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object