Class StackedTimePlot2D

    • Method Detail

      • getDefaultTimeline

        public TimelineInfo getDefaultTimeline()
      • addPlotMouseListener

        public void addPlotMouseListener​(PlotMouseListener listener)
      • removePlotMouseListener

        public void removePlotMouseListener​(PlotMouseListener listener)
      • getEventSelectionHander

        public EventSelectionHandler getEventSelectionHander()
        Returns the common EventSelectionHandler shared between all EventPlotInfo sub-plots for this StackedTimePlot2D.
      • setShowTimeline

        public void setShowTimeline​(boolean showTimeline)
      • isShowTimeline

        public boolean isShowTimeline()
      • getOverlayLayout

        public GlimpseAxisLayout1D getOverlayLayout()
        StackedTimePlot2D provides a GlimpseAxisLayout1D which stretches over all the underlying plots and timeline. By default, it passes through mouse events to the underlying GlimpseLayouts and is used to display the blue time selection interval box. However, it can be used to perform arbitrary drawing on the timeline which must stretch across multiple plots.
      • getFullOverlayLayout

        public GlimpseLayout getFullOverlayLayout()
      • getAllTimePlots

        public Collection<TimePlotInfo> getAllTimePlots()

        Returns only the TimePlotInfo handles for plotting areas created with #createTimePlot(String).

        Note, this may not be all the plotting areas for this StackedPlot2D if some vanilla plots were created using #createPlot(String).
      • getTimeline

        public TimelineInfo getTimeline​(Object id)
        Returns the timeline handle for the timeline identified via its unique string identifier.
        Parameters:
        id - a timeline unique identifier
        Returns:
        the TimelineInfo handle
      • getTimePlot

        public TimePlotInfo getTimePlot​(Object id)
        Returns the time plot handle for the plot identified via its unique string identifier.
        Parameters:
        id - a plot unique identifier
        Returns:
        the TimePlotInfo handle
      • getEventPlot

        public EventPlotInfo getEventPlot​(Object id)
        Returns the event plot handle for the plot identified via its unique string identifier.
        Parameters:
        id - a plot unique identifier
        Returns:
        the EventPlotInfo handle
      • setSelectedPlot

        public void setSelectedPlot​(Object id)
      • setSelectedPlot

        public void setSelectedPlot​(PlotInfo layout)
      • getSelectedPlot

        public PlotInfo getSelectedPlot()
      • setTimeAxisMouseListener

        public void setTimeAxisMouseListener​(AxisMouseListener1D listener)
      • setAllowSelectionLock

        public void setAllowSelectionLock​(boolean lock)
        Sets whether or not locking of the selected region is allowed for all timeline and plot axes. This setting will also affect newly created plots.
        Parameters:
        lock - whether to allow locking of the selected region
        See Also:
        AxisMouseListener.setAllowSelectionLock(boolean)
      • setAllowDragResizeLabel

        public void setAllowDragResizeLabel​(boolean allow)
        Sets whether to allow dragging to resize the label area.
      • setAllowZoomY

        public void setAllowZoomY​(boolean lock)
        Sets whether or not zooming of the Y axis is allowed for all timeline and plot axes. This setting will also affect newly created plots.
        Parameters:
        lock - whether to allow zooming of the Y axis
        See Also:
        AxisMouseListener#setAllowZoomY(boolean)
      • setAllowZoomX

        public void setAllowZoomX​(boolean lock)
        Sets whether or not zooming of the X axis is allowed for all timeline and plot axes. This setting will also affect newly created plots.
        Parameters:
        lock - whether to allow zooming of the X axis
        See Also:
        AxisMouseListener#setAllowZoomX(boolean)
      • setAllowPanY

        public void setAllowPanY​(boolean lock)
        Sets whether or not panning of the Y axis is allowed for all timeline and plot axes. This setting will also affect newly created plots.
        Parameters:
        lock - whether to allow panning of the Y axis
        See Also:
        AxisMouseListener#setAllowPanY(boolean)
      • setAllowPanX

        public void setAllowPanX​(boolean lock)
        Sets whether or not panning of the X axis is allowed for all timeline and plot axes. This setting will also affect newly created plots.
        Parameters:
        lock - whether to allow panning of the X axis
        See Also:
        AxisMouseListener#setAllowPanX(boolean)
      • getTimeSelectionTag

        public Tag getTimeSelectionTag()
        Get the TaggedAxis1D Tag which defines the currently selected time.
        Returns:
        the current time selection Tag
      • getTimeSelectionMinTag

        public Tag getTimeSelectionMinTag()
        Get the TaggedAxis1D Tag which defines the earliest endpoint of the selected time region.
        Returns:
        the earliest time selection Tag
      • getTimeSelectionMaxTag

        public Tag getTimeSelectionMaxTag()
        Get the TaggedAxis1D Tag which defines the latest endpoint of the selected time region.
        Returns:
        the latest time selection Tag
      • getTimeSelection

        public TimeStamp getTimeSelection()
        Get the currently selected time (usually equal to getTimeSelectionMax()).
      • getTimeSelectionMin

        public TimeStamp getTimeSelectionMin()
        Get the TimeStamp of earliest endpoint of the selected time region.
      • getTimeSelectionMax

        public TimeStamp getTimeSelectionMax()
        Get the TimeStamp of latest endpoint of the selected time region.
      • getEpoch

        public Epoch getEpoch()
      • setEpoch

        public void setEpoch​(Epoch epoch)
      • toTimeStamp

        public TimeStamp toTimeStamp​(double value)
      • fromTimeStamp

        public double fromTimeStamp​(TimeStamp value)
      • setLabelSize

        public void setLabelSize​(int size)
      • setShowLabels

        public void setShowLabels​(boolean show)
      • getLabelSize

        public int getLabelSize()
      • isShowLabels

        public boolean isShowLabels()
      • isTimeAxisHorizontal

        public boolean isTimeAxisHorizontal()
      • pushLayoutTargetStack

        public GlimpseTargetStack pushLayoutTargetStack​(GlimpseTargetStack stack,
                                                        Object id)
        Pushes the layout stack for the named plot onto the provided GlimpseTargetStack.
        Parameters:
        id - unique identifier for the plot
        Returns:
        a relative GlimpseTargetStack for the named plot
      • pushPlotTargetStack

        public GlimpseTargetStack pushPlotTargetStack​(GlimpseTargetStack stack)
        Pushes the layout stack for the base layout of this StackedTimePlot2D onto the provided GlimpseTargetStack.
        Returns:
        a relative GlimpseTargetStack for the timeline plot background layout
      • createTimePlot

        public TimePlotInfo createTimePlot​(Object id,
                                           Axis1D axis)
        Creates a plot similar to createPlot( String, Axis1D ) but with additional plot decorations, including: grid lines, axes labels for the data axis, and a text label describing the plot.
        See Also:
        createPlot(Object, Axis1D )
      • createTimeline

        public TimelineInfo createTimeline()
        Creates a labeled timeline (with tick marks and date/time labels). This method may be called multiple times with different time zones if multiple timezone labels are desired.
      • isLocked

        public boolean isLocked()
      • isSelectionLocked

        public boolean isSelectionLocked()
      • setSelectionLocked

        public void setSelectionLocked​(boolean lock)
        Fixes the selected time region so that it will no longer follow the mouse cursor.
        Parameters:
        lock - whether to lock or unlock the selected time region
      • isCurrentTimeLocked

        public boolean isCurrentTimeLocked()
      • setCurrentTimeLocked

        public void setCurrentTimeLocked​(boolean lock)
        Fixes the selected time region and the timeline bounds with the current maximum of the selected time region at the far right of the timeline.
        Parameters:
        lock -
      • setTimeAxisBounds

        public void setTimeAxisBounds​(TimeStamp minTime,
                                      TimeStamp maxTime)
      • shiftTimeAxisBounds

        public void shiftTimeAxisBounds​(TimeStamp maxTime)
      • setTimeSelection

        public void setTimeSelection​(TimeStamp minTime,
                                     TimeStamp maxTime)
      • shiftTimeSelection

        public void shiftTimeSelection​(TimeStamp maxTime)