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.
|
Methods inherited from
class
java.lang.Object
| |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Object
|
clone()
| ||||||||||
boolean
|
equals(Object arg0)
| ||||||||||
void
|
finalize()
| ||||||||||
final
Class<?>
|
getClass()
| ||||||||||
int
|
hashCode()
| ||||||||||
final
void
|
notify()
| ||||||||||
final
void
|
notifyAll()
| ||||||||||
String
|
toString()
| ||||||||||
final
void
|
wait()
| ||||||||||
final
void
|
wait(long arg0, int arg1)
| ||||||||||
final
void
|
wait(long arg0)
|
Creates a new ViewEdges
object that includes the specified
edges.
Gets a value indicating whether the receiver includes any edge.
true if the receiver includes any edge, otherwise false
Gets a value indicating whether the receiver includes the bottom edge.
true if the receiver includes the bottom edge, otherwise false
Creates a copy of the receiver that represents the same edges as the original.
a copy of the receiver
Compares two ViewEdges
objects and returns a value indicating
whether or not they represent exactly the same edges.
true if the other object represents the same edges, otherwise false
Gets a value indicating whether the receiver includes any horizontal edge; that is, the top or the bottom edge.
true if the receiver includes the top or bottom edge, otherwise false
Gets a value indicating whether the receiver includes the left edge.
true if the receiver includes the left edge, otherwise false
Gets a value indicating whether the receiver includes the right edge.
true if the receiver includes the right edge, otherwise false
Gets a value indicating whether the receiver includes the top edge.
true if the receiver includes the top edge, otherwise false
Gets a value indicating whether the receiver includes any vertical edge; that is, the left or the right edge.
true if the receiver includes the left or right edge, otherwise false