|
|
|
|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<Period.Scroll>
org.torweg.pulse.util.time.Period.Scroll
public static enum Period.Scroll
The known values for scrolling Durations.
| Enum Constant Summary | |
|---|---|
NEXT
Scroll to next Duration |
|
PREVIOUS
Scroll to previous Duration. |
|
| Method Summary | |
|---|---|
static long |
scroll(long millis, Period period, Period.Scroll scroll)
Scrolls the given milliseconds by the given Period to the
given scroll direction. |
static Period.Scroll |
valueof(java.lang.String stringValue)
Tries to retrieve a Scroll from the given string value. |
static Period.Scroll |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static Period.Scroll[] |
values()
Returns an array containing the constants of this enum type, in the order they're declared. |
| Methods inherited from class java.lang.Enum |
|---|
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
public static final Period.Scroll PREVIOUS
Duration.
public static final Period.Scroll NEXT
Duration
| Method Detail |
|---|
public static final Period.Scroll[] values()
for(Period.Scroll c : Period.Scroll.values())
System.out.println(c);
public static Period.Scroll 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 namepublic static long scroll(long millis, Period period, Period.Scroll scroll)
Period to the
given scroll direction.
millis - the millisecondsperiod - the Period to scroll byscroll - the scroll direction
Period.UNDEFINED the given
milliseconds will be left unchangedpublic static Period.Scroll valueof(java.lang.String stringValue)
Scroll from the given string value.
stringValue - the string value
Scroll if can be build from given string value,
null otherwise
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||