Class EventBounds


  • public class EventBounds
    extends Object
    Metadata about an Event used by the EventSelectionHandler to indicate what part of an event was clicked (the icon, label, etc...).
    Author:
    ulman
    • Constructor Detail

      • EventBounds

        public EventBounds()
    • Method Detail

      • containsText

        public boolean containsText​(TimeStamp time)
      • containsIcon

        public boolean containsIcon​(TimeStamp time)
      • setIconVisible

        public void setIconVisible​(boolean isIconVisible)
      • setTextVisible

        public void setTextVisible​(boolean isTextVisible)
      • setIconStartTime

        public void setIconStartTime​(TimeStamp iconStartTime)
      • setIconEndTime

        public void setIconEndTime​(TimeStamp iconEndTime)
      • setTextStartTime

        public void setTextStartTime​(TimeStamp textStartTime)
      • setTextEndTime

        public void setTextEndTime​(TimeStamp textEndTime)
      • isTextVisible

        public boolean isTextVisible()
        Returns:
        if false, the label is not visible, either because there is no room to show it, or #isShowLabel() is set to false.
      • isIconVisible

        public boolean isIconVisible()
        Returns:
        if false, the icon is not visible, either because there is no room to show it, or #isShowIcon() is set to false.
      • getIconStartTime

        public TimeStamp getIconStartTime()
        Returns the timestamp associated with the left hand side of the icon. Because the icon is drawn at a fixed pixel size, this value will change as the timeline scale is zoomed in and out. This method is intended mainly for use by display routines.
      • getIconEndTime

        public TimeStamp getIconEndTime()
        Returns the timestamp associated with the right hand side of the icon. Because the icon is drawn at a fixed pixel size, this value will change as the timeline scale is zoomed in and out. This method is intended mainly for use by display routines.
      • getTextStartTime

        public TimeStamp getTextStartTime()
        Returns the timestamp associated with the left hand side of the label. Because the label is drawn at a fixed pixel size, this value will change as the timeline scale is zoomed in and out. This method is intended mainly for use by display routines.
      • getTextEndTime

        public TimeStamp getTextEndTime()
        Returns the timestamp associated with the right hand side of the label. Because the label is drawn at a fixed pixel size, this value will change as the timeline scale is zoomed in and out. This method is intended mainly for use by display routines.