ShapeFrame

ShapeFrame class

Represents shape frame’s properties.

ShapeFrame

NameDescription
ShapeFrame(float, float, float, float, byte, byte, float)Creates new shape frame’s properties.

Parameters:

NameTypeDescription
xfloatX coordinate of a frame.
yfloatY coordinate of a frame.
widthfloatWidth of a frame.
heightfloatHeight of a frame.
flipHbyteTrue if a frame flipped horizontally.
flipVbyteTrue if a frame flipped vertivally.
rotationAnglefloatNumber of degrees a frame is rotated.

Returns: ShapeFrame


cloneT

NameDescription
cloneT ()Clones.

Returns: ShapeFrame


deepClone

NameDescription
deepClone ()Clones

Returns: Object


equals

NameDescription
equals (Object)Returns a value indicating whether this instance is equal to a specified object.

Parameters:

NameTypeDescription
objObjectThe object to compare with this instance.

Returns: boolean


equals

NameDescription
equals (ShapeFrame)Returns a value indicating whether this instance is equal to a specified object.

Parameters:

NameTypeDescription
valueShapeFrameThe ShapeFRameEx to compare with this instance.

Returns: boolean


getCenterX

NameDescription
getCenterX ()Returns the X coordinate of a frame’s center. Read-only float.

Returns: float


getCenterY

NameDescription
getCenterY ()Returns the Y coordinate of a frame’s center. Read-only float.

Returns: float


getFlipH

NameDescription
getFlipH ()Determines whether a frame is flipped horizontally. Read-only NullableBool.

Returns: byte


getFlipV

NameDescription
getFlipV ()Determines whether a frame is flipped vertically. Read-only NullableBool.

Returns: byte


getHeight

NameDescription
getHeight ()Returns the height of a frame. Read-only float.

Returns: float


getRectangle

NameDescription
getRectangle ()Returns the coordinates of a frame. Read-only java.awt.geom.Rectangle2D.Float.

Returns: Rectangle2D.Float


getRotation

NameDescription
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

NameDescription
getWidth ()Returns the width of a frame. Read-only float.

Returns: float


getX

NameDescription
getX ()Returns the X coordinate of the upper-left corner of a frame. Read-only float.

Returns: float


getY

NameDescription
getY ()Returns the Y coordinate of the upper-left corner of a frame. Read-only float.

Returns: float


hashCode

NameDescription
hashCode ()

Returns: int