taille
Vue de l’ensemble
‘Size’ est une classe dans Aspose.Slides FOSS pour Java.
Il représente une taille 2D avec des dimensions intégrales.
Cette classe fournit 12 méthodes pour travailler avec des objets de taille dans les programmes Java. Les méthodologies disponibles comprennent: ‘Size’, ‘add’ , ’equals’, getHeight', ‘getWidth’, 'hashCode', ’isEmpty', ‚setHeigh', ''setWitth', ‘’subtract, ‘’toString`. Tous les membres publics sont accessibles à toute application Java après l’installation du package Java Aspose.Slides FOSS. Propriétés : ‘EMPTY’, “empty”, ‘height’ et ‘width’.
Propriétés
| Name | Type | Access | Description |
|---|---|---|---|
width | int | Read | Gets the width. |
height | int | Read | Gets the height. |
empty | boolean | Read | Returns {@code true} if both dimensions are zero. |
EMPTY | Size | Read | Empty size with dimensions (0, 0). |
méthodes
| Signature | Description |
|---|---|
Size(width: int, height: int) | Initializes a new instance of Size with the specified dimensions. |
Size() | Initializes a new instance of Size with dimensions (0, 0). |
getWidth() → int | Gets the width. |
setWidth(width: int) | Sets the width. |
getHeight() → int | Gets the height. |
setHeight(height: int) | Sets the height. |
isEmpty() → boolean | Returns {@code true} if both dimensions are zero. |
add(a: Size, b: Size) → Size | Adds two sizes component-wise. |
subtract(a: Size, b: Size) → Size | Subtracts one size from another component-wise. |
equals(obj: Object) → boolean | Checks whether the given object is a Size with equal dimensions |
hashCode() → int | Computes a hash code based on width and height |
toString() → String |
Voir aussi
- Aspose.Slides - référence API d’entreprise