public class ShapeFrame extends java.lang.Object implements IShapeFrame
Represents shape frame's properties.
Constructor and Description |
---|
ShapeFrame(float x,
float y,
float width,
float height,
byte flipH,
byte flipV,
float rotationAngle)
Creates new shape frame's properties.
|
Modifier and Type | Method and Description |
---|---|
IShapeFrame |
cloneT()
Clones.
|
java.lang.Object |
deepClone()
Clones
|
boolean |
equals(java.lang.Object obj)
Returns a value indicating whether this instance is equal to a specified object.
|
boolean |
equals(ShapeFrame value)
Returns a value indicating whether this instance is equal to a specified object.
|
float |
getCenterX()
Returns the X coordinate of a frame's center.
|
float |
getCenterY()
Returns the Y coordinate of a frame's center.
|
byte |
getFlipH()
Determines whether a frame is flipped horizontally.
|
byte |
getFlipV()
Determines whether a frame is flipped vertically.
|
float |
getHeight()
Returns the height of a frame.
|
java.awt.geom.Rectangle2D.Float |
getRectangle()
Returns the coordinates of a frame.
|
float |
getRotation()
Returns the number of degrees a frame is rotated around the z-axis.
|
float |
getWidth()
Returns the width of a frame.
|
float |
getX()
Returns the X coordinate of the upper-left corner of a frame.
|
float |
getY()
Returns the Y coordinate of the upper-left corner of a frame.
|
public ShapeFrame(float x, float y, float width, float height, byte flipH, byte flipV, float rotationAngle)
Creates new shape frame's properties.
x
- X coordinate of a frame.y
- Y coordinate of a frame.width
- Width of a frame.height
- Height of a frame.flipH
- True if a frame flipped horizontally.flipV
- True if a frame flipped vertivally.rotationAngle
- Number of degrees a frame is rotated.public final float getX()
Returns the X coordinate of the upper-left corner of a frame.
Read-only float
.
getX
in interface IShapeFrame
public final float getY()
Returns the Y coordinate of the upper-left corner of a frame.
Read-only float
.
getY
in interface IShapeFrame
public final float getWidth()
Returns the width of a frame.
Read-only float
.
getWidth
in interface IShapeFrame
public final float getHeight()
Returns the height of a frame.
Read-only float
.
getHeight
in interface IShapeFrame
public final float 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
.
getRotation
in interface IShapeFrame
public final float getCenterX()
Returns the X coordinate of a frame's center.
Read-only float
.
getCenterX
in interface IShapeFrame
public final float getCenterY()
Returns the Y coordinate of a frame's center.
Read-only float
.
getCenterY
in interface IShapeFrame
public final byte getFlipH()
Determines whether a frame is flipped horizontally.
Read-only NullableBool
.
getFlipH
in interface IShapeFrame
public final byte getFlipV()
Determines whether a frame is flipped vertically.
Read-only NullableBool
.
getFlipV
in interface IShapeFrame
public final java.awt.geom.Rectangle2D.Float getRectangle()
Returns the coordinates of a frame.
Read-only Rectangle2D.Float
.
getRectangle
in interface IShapeFrame
public final java.lang.Object deepClone()
Clones
public final IShapeFrame cloneT()
Clones.
cloneT
in interface IGenericCloneable<IShapeFrame>
public boolean equals(java.lang.Object obj)
Returns a value indicating whether this instance is equal to a specified object.
equals
in class java.lang.Object
obj
- The object to compare with this instance.<b>True</b>
if obj is a ShapeFrame that has the same value as this instance; otherwise, <b>false</b>
.public final boolean equals(ShapeFrame value)
Returns a value indicating whether this instance is equal to a specified object.
value
- The ShapeFRameEx to compare with this instance.<b>True</b>
if value is a ShapeFrame that has the same value as this instance; otherwise, <b>false</b>
.