Package gg.xp.xivsupport.timelines
Class CustomTimelineEntry
java.lang.Object
gg.xp.xivsupport.timelines.CustomTimelineEntry
- All Implemented Interfaces:
CustomTimelineItem,TimelineEntry,Serializable,Comparable<TimelineEntry>
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionbooleandouble@Nullable Doubleboolean@Nullable CustomEventSyncControllerboolean@Nullable TimelineIcon@Nullable String@Nullable Double@Nullable String@Nullable String@Nullable Patterndouble@Nullable Double@Nullable Double -
Constructor Summary
ConstructorsConstructorDescriptionCustomTimelineEntry(double time, @Nullable String name, @Nullable String sync, @Nullable CustomEventSyncController esc, @Nullable Double duration, @NotNull TimelineWindow timelineWindow, @Nullable Double jump, @Nullable String jumpLabel, @Nullable Boolean forceJump, @Nullable URL legacyIcon, @Nullable TimelineIcon newIcon, @Nullable TimelineReference replaces, boolean disabled, String importSource, boolean callout, double calloutPreTime, @Nullable CombatJobSelection jobs) CustomTimelineEntry(double time, @Nullable String name, @Nullable String sync, @Nullable CustomEventSyncController esc, @Nullable Double duration, @NotNull TimelineWindow timelineWindow, @Nullable Double jump, @Nullable String jumpLabel, @Nullable Boolean forceJump, @Nullable URL legacyIcon, @Nullable TimelineReference replaces, boolean disabled, String importSource, boolean callout, double calloutPreTime, @Nullable CombatJobSelection jobs) Deprecated.CustomTimelineEntry(double time, @Nullable String name, @Nullable Pattern sync, @Nullable CustomEventSyncController esc, @Nullable Double duration, @NotNull TimelineWindow timelineWindow, @Nullable Double jump, @Nullable String jumpLabel, @Nullable Boolean forceJump, @Nullable TimelineIcon iconSpec, @Nullable TimelineReference replaces, boolean disabled, boolean callout, double calloutPreTime, @Nullable String importSource) CustomTimelineEntry(double time, @Nullable String name, @Nullable Pattern sync, @Nullable CustomEventSyncController esc, @Nullable Double duration, @NotNull TimelineWindow timelineWindow, @Nullable Double jump, @Nullable String jumpLabel, @Nullable Boolean forceJump, @Nullable URL legacyIcon, @Nullable TimelineReference replaces, boolean disabled, boolean callout, double calloutPreTime, @Nullable String importSource) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionbooleancallout()doublestatic CustomTimelineEntrycloneFor(TimelineEntry other) booleandisabled()@Nullable Doubleduration()An optional duration for the bar to be in "active" state as opposed to immediately becoming "in the past" when its time arrives.booleanenabled()booleanenabledForJob(Job job) Whether the entry is enabled for a certain jobboolean@Nullable EventSyncControllerbooleanAffects the behavior ofTimelineEntry.jump()andTimelineEntry.jumpLabel().@Nullable CombatJobSelection@Nullable StringinthashCode()@Nullable URLicon()@Nullable TimelineIconiconSpec()booleanisLabel()@Nullable Doublejump()An optional time to jump to.@Nullable StringSame asTimelineEntry.jump(), but takes a 'label' to jump to instead of a raw time.@Nullable Stringname()The name of this timeline entry.static CustomTimelineEntryoverrideFor(TimelineEntry other) @Nullable TimelineReferencereplaces()voidsetImportSource(@Nullable String importSource) @Nullable Patternsync()ACT parsed line regex to sync todoubletime()The time of this timeline entry@NotNull TimelineWindowThe relative window in which this entry can be synced totoString()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface gg.xp.xivsupport.timelines.TimelineEntry
canSync, compareTo, effectiveCalloutTime, eventSyncType, getAllTextEntries, getMaxTime, getMinTime, getSyncToTime, hasEventSync, isImported, makeTriggerJs, makeTriggerTimelineEntries, shouldSupersede, shouldSync, shouldSync, toTextFormat, untranslated
-
Field Details
-
time
public double time -
name
-
sync
-
esc
-
duration
-
windowStart
-
windowEnd
-
jump
-
jumpLabel
-
importSource
-
forceJump
public boolean forceJump -
iconSpec
-
enabled
public boolean enabled -
callout
public boolean callout -
calloutPreTime
public double calloutPreTime -
enabledJobs
-
-
Constructor Details
-
CustomTimelineEntry
public CustomTimelineEntry() -
CustomTimelineEntry
@Deprecated public CustomTimelineEntry(double time, @Nullable @Nullable String name, @Nullable @Nullable Pattern sync, @Nullable @Nullable CustomEventSyncController esc, @Nullable @Nullable Double duration, @NotNull @NotNull TimelineWindow timelineWindow, @Nullable @Nullable Double jump, @Nullable @Nullable String jumpLabel, @Nullable @Nullable Boolean forceJump, @Nullable @Nullable URL legacyIcon, @Nullable @Nullable TimelineReference replaces, boolean disabled, boolean callout, double calloutPreTime, @Nullable @Nullable String importSource) Deprecated. -
CustomTimelineEntry
public CustomTimelineEntry(double time, @Nullable @Nullable String name, @Nullable @Nullable Pattern sync, @Nullable @Nullable CustomEventSyncController esc, @Nullable @Nullable Double duration, @NotNull @NotNull TimelineWindow timelineWindow, @Nullable @Nullable Double jump, @Nullable @Nullable String jumpLabel, @Nullable @Nullable Boolean forceJump, @Nullable @Nullable TimelineIcon iconSpec, @Nullable @Nullable TimelineReference replaces, boolean disabled, boolean callout, double calloutPreTime, @Nullable @Nullable String importSource) -
CustomTimelineEntry
@Deprecated public CustomTimelineEntry(double time, @Nullable @Nullable String name, @Nullable @Nullable String sync, @Nullable @Nullable CustomEventSyncController esc, @Nullable @Nullable Double duration, @NotNull @NotNull TimelineWindow timelineWindow, @Nullable @Nullable Double jump, @Nullable @Nullable String jumpLabel, @Nullable @Nullable Boolean forceJump, @Nullable @Nullable URL legacyIcon, @Nullable @Nullable TimelineReference replaces, boolean disabled, String importSource, boolean callout, double calloutPreTime, @Nullable @Nullable CombatJobSelection jobs) Deprecated. -
CustomTimelineEntry
public CustomTimelineEntry(double time, @Nullable @Nullable String name, @Nullable @Nullable String sync, @Nullable @Nullable CustomEventSyncController esc, @Nullable @Nullable Double duration, @NotNull @NotNull TimelineWindow timelineWindow, @Nullable @Nullable Double jump, @Nullable @Nullable String jumpLabel, @Nullable @Nullable Boolean forceJump, @Nullable @Nullable URL legacyIcon, @Nullable @Nullable TimelineIcon newIcon, @Nullable @Nullable TimelineReference replaces, boolean disabled, String importSource, boolean callout, double calloutPreTime, @Nullable @Nullable CombatJobSelection jobs)
-
-
Method Details
-
time
public double time()Description copied from interface:TimelineEntryThe time of this timeline entry- Specified by:
timein interfaceTimelineEntry- Returns:
- The timeline entry's time
-
name
Description copied from interface:TimelineEntryThe name of this timeline entry.For most entries, this is the displayed name. For labels, it is the label name. For triggers, it is the text that will be displayed on-screen.
- Specified by:
namein interfaceTimelineEntry- Returns:
- The name
-
sync
Description copied from interface:TimelineEntryACT parsed line regex to sync to- Specified by:
syncin interfaceTimelineEntry- Returns:
- The sync pattern
-
duration
Description copied from interface:TimelineEntryAn optional duration for the bar to be in "active" state as opposed to immediately becoming "in the past" when its time arrives.- Specified by:
durationin interfaceTimelineEntry- Returns:
- The optional duration
-
timelineWindow
Description copied from interface:TimelineEntryThe relative window in which this entry can be synced to- Specified by:
timelineWindowin interfaceTimelineEntry- Returns:
- The sync window
-
jump
Description copied from interface:TimelineEntryAn optional time to jump to. IfTimelineEntry.forceJump()is false, this line must have its sync conditions hit (i.e. we are syncing onto this line). If forceJump is true, then the jump will also happen if this timeline entry's time is hit.- Specified by:
jumpin interfaceTimelineEntry- Returns:
- The jump time.
- See Also:
-
jumpLabel
Description copied from interface:TimelineEntrySame asTimelineEntry.jump(), but takes a 'label' to jump to instead of a raw time.- Specified by:
jumpLabelin interfaceTimelineEntry- Returns:
- The jump label
- See Also:
-
forceJump
public boolean forceJump()Description copied from interface:TimelineEntryAffects the behavior ofTimelineEntry.jump()andTimelineEntry.jumpLabel(). If true, then the jump will occur unconditionally when the current timeline time hits the time of this entry (i.e. when we are T-0 from hitting this entry). If false, jumps will only occur when this entry is synced to.- Specified by:
forceJumpin interfaceTimelineEntry- Returns:
- whether to force jumps even without a sync
- See Also:
-
iconSpec
-
icon
- Specified by:
iconin interfaceTimelineEntry- Returns:
- An optional icon to display for the entry on the timeline bar and trigger (if it has one)
-
equals
-
hashCode
public int hashCode() -
eventSyncController
- Specified by:
eventSyncControllerin interfaceTimelineEntry
-
toString
- Specified by:
toStringin interfaceTimelineEntry- Overrides:
toStringin classObject
-
replaces
- Specified by:
replacesin interfaceTimelineEntry- Returns:
- If this entry overrides another entry, return a reference to the entry it overrides. Otherwise, return null.
- See Also:
-
enabled
public boolean enabled()- Specified by:
enabledin interfaceTimelineEntry- Returns:
- Whether this entry is enabled
-
disabled
public boolean disabled() -
isLabel
public boolean isLabel()- Specified by:
isLabelin interfaceTimelineEntry- Returns:
- true if this entry is a label
-
overrideFor
-
cloneFor
-
callout
public boolean callout()- Specified by:
calloutin interfaceTimelineEntry- Returns:
- True if this entry is also a timeline trigger.
-
calloutPreTime
public double calloutPreTime()- Specified by:
calloutPreTimein interfaceTimelineEntry- Returns:
- The amount of time before this entry's
TimelineEntry.time()that the trigger should fire
-
enabledForJob
Description copied from interface:TimelineEntryWhether the entry is enabled for a certain job- Specified by:
enabledForJobin interfaceTimelineEntry- Parameters:
job- The job- Returns:
- true if enabled for that job
-
getEnabledJobs
-
getImportSource
- Specified by:
getImportSourcein interfaceTimelineEntry
-
setImportSource
- Specified by:
setImportSourcein interfaceCustomTimelineItem
-