|
void | dataItemAdded (Series< DateTime, Y > series, int itemIndex, Data< DateTime, Y > item) |
|
void | dataItemChanged (Data< DateTime, Y > item) |
|
void | dataItemRemoved (Data< DateTime, Y > item, Series< DateTime, Y > series) |
|
synchronized void | layoutPlotChildren () |
|
void | seriesAdded (Series< DateTime, Y > series, int seriesIndex) |
|
void | seriesRemoved (Series< DateTime, Y > series) |
|
Custom implementation of XYChart to graph events on a horizontal timeline.
The horizontal DateAxis controls the tick-marks and the horizontal layout of the nodes representing events. The vertical NumberAxis does nothing (although a custom implementation could help with the vertical layout?)
Series help organize events for the banding by event type, we could add a node to contain each band if we need a place for per band controls.
//TODO: refactor the projected lines to a separate class. -jm
Definition at line 46 of file PrimaryDetailsChartLane.java.
double org.sleuthkit.autopsy.timeline.ui.detailview.DetailsChartLane< Y extends TimeLineEvent >.layoutEventBundleNodes |
( |
final Collection<?extends EventNodeBase<?>> |
nodes, |
|
|
final double |
minY |
|
) |
| |
|
inherited |
Layout the nodes in the given list, starting form the given minimum y coordinate via the following algorithm:
We start with a list of nodes (each representing an event) sorted by span start time of the underlying event
- initialize empty map (maxXatY) from y-ranges to max used x-value
- for each node:
– size the node based on its children (use this algorithm recursively)
– get the event's start position from the dateaxis
– to position node: check if maxXatY is to the left of the left x coord: if maxXatY is less than the left x coord, good, put the current node here, mark right x coord as maxXatY, go to next node ; if maxXatY is greater than the left x coord, increment y position, do check again until maxXatY less than left x coord.
- Parameters
-
nodes | collection of nodes to layout, sorted by event start time |
minY | the minimum y coordinate to position the nodes at. |
- Returns
- the maximum y coordinate used by any of the layed out nodes.
Definition at line 233 of file DetailsChartLane.java.