A Spot represents a relative point from(0, 0) to(1, 1) within the bounds of a rectangular area plus an absolute offset.
The default constructor produces the Spot(0, 0, 0, 0), at the top-left corner.
The two-argument constructor produces the Spot(x, y), where X and Y are fractional distances, between zero and one.
must be between zero and one, inclusive.
must be between zero and one, inclusive.
The four-argument constructor produces the Spot(x, y, offx, offy), where X and Y are fractional distances, between zero and one, and OFFX and OFFY are additional absolute offsets.
must be between zero and one, inclusive.
must be between zero and one, inclusive.
an offset along the X coordinates, may be negative.
an offset along the Y coordinates, may be negative.
The set of points on all sides of the bounding rectangle.
A synonym for Spot#BottomCenter.
The specific point at the middle of the bottom side of bounding rectangle.
The specific point at the bottom-left corner of the bounding rectangle.
The set of points at the left or bottom sides of the bounding rectangle.
The specific point at the bottom-right corner of the bounding rectangle.
The set of points at the right or bottom sides of the bounding rectangle.
The set of points at the bottom side of the bounding rectangle.
The specific point at the very center of the bounding rectangle.
Use this value to indicate that the real spot value is inherited from elsewhere.
A synonym for Spot#LeftCenter.
The specific point at the middle of the left side of bounding rectangle.
The set of points at the left or right sides of the bounding rectangle.
The set of points at the left side of the bounding rectangle.
A synonym for Spot#BottomCenter.
A synonym for Spot#LeftCenter.
A synonym for Spot#RightCenter.
A synonym for Spot#TopCenter.
Use this Spot value to indicate no particular spot -- code looking for a particular point on an element will need to do their own calculations to determine the desired point depending on the circumstances.
The set of points on all sides of bounding rectangle except bottom side.
The set of points on all sides of the bounding rectangle except left side.
The set of points on all sides of the bounding rectangle except right side.
The set of points on all sides of the bounding rectangle except top side.
A synonym for Spot#RightCenter.
The specific point at the middle of the right side of bounding rectangle.
The set of points at the right side of the bounding rectangle.
A synonym for Spot#TopCenter.
The set of points at the top or bottom sides of the bounding rectangle.
The specific point at the center of the top side of the bounding rectangle.
The specific point at the top-left corner of the bounding rectangle.
The set of points at the top or left sides of the bounding rectangle.
The specific point at the top-right corner of the bounding rectangle.
The set of points at the top or right sides of the bounding rectangle.
The set of points at the top side of the bounding rectangle.
Gets or sets the offsetX value of the Spot.
Gets or sets the offsetY value of the Spot.
Gets or sets the x value of the Spot, a fractional value between zero and one.
Gets or sets the y value of the Spot, a fractional value between zero and one.
Create a copy of this Spot, with the same values.
Two spots are equal if all four property values are the same.
The Spot to compare to the current Spot.
boolean
This predicate is true if this Spot is a side that includes the side(s) given by the argument Spot.
boolean
True if this is a special spot referring to the default spot.
boolean
True if this is an unspecific special spot, such as Spot#None or one of the sides.
boolean
True if this is a special spot referring to one (or more) of the sides.
boolean
True if this is a specific spot, not a side nor Spot#None.
boolean
Return a new spot that is opposite this spot.
This static method can be used to read in a Spot from a string that was produced by Spot.stringify.
Modify this Spot so that its X, Y, OffsetX, and OffsetY values are the same as the given Spot.
the given Spot.
Modify this Spot with new X, Y, OffsetX, and OffsetY values.
This static method can be used to write out a Spot as a string that can be read by Spot.parse.
string