Class EventBounds
- java.lang.Object
-
- com.metsci.glimpse.core.plot.timeline.event.EventBounds
-
public class EventBounds extends Object
Metadata about an Event used by theEventSelectionHandler
to indicate what part of an event was clicked (the icon, label, etc...).- Author:
- ulman
-
-
Constructor Summary
Constructors Constructor Description EventBounds()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
containsIcon(TimeStamp time)
boolean
containsText(TimeStamp time)
TimeStamp
getIconEndTime()
Returns the timestamp associated with the right hand side of the icon.TimeStamp
getIconStartTime()
Returns the timestamp associated with the left hand side of the icon.TimeStamp
getTextEndTime()
Returns the timestamp associated with the right hand side of the label.TimeStamp
getTextStartTime()
Returns the timestamp associated with the left hand side of the label.boolean
isIconVisible()
boolean
isTextVisible()
void
setIconEndTime(TimeStamp iconEndTime)
void
setIconStartTime(TimeStamp iconStartTime)
void
setIconVisible(boolean isIconVisible)
void
setTextEndTime(TimeStamp textEndTime)
void
setTextStartTime(TimeStamp textStartTime)
void
setTextVisible(boolean isTextVisible)
-
-
-
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.
-
-