Class TimelineItem

Direct Known Subclasses:
ItemGroup, TimelineActivity, TimelineEvent

public abstract class TimelineItem extends Object
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 Details

    • id

      protected final String id
    • type

      protected final TimelineItemType type
    • start

      protected long start
    • duration

      protected long duration
    • relativeItemUuid

      protected UUID relativeItemUuid
    • relativeStart

      protected long relativeStart
    • groupUuid

      protected UUID groupUuid
    • source

      protected String source
    • name

      protected String name
    • tooltip

      protected String tooltip
    • description

      protected String description
    • tags

      protected List<String> tags
    • properties

      protected Map<String,String> properties
  • Constructor Details

  • Method Details

    • getStart

      public long getStart()
    • setStart

      public void setStart(long start)
    • getDuration

      public long getDuration()
    • getTags

      public List<String> getTags()
    • getRelativeItemUuid

      public UUID getRelativeItemUuid()
    • setRelativeItemUuid

      public void setRelativeItemUuid(UUID relativeItemUuid)
    • getRelativeStart

      public long getRelativeStart()
    • setRelativeStart

      public void setRelativeStart(long relativeStart)
    • getGroupUuid

      public UUID getGroupUuid()
    • setGroupUuid

      public void setGroupUuid(UUID groupUuid)
    • getSource

      public String getSource()
    • setSource

      public void setSource(String source)
    • getName

      public String getName()
    • setName

      public void setName(String name)
    • getTooltip

      public String getTooltip()
    • setTooltip

      public void setTooltip(String tooltip)
    • getDescription

      public String getDescription()
    • setDescription

      public void setDescription(String description)
    • getId

      public String getId()
    • getType

      public TimelineItemType getType()
    • setDuration

      public void setDuration(long duration)
    • setTags

      public void setTags(List<String> tags)
    • getProperties

      public Map<String,String> getProperties()
    • setProperties

      public void setProperties(Map<String,String> properties)
    • addToProto

      protected abstract void addToProto(boolean detail, TimelineItem.Builder protob)
    • toProtoBuf

      public TimelineItem toProtoBuf(boolean detail)
    • toTuple

      public Tuple toTuple()
    • addToTuple

      protected abstract void addToTuple(Tuple tuple)
    • fromTuple

      public static TimelineItem fromTuple(Tuple tuple)