Spec-Zone .ru
спецификации, руководства, описания, API
|
Enum Constant and Description |
---|
BOTTOM
Represents bottom side of a rectangle.
|
LEFT
Represents left side of a rectangle.
|
RIGHT
Represents right side of a rectangle.
|
TOP
Represents top side of a rectangle.
|
Modifier and Type | Method and Description |
---|---|
boolean |
isHorizontal()
Indicates whether this is horizontal side of a rectangle (returns
true for TOP and BOTTOM . |
boolean |
isVertical()
Indicates whether this is vertical side of a rectangle (returns
true for LEFT and RIGHT . |
static Side |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Side[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Side TOP
public static final Side BOTTOM
public static final Side LEFT
public static final Side RIGHT
public static Side[] values()
for (Side c : Side.values()) System.out.println(c);
public static Side valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified namejava.lang.NullPointerException
- if the argument is nullpublic boolean isVertical()
true
for LEFT
and RIGHT
.true
if this represents a vertical side of a rectanglepublic boolean isHorizontal()
true
for TOP
and BOTTOM
.true
if this represents a horizontal side of a rectangleCopyright (c) 2008, 2012, Oracle and/or its affiliates. All rights reserved. Use is subject to