java.lang.Object | |
↳ | sofia.graphics.ViewEdges |
Represents one or more of the four edges of a view, used with collision detection.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
ViewEdges(boolean left, boolean top, boolean right, boolean bottom)
Creates a new
ViewEdges object that includes the specified
edges. |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
boolean |
any()
Gets a value indicating whether the receiver includes any edge.
| ||||||||||
boolean |
bottom()
Gets a value indicating whether the receiver includes the bottom edge.
| ||||||||||
ViewEdges |
clone()
Creates a copy of the receiver that represents the same edges as the
original.
| ||||||||||
boolean |
equals(Object other)
Compares two
ViewEdges objects and returns a value indicating
whether or not they represent exactly the same edges. | ||||||||||
int | hashCode() | ||||||||||
boolean |
horizontal()
Gets a value indicating whether the receiver includes any horizontal
edge; that is, the top or the bottom edge.
| ||||||||||
boolean |
left()
Gets a value indicating whether the receiver includes the left edge.
| ||||||||||
boolean |
right()
Gets a value indicating whether the receiver includes the right edge.
| ||||||||||
String | toString() | ||||||||||
boolean |
top()
Gets a value indicating whether the receiver includes the top edge.
| ||||||||||
boolean |
vertical()
Gets a value indicating whether the receiver includes any vertical edge;
that is, the left or the right edge.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Creates a new ViewEdges
object that includes the specified
edges.
left | true to include the left edge |
---|---|
top | true to include the top edge |
right | true to include the right edge |
bottom | true to include the bottom edge |
Gets a value indicating whether the receiver includes any edge.
Gets a value indicating whether the receiver includes the bottom edge.
Creates a copy of the receiver that represents the same edges as the original.
Compares two ViewEdges
objects and returns a value indicating
whether or not they represent exactly the same edges.
other | the other object to compare |
---|
Gets a value indicating whether the receiver includes any horizontal edge; that is, the top or the bottom edge.
Gets a value indicating whether the receiver includes the left edge.
Gets a value indicating whether the receiver includes the right edge.
Gets a value indicating whether the receiver includes the top edge.
Gets a value indicating whether the receiver includes any vertical edge; that is, the left or the right edge.