Package org.yamcs.timeline
Class TimelineItem
java.lang.Object
org.yamcs.timeline.TimelineItem
- Direct Known Subclasses:
ItemGroup
,TimelineActivity
,TimelineEvent
A timeline item is the entity that appears in the timeline bars.
They can be events or activities.
Each item is identified by an id (UUID).
-
Field Summary
-
Constructor Summary
ModifierConstructorDescriptionTimelineItem
(TimelineItemType type, String id) protected
TimelineItem
(TimelineItemType type, Tuple tuple) -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract void
addToProto
(boolean detail, TimelineItem.Builder protob) protected abstract void
addToTuple
(Tuple tuple) static TimelineItem
long
getId()
getName()
long
long
getStart()
getTags()
getType()
void
setDescription
(String description) void
setDuration
(long duration) void
setGroupUuid
(UUID groupUuid) void
void
setProperties
(Map<String, String> properties) void
setRelativeItemUuid
(UUID relativeItemUuid) void
setRelativeStart
(long relativeStart) void
void
setStart
(long start) void
void
setTooltip
(String tooltip) toProtoBuf
(boolean detail) toTuple()
-
Field Details
-
id
-
type
-
start
protected long start -
duration
protected long duration -
relativeItemUuid
-
relativeStart
protected long relativeStart -
groupUuid
-
source
-
name
-
tooltip
-
description
-
tags
-
properties
-
-
Constructor Details
-
TimelineItem
-
TimelineItem
-
-
Method Details
-
getStart
public long getStart() -
setStart
public void setStart(long start) -
getDuration
public long getDuration() -
getTags
-
getRelativeItemUuid
-
setRelativeItemUuid
-
getRelativeStart
public long getRelativeStart() -
setRelativeStart
public void setRelativeStart(long relativeStart) -
getGroupUuid
-
setGroupUuid
-
getSource
-
setSource
-
getName
-
setName
-
getTooltip
-
setTooltip
-
getDescription
-
setDescription
-
getId
-
getType
-
setDuration
public void setDuration(long duration) -
setTags
-
getProperties
-
setProperties
-
addToProto
-
toProtoBuf
-
toTuple
-
addToTuple
-
fromTuple
-