Class GanttSeriesItem
java.lang.Object
com.vaadin.flow.component.charts.model.AbstractConfigurationObject
com.vaadin.flow.component.charts.model.GanttSeriesItem
- All Implemented Interfaces:
Serializable
Data for the
GanttSeries. Represents one task in the Gantt chart.- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionGanttSeriesItem(Number y, Instant start, Instant end) GanttSeriesItem(String name, Instant start, Instant end) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddDependency(GanttSeriesItemDependency dependency) Adds a dependency on another task.voidaddDependency(String to) Adds a dependency on another task.getColor()getEnd()getId()getName()getStart()getY()voidsetCollapsed(Boolean collapsed) Whether the grid node belonging to this point should start as collapsed.voidSets the individual color for the point.voidsetColorIndex(Number colorIndex) A specific color index to use for the point, so its graphic representations are given the class namehighcharts-color-{n}.voidsetCompleted(Completed completed) Progress indicator of how much of the task is completed.voidsetCompleted(Number completed) Progress indicator of how much of the task is completed.voidsetCustom(AbstractConfigurationObject custom) A reserved subspace to store options and values for customized functionality.voidsetDependencies(List<GanttSeriesItemDependency> dependencies) Dependencies on another tasks (points) in the Gantt chart.voidsetDescription(String description) A description of the point to add to the screen reader information about the point.voidThe end time of a task.voidAn id for the point.voidsetLabelrank(Number labelrank) The rank for this point's data label in case of collision.voidsetMilestone(Boolean milestone) Whether this point is a milestone.voidThe name of a task.voidThe ID of the parent point (task) of this point in Gantt charts.voidThe start time of a task.voidThe Y value of a task.
-
Constructor Details
-
GanttSeriesItem
public GanttSeriesItem() -
GanttSeriesItem
-
GanttSeriesItem
-
-
Method Details
-
getColorIndex
- See Also:
-
setColorIndex
A specific color index to use for the point, so its graphic representations are given the class namehighcharts-color-{n}. In styled mode this will change the color of the graphic. In non-styled mode, the color by is set by thefillattribute, so the change in class name won't have a visual effect by default. -
getCollapsed
- See Also:
-
setCollapsed
Whether the grid node belonging to this point should start as collapsed. Used in axes of type treegrid. Defaults to false.- Parameters:
collapsed-
-
getColor
- See Also:
-
setColor
Sets the individual color for the point. Defaults to null. This might not work for all chart types. In styled mode, the color option doesn't take effect. Instead, use colorIndex.- Parameters:
color- Color of the point.
-
getCompleted
- See Also:
-
setCompleted
Progress indicator of how much of the task is completed.- Parameters:
completed-
-
setCompleted
Progress indicator of how much of the task is completed.- Parameters:
completed-
-
getDependencies
- See Also:
-
setDependencies
Dependencies on another tasks (points) in the Gantt chart. -
addDependency
Adds a dependency on another task.- Parameters:
dependency- The dependency configuration object, allowing to specify further connecting options between the points.
-
addDependency
Adds a dependency on another task.- Parameters:
to- The ID of the point (task) that this point depends on in Gantt charts
-
getEnd
- See Also:
-
setEnd
The end time of a task.- Parameters:
end-
-
getMilestone
- See Also:
-
setMilestone
Whether this point is a milestone. If so, only the start option is handled, while end is ignored. Defaults to false.- Parameters:
milestone-
-
getParent
- See Also:
-
setParent
The ID of the parent point (task) of this point in Gantt charts. Defaults to null- Parameters:
parent-
-
getStart
- See Also:
-
setStart
The start time of a task.- Parameters:
start-
-
getY
- See Also:
-
setY
The Y value of a task.- Parameters:
y-
-
getDescription
- See Also:
-
setDescription
A description of the point to add to the screen reader information about the point.
-
getId
- See Also:
-
setId
An id for the point. -
getLabelrank
- See Also:
-
setLabelrank
The rank for this point's data label in case of collision. If two data labels are about to overlap, only the one with the highest
labelrankwill be drawn. -
getName
- See Also:
-
setName
The name of a task. If a treegrid y-axis is used (default in Gantt charts), this will be picked up automatically, and used to calculate the y-value. -
getCustom
-
setCustom
A reserved subspace to store options and values for customized functionality. Here you can add additional data for your own event callbacks and formatter callbacks.- Parameters:
custom-
-