- java.lang.Object
-
- java.lang.Enum<Timeline.ZoomMode>
-
- com.flexganttfx.view.timeline.Timeline.ZoomMode
-
- All Implemented Interfaces:
Serializable
,Comparable<Timeline.ZoomMode>
- Enclosing class:
- Timeline
public static enum Timeline.ZoomMode extends Enum<Timeline.ZoomMode>
An enum used to control the way that zooming operations will happen.- Since:
- 1.0
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CENTER
The time shown in the middle of the timeline will also be in the middle after the zoom has finished.KEEP_END_TIME
The time shown at the end of the timeline will also be at the end after the zoom has finished.KEEP_START_TIME
The time shown at the beginning of the timeline will also be at the beginning after the zoom has finished.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Timeline.ZoomMode
valueOf(String name)
Returns the enum constant of this type with the specified name.static Timeline.ZoomMode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
CENTER
public static final Timeline.ZoomMode CENTER
The time shown in the middle of the timeline will also be in the middle after the zoom has finished.- Since:
- 1.0
-
KEEP_START_TIME
public static final Timeline.ZoomMode KEEP_START_TIME
The time shown at the beginning of the timeline will also be at the beginning after the zoom has finished.- Since:
- 1.0
-
KEEP_END_TIME
public static final Timeline.ZoomMode KEEP_END_TIME
The time shown at the end of the timeline will also be at the end after the zoom has finished.- Since:
- 1.0
-
-
Method Detail
-
values
public static Timeline.ZoomMode[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (Timeline.ZoomMode c : Timeline.ZoomMode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Timeline.ZoomMode valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
-