java.lang.Object | |
↳ | com.pspdfkit.utils.Size |
Data structure representing a size.
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
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(RectF reusableeRect)
Expresses this size as (0, 0, width, height) rect.
| ||||||||||
RectF |
toRect()
Expresses this size as (0, 0, width, height) rect.
| ||||||||||
String | toString() | ||||||||||
void | writeToParcel(Parcel dest, int flags) |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() | |||||||||||
![]() |
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.