public enum GridLineMode extends Enum<GridLineMode>
GridLayer
) is capable of displaying a major
grid, a minor grid, a combined grid or no grid at all. A minor grid
determines the positions of its vertical lines based on the time granularity
displayed in the bottom half of the dateline. The minor grid uses the upper
half. Example: the major grid uses a days granularity, while the
minor grid would use hours.AbstractGanttChart.setGridLineMode(GridLineMode)
Enum Constant and Description |
---|
COMBINED_GRID_LINES
A value indicating that vertical grid lines will be drawn at positions
dictated by the time granularity displayed in the upper and in
the lower half of the dateline.
|
MAJOR_GRID_LINES
A value indicating that vertical grid lines will be drawn at positions
dictated by the time granularity displayed in the upper half of
the dateline.
|
MINOR_GRID_LINES
A value indicating that vertical grid lines will be drawn at positions
dictated by the time granularity displayed in the lower half of
the dateline.
|
NO_GRID_LINES
A value indicating that no vertical grid lines are to be drawn by
the layer container.
|
Modifier and Type | Method and Description |
---|---|
static GridLineMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static GridLineMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final GridLineMode MAJOR_GRID_LINES
public static final GridLineMode MINOR_GRID_LINES
public static final GridLineMode COMBINED_GRID_LINES
public static final GridLineMode NO_GRID_LINES
public static GridLineMode[] values()
for (GridLineMode c : GridLineMode.values()) System.out.println(c);
public static GridLineMode valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright © 2006–2016 Dirk Lemmermann Software & Consulting. All rights reserved.