- java.lang.Object
-
- java.lang.Enum<AgendaLayout.LayoutStrategy>
-
- com.flexganttfx.model.layout.AgendaLayout.LayoutStrategy
-
- All Implemented Interfaces:
Serializable
,Comparable<AgendaLayout.LayoutStrategy>
- Enclosing class:
- AgendaLayout
public static enum AgendaLayout.LayoutStrategy extends Enum<AgendaLayout.LayoutStrategy>
An enumerator for the different ways overlapping agenda entries can be laid out.- Since:
- 1.0
-
-
Enum Constant Summary
Enum Constants Enum Constant Description OVERLAPPING
Intersecting agenda entries will be drawn on top of each other but with one of them being indented by a couple of pixels (seeAgendaLayout.setOverlapOffset(double)
).PARALLEL
Intersecting agenda entries will be displayed in different columns within the same day.PARALLEL_OVERLAPPING
Intersecting agenda entries will be displayed in different columns within the same day but overlapping each other.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static AgendaLayout.LayoutStrategy
valueOf(String name)
Returns the enum constant of this type with the specified name.static AgendaLayout.LayoutStrategy[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
OVERLAPPING
public static final AgendaLayout.LayoutStrategy OVERLAPPING
Intersecting agenda entries will be drawn on top of each other but with one of them being indented by a couple of pixels (seeAgendaLayout.setOverlapOffset(double)
).- Since:
- 1.0
-
PARALLEL
public static final AgendaLayout.LayoutStrategy PARALLEL
Intersecting agenda entries will be displayed in different columns within the same day.- Since:
- 1.0
-
PARALLEL_OVERLAPPING
public static final AgendaLayout.LayoutStrategy PARALLEL_OVERLAPPING
Intersecting agenda entries will be displayed in different columns within the same day but overlapping each other.- Since:
- 1.0
-
-
Method Detail
-
values
public static AgendaLayout.LayoutStrategy[] 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 (AgendaLayout.LayoutStrategy c : AgendaLayout.LayoutStrategy.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static AgendaLayout.LayoutStrategy 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
-
-