Repository navigation
SliderSegmentKind
Up | Previous | Next | Русский
Below is the full source of the class in documentation form. The comments inside the block explain the purpose of the parts of the class, but they are not stored in the working file SliderSegmentKind.java: the production code stays clean, and the explanations live in the wiki.
package com.velitask.plugin.official;
/* Kind of a slider map segment. */
enum SliderSegmentKind {
/* Shows a source (a video or an image). */
SOURCE,
/* Empty: a pause between slides, or the start or end of the period without slides. */
EMPTY
}SliderSegmentKind distinguishes two kinds of segments of the slider map: a segment where a source is shown (SOURCE) and an empty segment (EMPTY).
Data. The kind field in each SliderSegment. SOURCE is created by the SliderSegment.source(...) factory, EMPTY by the SliderSegment.empty(...) factory.
Settings. There are no settings of its own.
Drawing. Based on the kind, SliderIndicator decides what to do at a given moment of time:
| Kind | Time for nested indicators | Nested indicators | Sound of nested ones | Appearance and disappearance effects |
|---|---|---|---|---|
SOURCE |
recalculated according to the time mode | drawn | according to the time mode and effects | applied |
EMPTY |
"dead" time (Long.MIN_VALUE) |
hidden | off | not applied |
In addition, an EMPTY squeezed between two SOURCE segments is treated as a pause between slides: when the project time map is built, it is stretched to the "Min pause, s" value.
- Time outside the project period also yields no segment (
null), andSliderIndicatorhandles it asEMPTY. - The class is package-private.