RelativeRectangle
ΕΚΤΙΜΗΣΗ
RelativeRectangle Είναι μια τάξη στο Aspose.3D FOSS για Java. Κληρονομιά από: Struct<RelativeRectangle>, Serializable.
Σχετικό ορθόγγελο Η φόρμουλα μεταξύ σχετικού στοιχείου και απόλυτης αξίας είναι: Σκηνή * (Σύγκλιση αναφοράς) + offset Έτσι, αν θέλουμε να αντιπροσωπεύει μια απόλυτη τιμή, αφήστε όλα τα πεδία κλίμακα μηδέν, και χρησιμοποιήστε το αντίθετο πεδίο offse.
Αυτή η κατηγορία παρέχει 25 μεθόδους για να εργαστείτε με RelativeRectangle αντικείμενα σε προγράμματα Java. Οι διαθέσιμες μεθόδους περιλαμβάνουν: RelativeRectangle, clone, copyFrom, equals, fromScale, getOffsetHeight, getOffsetWidth, getOffsetX, getOffsetY, getScaleHeight, getScaleWidth, getScaleX,12 πρόσθετες μεθόδους. Όλα τα μέλη του κοινού είναι προσβάσιμα σε οποιαδήποτε εφαρμογή Java μετά την εγκατάσταση του Aspose.3D FOSS για το πακέτο Java. Ιδιοκτησία : offsetHeight, offsetWidth, offsetX, offsetY, scaleHeight, scaleWidth,Και δύο ακόμα.
Ιδιοκτησία
| Name | Type | Access | Description |
|---|---|---|---|
scaleX | float | Read | Relative coordinate X @return Relative coordinate X / |
scaleY | float | Read | Relative coordinate Y @return Relative coordinate Y / |
scaleWidth | float | Read | Relative width @return Relative width / |
scaleHeight | float | Read | Relative height @return Relative height / |
offsetX | int | Read | Gets the offset for coordinate X @return the offset for coordinate X / |
offsetY | int | Read | Gets the offset for coordinate Y @return the offset for coordinate Y / |
offsetWidth | int | Read | Gets the offset for width @return the offset for width / |
offsetHeight | int | Read | Gets the offset for height @return the offset for height / |
Μέθοδοι
| Signature | Description |
|---|---|
RelativeRectangle() | Calls RelativeRectangle on this RelativeRectangle instance. |
RelativeRectangle(left: int, top: int, width: int, height: int) | Calls RelativeRectangle(left, top, width, height) on this RelativeRectangle instance. |
getScaleX() → float | Relative coordinate X @return Relative coordinate X / |
setScaleX(value: float) | Relative coordinate X @param value New value / |
getScaleY() → float | Relative coordinate Y @return Relative coordinate Y / |
setScaleY(value: float) | Relative coordinate Y @param value New value / |
getScaleWidth() → float | Relative width @return Relative width / |
setScaleWidth(value: float) | Relative width @param value New value / |
getScaleHeight() → float | Relative height @return Relative height / |
setScaleHeight(value: float) | Relative height @param value New value / |
getOffsetX() → int | Gets the offset for coordinate X @return the offset for coordinate X / |
setOffsetX(value: int) | Sets the offset for coordinate X @param value New value / |
getOffsetY() → int | Gets the offset for coordinate Y @return the offset for coordinate Y / |
setOffsetY(value: int) | Sets the offset for coordinate Y @param value New value / |
getOffsetWidth() → int | Gets the offset for width @return the offset for width / |
setOffsetWidth(value: int) | Sets the offset for width @param value New value / |
getOffsetHeight() → int | Gets the offset for height @return the offset for height / |
setOffsetHeight(value: int) | Sets the offset for height @param value New value / |
toAbsolute(left: int, top: int, width: int, height: int) → Rect | Convert the relative rectangle to absolute rectangle @param left Left of the rectangle @param top Top of the rectangle @param width Width of the rectangle @param height Height of the rectangle @r |
fromScale(scaleX: float, scaleY: float, scaleWidth: float, scaleHeight: float) → RelativeRectangle | Construct a RelativeRectangle with all offset fields zero and scale fields from given parameters. |
toString() → String | Calls toString on this RelativeRectangle instance. |
clone() → RelativeRectangle | Calls clone on this RelativeRectangle instance. |
copyFrom(src: RelativeRectangle) | Calls copyFrom(src) on this RelativeRectangle instance. |
hashCode() → int | Calls hashCode on this RelativeRectangle instance. |
equals(obj: Object) → boolean | Calls equals(obj) on this RelativeRectangle instance. |