public final class RelativeRectangle extends java.lang.Object implements com.aspose.threed.Struct<RelativeRectangle>, java.io.Serializable
Constructor and Description |
---|
RelativeRectangle() |
Modifier and Type | Method and Description |
---|---|
RelativeRectangle |
clone() |
void |
copyFrom(RelativeRectangle src) |
boolean |
equals(java.lang.Object obj) |
static RelativeRectangle |
fromScale(float scaleX,
float scaleY,
float scaleWidth,
float scaleHeight)
Construct a
RelativeRectangle with all offset fields zero and scale fields from given parameters. |
int |
getOffsetHeight()
Gets the offset for height
|
int |
getOffsetWidth()
Gets the offset for width
|
int |
getOffsetX()
Gets the offset for coordinate X
|
int |
getOffsetY()
Gets the offset for coordinate Y
|
float |
getScaleHeight()
Relative height
|
float |
getScaleWidth()
Relative width
|
float |
getScaleX()
Relative coordinate X
|
float |
getScaleY()
Relative coordinate Y
|
int |
hashCode() |
void |
setOffsetHeight(int value)
Sets the offset for height
|
void |
setOffsetWidth(int value)
Sets the offset for width
|
void |
setOffsetX(int value)
Sets the offset for coordinate X
|
void |
setOffsetY(int value)
Sets the offset for coordinate Y
|
void |
setScaleHeight(float value)
Relative height
|
void |
setScaleWidth(float value)
Relative width
|
void |
setScaleX(float value)
Relative coordinate X
|
void |
setScaleY(float value)
Relative coordinate Y
|
java.awt.Rectangle |
toAbsolute(java.awt.Dimension rect)
Convert the relative rectangle to absolute rectangle
|
java.awt.Rectangle |
toAbsolute(java.awt.Rectangle rect)
Convert the relative rectangle to absolute rectangle
|
java.lang.String |
toString()
Converts the value of this instance to a
String . |
public float getScaleX()
public void setScaleX(float value)
value
- New valuepublic float getScaleY()
public void setScaleY(float value)
value
- New valuepublic float getScaleWidth()
public void setScaleWidth(float value)
value
- New valuepublic float getScaleHeight()
public void setScaleHeight(float value)
value
- New valuepublic int getOffsetX()
public void setOffsetX(int value)
value
- New valuepublic int getOffsetY()
public void setOffsetY(int value)
value
- New valuepublic int getOffsetWidth()
public void setOffsetWidth(int value)
value
- New valuepublic int getOffsetHeight()
public void setOffsetHeight(int value)
value
- New valuepublic java.awt.Rectangle toAbsolute(java.awt.Dimension rect)
rect
- public java.awt.Rectangle toAbsolute(java.awt.Rectangle rect)
rect
- public static RelativeRectangle fromScale(float scaleX, float scaleY, float scaleWidth, float scaleHeight)
RelativeRectangle
with all offset fields zero and scale fields from given parameters.scaleX
- scaleY
- scaleWidth
- scaleHeight
- public java.lang.String toString()
String
.toString
in class java.lang.Object
public RelativeRectangle clone()
clone
in interface com.aspose.threed.Struct<RelativeRectangle>
clone
in class java.lang.Object
public void copyFrom(RelativeRectangle src)
copyFrom
in interface com.aspose.threed.Struct<RelativeRectangle>
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object