public class AggregateEvent extends Event
StackedTimePlot2D
is zoomed out very far, Events
can be squashed very close together in pixel space, making them hard
to see. EventPlotInfo
can alleviate this problem by automatically
creating combined Events which represent aggregations of many user created
Events.Event.OverlapRenderingMode, Event.TextRenderingMode
Modifier and Type | Method and Description |
---|---|
int |
getEventCount()
Gets the number of aggregated events that make up this event.
|
Iterator<Event> |
iterator()
EventPlotInfo can automatically create synthetic groups of Events when the timeline
is zoomed out far enough that a bunch of Events are crowded into the same space.
|
void |
setEditable(boolean isEditable)
Sets whether or not the Event start and end times are modifiable by the user
via mouse interaction.
|
void |
setEndTime(TimeStamp endTime) |
void |
setEndTimeMoveable(boolean isEndTimeMoveable)
If true, the endTime of the Event cannot be adjusted by user mouse gestures.
|
void |
setFixedRow(int rowIndex)
This event will appear on the requested row index in the timeline
regardless of whether that causes it to overlap with other Events.
|
void |
setFloatingRow()
The row this Event appears on will be managed by its
EventPlotInfo
parent. |
void |
setMaxTimeSpan(double maxTimeSpan)
Sets the maximum time span between the start and end times.
|
void |
setMinTimeSpan(double minTimeSpan)
Sets the minimum (inclusive) span between the start and end times.
|
void |
setResizeable(boolean isResizeable)
If true, the time span of the Event (the amount of time between the start and
end times) cannot be adjusted by user mouse gestures.
|
void |
setStartTime(TimeStamp startTime) |
void |
setStartTimeMoveable(boolean isStartTimeMoveable)
If true, the startTime of the Event cannot be adjusted by user mouse gestures.
|
void |
setTimes(TimeStamp startTime,
TimeStamp endTime)
|
void |
setTimes(TimeStamp startTime,
TimeStamp endTime,
boolean force)
Sets the start and end time for this Event.
|
addConstraint, contains, createDummyEvent, createDummyEvent, equals, getBackgroundColor, getBorderColor, getBorderThickness, getDuration, getEndTime, getEndTimeComparator, getEventPainter, getEventPlotInfo, getIconEndTime, getIconId, getIconStartTime, getId, getLabel, getLabelColor, getLabelEndTime, getLabelStartTime, getMaxTimeSpan, getMinTimeSpan, getOverlapRenderingMode, getOverlapTime, getRow, getStartTime, getStartTimeComparator, getTextRenderingMode, getTimeSpan, getToolTipText, hasChildren, hashCode, isEditable, isEndTimeMoveable, isFixedRow, isIconVisible, isLabelVisible, isResizeable, isSelectable, isShowBackground, isShowBorder, isShowIcon, isShowLabel, isStartTimeMoveable, paint, removeConstrain, setBackgroundColor, setBorderColor, setBorderThickness, setEventPainter, setIconId, setLabel, setLabelColor, setOverlapMode, setSelectable, setShowBackground, setShowBorder, setShowIcon, setShowLabel, setTextRenderingMode, setToolTipText, toString
public Iterator<Event> iterator()
public int getEventCount()
Event
getEventCount
in class Event
iterator()
public void setEditable(boolean isEditable)
Event
Event.setStartTimeMoveable(boolean)
, Event.setResizeable(boolean)
,
and Event.setMinTimeSpan(double)
.setEditable
in class Event
public void setEndTimeMoveable(boolean isEndTimeMoveable)
Event
setEndTimeMoveable
in class Event
public void setStartTimeMoveable(boolean isStartTimeMoveable)
Event
setStartTimeMoveable
in class Event
public void setResizeable(boolean isResizeable)
Event
setResizeable
in class Event
public void setMaxTimeSpan(double maxTimeSpan)
Event
setMaxTimeSpan
in class Event
public void setMinTimeSpan(double minTimeSpan)
Event
setMinTimeSpan
in class Event
public void setTimes(TimeStamp startTime, TimeStamp endTime, boolean force)
Event
Sets the start and end time for this Event.
If force is false, then the constraints (see Event.addConstraint(EventConstraint)
)
are taken into account and the final Event bounds might not be equal to
the input arguments.
public void setFloatingRow()
Event
EventPlotInfo
parent. If EventPlotInfo.setStackOverlappingEvents(boolean)
is set
to true, then the row will be set to avoid overlaps with other events, otherwise
the Event will be placed in the first row.setFloatingRow
in class Event
public void setFixedRow(int rowIndex)
Event
setFixedRow
in class Event
public void setTimes(TimeStamp startTime, TimeStamp endTime)
Event
public void setStartTime(TimeStamp startTime)
setStartTime
in class Event
Event.setTimes(TimeStamp, TimeStamp, boolean)
public void setEndTime(TimeStamp endTime)
setEndTime
in class Event
Event.setTimes(TimeStamp, TimeStamp, boolean)
Copyright © 2013 Metron, Inc.. All rights reserved.