Simeon
Vue de l’ensemble
‘SizeF’ est une classe dans Aspose.Slides FOSS pour Java.
Il représente une taille 2D avec des dimensions flottantes.
Cette classe fournit 12 méthodes pour travailler avec des objets SizeF dans les programmes Java. Les méthodologies disponibles comprennent: SizeF, add , ’equals;getHeight; getWidth : hashCode ; 'isEmpty ؛ setHeigh . Tous les membres publics sont accessibles à n’importe quelle application Java après l’installation de l’Aspose.Slides FOSS pour le package Java . Propriétés : EMPTY et empty.
Propriétés
| Name | Type | Access | Description |
|---|---|---|---|
width | float | Read | Gets the width. |
height | float | Read | Gets the height. |
empty | boolean | Read | Returns {@code true} if both dimensions are zero. |
EMPTY | SizeF | Read | Empty size with dimensions (0, 0). |
méthodes
| Signature | Description |
|---|---|
SizeF(width: float, height: float) | Initializes a new instance of SizeF with the specified dimensions. |
SizeF() | Initializes a new instance of SizeF with dimensions (0, 0). |
getWidth() → float | Gets the width. |
setWidth(width: float) | Sets the width. |
getHeight() → float | Gets the height. |
setHeight(height: float) | Sets the height. |
isEmpty() → boolean | Returns {@code true} if both dimensions are zero. |
add(a: SizeF, b: SizeF) → SizeF | Adds two sizes component-wise. |
toSize() → Size | Converts this SizeF to a Size by truncating to integer dimensions. |
equals(obj: Object) → boolean | |
hashCode() → int | Returns a hash code based on the size’s dimensions |
toString() → String |
Voir aussi
- Aspose.Slides - référence API d’entreprise