public class SizeF
extends java.lang.Object
| Constructor and Description |
|---|
SizeF(float width,
float height)
Create a new SizeF instance.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj)
Check if this size is equal to another size.
|
float |
getHeight()
Get the height of the size.
|
float |
getWidth()
Get the width of the size.
|
int |
hashCode() |
java.lang.String |
toString()
Return the size represented as a string with the format
"WxH" |
public SizeF(float width,
float height)
width - The width of the sizeheight - The height of the sizepublic float getWidth()
public float getHeight()
public boolean equals(java.lang.Object obj)
Two sizes are equal if and only if both their widths and heights are the same.
For this purpose, the width/height float values are considered to be the same if and only
if the method Float.floatToIntBits(float) returns the identical int value
when applied to each.
equals in class java.lang.Objecttrue if the objects were equal, false otherwisepublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
"WxH"toString in class java.lang.ObjectCopyright © 2004-2025 Aspose Pty Ltd. All Rights Reserved.