ShapeFrame
ShapeFrame class
Represents shape frame’s properties.
ShapeFrame
| Name | Description |
|---|---|
| ShapeFrame(float, float, float, float, byte, byte, float) | Creates new shape frame’s properties. |
Parameters:
| Name | Type | Description |
|---|---|---|
| x | float | X coordinate of a frame. |
| y | float | Y coordinate of a frame. |
| width | float | Width of a frame. |
| height | float | Height of a frame. |
| flipH | byte | True if a frame flipped horizontally. |
| flipV | byte | True if a frame flipped vertivally. |
| rotationAngle | float | Number of degrees a frame is rotated. |
Returns: ShapeFrame
cloneT
| Name | Description |
|---|---|
| cloneT () | Clones. |
Returns: ShapeFrame
deepClone
| Name | Description |
|---|---|
| deepClone () | Clones |
Returns: Object
equals
| Name | Description |
|---|---|
| equals (Object) | Returns a value indicating whether this instance is equal to a specified object. |
Parameters:
| Name | Type | Description |
|---|---|---|
| obj | Object | The object to compare with this instance. |
Returns: boolean
equals
| Name | Description |
|---|---|
| equals (ShapeFrame) | Returns a value indicating whether this instance is equal to a specified object. |
Parameters:
| Name | Type | Description |
|---|---|---|
| value | ShapeFrame | The ShapeFRameEx to compare with this instance. |
Returns: boolean
getCenterX
| Name | Description |
|---|---|
| getCenterX () | Returns the X coordinate of a frame’s center. Read-only float. |
Returns: float
getCenterY
| Name | Description |
|---|---|
| getCenterY () | Returns the Y coordinate of a frame’s center. Read-only float. |
Returns: float
getFlipH
| Name | Description |
|---|---|
| getFlipH () | Determines whether a frame is flipped horizontally. Read-only NullableBool. |
Returns: byte
getFlipV
| Name | Description |
|---|---|
| getFlipV () | Determines whether a frame is flipped vertically. Read-only NullableBool. |
Returns: byte
getHeight
| Name | Description |
|---|---|
| getHeight () | Returns the height of a frame. Read-only float. |
Returns: float
getRectangle
| Name | Description |
|---|---|
| getRectangle () | Returns the coordinates of a frame. Read-only java.awt.geom.Rectangle2D.Float. |
Returns: Rectangle2D.Float
getRotation
| Name | Description |
|---|---|
| getRotation () | Returns the number of degrees a frame is rotated around the z-axis. A positive value indicates clockwise rotation; a negative value indicates counterclockwise rotation. Read-only float. |
Returns: float
getWidth
| Name | Description |
|---|---|
| getWidth () | Returns the width of a frame. Read-only float. |
Returns: float
getX
| Name | Description |
|---|---|
| getX () | Returns the X coordinate of the upper-left corner of a frame. Read-only float. |
Returns: float
getY
| Name | Description |
|---|---|
| getY () | Returns the Y coordinate of the upper-left corner of a frame. Read-only float. |
Returns: float
hashCode
| Name | Description |
|---|---|
| hashCode () |
Returns: int