Rectangle
Vue de l’ensemble
‘Rectangle’ est une classe dans Aspose.PDF FOSS pour Java.Déduit de: Shape.
Il représente une forme de dessin rectangle.
Cette classe fournit 12 méthodes pour travailler avec des objets Rectangle dans les programmes Java. Les méthodologies disponibles comprennent: ‘RectANGle’, ‘checkBounds’, getBottom', ‘getHeight’, 'getLeft', ’getRoundedCornerRadius', ‚getWidth',‘setB bottom, ‘setHeigh’, ‘‘setLef’, ‘’setRoonded Corner Radios , ' setWitth. Tous les membres publics sont accessibles à toute application Java après l’installation de l’Aspose.PDF FOSS pour le package Java . Propriétés : ‘bottom,, 'height ‘, left et ‘roundedcornerradies` ; ‘width’.
Propriétés
| Name | Type | Access | Description |
|---|---|---|---|
left | float | Read | Gets the x-coordinate of the lower-left corner. |
bottom | float | Read | Gets the y-coordinate of the lower-left corner. |
width | float | Read | Gets the width of the rectangle. |
height | float | Read | Gets the height of the rectangle. |
roundedCornerRadius | float | Read | Gets the corner radius for rounded rectangles. |
méthodes
| Signature | Description |
|---|---|
Rectangle(left: float, bottom: float, width: float, height: float) | Creates a new rectangle with the specified position and dimensions. |
getLeft() → float | Gets the x-coordinate of the lower-left corner. |
setLeft(left: float) | Sets the x-coordinate of the lower-left corner. |
getBottom() → float | Gets the y-coordinate of the lower-left corner. |
setBottom(bottom: float) | Sets the y-coordinate of the lower-left corner. |
getWidth() → float | Gets the width of the rectangle. |
setWidth(width: float) | Sets the width of the rectangle. |
getHeight() → float | Gets the height of the rectangle. |
setHeight(height: float) | Sets the height of the rectangle. |
getRoundedCornerRadius() → float | Gets the corner radius for rounded rectangles. |
setRoundedCornerRadius(roundedCornerRadius: float) | Sets the corner radius for rounded rectangles. |
checkBounds(containerWidth: double, containerHeight: double) | {@inheritDoc} |
| / |
Voir aussi
- Aspose.PDF pour Java — API d’entreprise