| java.lang.Object | |
| ↳ | com.pspdfkit.utils.Size |
Data structure representing a size.
|
[Expand]
Inherited Constants | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From interface
android.os.Parcelable
| |||||||||||
| Fields | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| public static final Creator<Size> | CREATOR | ||||||||||
| public final float | height | ||||||||||
| public final float | width | ||||||||||
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
|
Size(float width, float height)
Creates a size representation.
| |||||||||||
| Protected Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Size(Parcel in) | |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| int | compareTo(Size another) | ||||||||||
| int | describeContents() | ||||||||||
| boolean | equals(Object o) | ||||||||||
| int | hashCode() | ||||||||||
| boolean |
isPortrait()
Check if size has portrait orientation.
| ||||||||||
| Size |
toLandscape()
Create size in landscape orientation.
| ||||||||||
| Size |
toPortrait()
Create size in portrait orientation.
| ||||||||||
| RectF |
toRect()
Expresses this size as (0, 0, width, height) rect.
| ||||||||||
| String | toString() | ||||||||||
| void | writeToParcel(Parcel dest, int flags) | ||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
android.os.Parcelable
| |||||||||||
From interface
java.lang.Comparable
| |||||||||||
Creates a size representation.
| width | Size width value. |
|---|---|
| height | Size height value. |
Check if size has portrait orientation.
height >= width
Create size in landscape orientation.
Create size in portrait orientation.