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

NameTypeAccessDescription
leftfloatReadGets the x-coordinate of the lower-left corner.
bottomfloatReadGets the y-coordinate of the lower-left corner.
widthfloatReadGets the width of the rectangle.
heightfloatReadGets the height of the rectangle.
roundedCornerRadiusfloatReadGets the corner radius for rounded rectangles.

méthodes

SignatureDescription
Rectangle(left: float, bottom: float, width: float, height: float)Creates a new rectangle with the specified position and dimensions.
getLeft()floatGets the x-coordinate of the lower-left corner.
setLeft(left: float)Sets the x-coordinate of the lower-left corner.
getBottom()floatGets the y-coordinate of the lower-left corner.
setBottom(bottom: float)Sets the y-coordinate of the lower-left corner.
getWidth()floatGets the width of the rectangle.
setWidth(width: float)Sets the width of the rectangle.
getHeight()floatGets the height of the rectangle.
setHeight(height: float)Sets the height of the rectangle.
getRoundedCornerRadius()floatGets 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
 Français