public class StackedTimePlot2D extends StackedPlot2D
StackedPlot2D
which automatically creates a timeline axis at the
bottom of the stack and uses a
TaggedAxis1D
to define a selected time
region.StackedPlot2D.Orientation
Modifier and Type | Field and Description |
---|---|
static String |
CURRENT_TIME |
static String |
MAX_TIME |
static String |
MIN_TIME |
Constructor and Description |
---|
StackedTimePlot2D() |
StackedTimePlot2D(Epoch epoch)
Creates a vertical StackedTimePlot2D.
|
StackedTimePlot2D(StackedPlot2D.Orientation orientation) |
StackedTimePlot2D(StackedPlot2D.Orientation orientation,
Epoch epoch) |
StackedTimePlot2D(StackedPlot2D.Orientation orientation,
Epoch epoch,
TaggedAxis1D commonAxis) |
StackedTimePlot2D(StackedPlot2D.Orientation orientation,
Epoch epoch,
TextureAtlas atlas) |
StackedTimePlot2D(StackedPlot2D.Orientation orientation,
Epoch epoch,
TextureAtlas atlas,
TaggedAxis1D commonAxis)
Creates a StackedTimePlot2D with specified orientation.
|
Modifier and Type | Method and Description |
---|---|
void |
addPlotMouseListener(PlotMouseListener listener) |
EventPlotInfo |
createEventPlot() |
EventPlotInfo |
createEventPlot(Object id) |
PlotInfo |
createPlot(Object id,
Axis1D axis) |
TimelineInfo |
createTimeline()
Creates a labeled timeline (with tick marks and date/time labels).
|
TimelineInfo |
createTimeline(Object id,
TimeZone timeZone) |
TimePlotInfo |
createTimePlot() |
TimePlotInfo |
createTimePlot(Object id) |
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. |
double |
fromTimeStamp(TimeStamp value) |
Collection<TimePlotInfo> |
getAllTimePlots()
Returns only the TimePlotInfo handles for plotting areas created with
#createTimePlot(String) . |
TimelineInfo |
getDefaultTimeline() |
Epoch |
getEpoch() |
EventPlotInfo |
getEventPlot(Object id)
Returns the event plot handle for the plot identified via its unique string identifier.
|
EventSelectionHandler |
getEventSelectionHander()
Returns the common EventSelectionHandler shared between all
EventPlotInfo
sub-plots for this StackedTimePlot2D. |
GlimpseLayout |
getFullOverlayLayout() |
int |
getLabelSize() |
GlimpseAxisLayout1D |
getOverlayLayout()
StackedTimePlot2D provides a GlimpseAxisLayout1D which stretches over
all the underlying plots and timeline.
|
int |
getOverlayLayoutOffsetX() |
int |
getOverlayLayoutOffsetY2() |
PlotInfo |
getSelectedPlot() |
SelectedTimeRegionPainter |
getSelectedTimePainter() |
TextureAtlas |
getTextureAtlas() |
TimeStamp |
getTime(GlimpseMouseEvent e) |
TaggedAxis1D |
getTimeAxis() |
TimeAxisLabelHandler |
getTimeAxisLabelHandler() |
AxisMouseListener1D |
getTimeAxisMouseListener() |
TimelineInfo |
getTimeline(Object id)
Returns the timeline handle for the timeline identified via its unique string identifier.
|
TimePlotInfo |
getTimePlot(Object id)
Returns the time plot handle for the plot identified via its unique string identifier.
|
TimeStamp |
getTimeSelection()
Get the currently selected time (usually equal to getTimeSelectionMax()).
|
TimeStamp |
getTimeSelectionMax()
Get the TimeStamp of latest endpoint of the selected time region.
|
Tag |
getTimeSelectionMaxTag()
Get the TaggedAxis1D Tag which defines the latest endpoint of the
selected time region.
|
TimeStamp |
getTimeSelectionMin()
Get the TimeStamp of earliest endpoint of the selected time region.
|
Tag |
getTimeSelectionMinTag()
Get the TaggedAxis1D Tag which defines the earliest endpoint of the
selected time region.
|
Tag |
getTimeSelectionTag()
Get the TaggedAxis1D Tag which defines the currently selected time.
|
TooltipPainter |
getTooltipPainter() |
GlimpseAxisLayout1D |
getUnderlayLayout() |
boolean |
isCurrentTimeLocked() |
boolean |
isLocked() |
boolean |
isSelectionLocked() |
boolean |
isShowLabels() |
boolean |
isShowTimeline() |
boolean |
isTimeAxisHorizontal() |
GlimpseTargetStack |
pushLayoutTargetStack(GlimpseTargetStack stack,
Object id)
Pushes the layout stack for the named plot onto the provided
GlimpseTargetStack.
|
GlimpseTargetStack |
pushPlotTargetStack(GlimpseTargetStack stack)
Pushes the layout stack for the base layout of this StackedTimePlot2D
onto the provided GlimpseTargetStack.
|
void |
removePlotMouseListener(PlotMouseListener listener) |
void |
setAllowPanX(boolean lock)
Sets whether or not panning of the X axis is allowed for all
timeline and plot axes.
|
void |
setAllowPanY(boolean lock)
Sets whether or not panning of the Y axis is allowed for all
timeline and plot axes.
|
void |
setAllowSelectionLock(boolean lock)
Sets whether or not locking of the selected region is allowed for all
timeline and plot axes.
|
void |
setAllowZoomX(boolean lock)
Sets whether or not zooming of the X axis is allowed for all
timeline and plot axes.
|
void |
setAllowZoomY(boolean lock)
Sets whether or not zooming of the Y axis is allowed for all
timeline and plot axes.
|
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.
|
void |
setEpoch(Epoch epoch) |
void |
setLabelSize(int size) |
void |
setPlotSpacing(int size) |
void |
setSelectedPlot(Object id) |
void |
setSelectedPlot(PlotInfo layout) |
void |
setSelectionLocked(boolean lock)
Fixes the selected time region so that it will no longer follow the mouse
cursor.
|
void |
setShowLabels(boolean show) |
void |
setShowTimeline(boolean showTimeline) |
void |
setTimeAxisBounds(TimeStamp minTime,
TimeStamp maxTime) |
void |
setTimeAxisLabelHandler(TimeAxisLabelHandler handler) |
void |
setTimeAxisMouseListener(AxisMouseListener1D listener) |
void |
setTimeSelection(TimeStamp minTime,
TimeStamp maxTime) |
void |
setTimeSelection(TimeStamp minTime,
TimeStamp selectedTime,
TimeStamp maxTime) |
void |
shiftTimeAxisBounds(TimeStamp maxTime) |
void |
shiftTimeSelection(TimeStamp maxTime) |
void |
showLabels(boolean show)
Deprecated.
|
TimeStamp |
toTimeStamp(double value) |
addPlot, createPlot, createPlot, deletePlot, getAllPlots, getBackgroundColor, getBorderSize, getCommonAxis, getCommonAxis, getLayoutManager, getOrientation, getOrthogonalAxis, getOverlayLayoutOffsetX2, getOverlayLayoutOffsetY, getPlot, getPlotSpacing, getSortedPlots, isAutoValidate, removePlot, setAutoValidate, setBackgroundColor, setBorderSize, setLookAndFeel, toString, validate, validateAxes, validateLayout
addGlimpseMouseAllListener, addGlimpseMouseListener, addGlimpseMouseMotionListener, addGlimpseMouseWheelListener, addLayout, addLayout, addLayout, addLayout, addPainter, addPainter, addPainter, addPainter, dispose, getGlimpseMouseListeners, getGlimpseMouseMotionListeners, getGlimpseMouseWheelListeners, getLock, getName, getTargetBounds, getTargetChildren, invalidateLayout, isDisposed, isEventConsumer, isEventGenerator, isVisible, layoutTo, layoutTo, mouseEntered, mouseExited, mouseMoved, mousePressed, mouseReleased, mouseWheelMoved, paintTo, removeAll, removeAllGlimpseListeners, removeAllLayouts, removeGlimpseMouseAllListener, removeGlimpseMouseListener, removeGlimpseMouseMotionListener, removeGlimpseMouseWheelListener, removeLayout, removePainter, setEventConsumer, setEventGenerator, setLayoutData, setLayoutManager, setName, setVisible, setZOrder, setZOrder
public static final String MIN_TIME
public static final String MAX_TIME
public static final String CURRENT_TIME
public StackedTimePlot2D()
public StackedTimePlot2D(Epoch epoch)
public StackedTimePlot2D(StackedPlot2D.Orientation orientation)
public StackedTimePlot2D(StackedPlot2D.Orientation orientation, Epoch epoch)
public StackedTimePlot2D(StackedPlot2D.Orientation orientation, Epoch epoch, TextureAtlas atlas)
public StackedTimePlot2D(StackedPlot2D.Orientation orientation, Epoch epoch, TaggedAxis1D commonAxis)
public StackedTimePlot2D(StackedPlot2D.Orientation orientation, Epoch epoch, TextureAtlas atlas, TaggedAxis1D commonAxis)
public void setTimeAxisLabelHandler(TimeAxisLabelHandler handler)
public TimeAxisLabelHandler getTimeAxisLabelHandler()
public TimelineInfo getDefaultTimeline()
public void addPlotMouseListener(PlotMouseListener listener)
public void removePlotMouseListener(PlotMouseListener listener)
public EventSelectionHandler getEventSelectionHander()
EventPlotInfo
sub-plots for this StackedTimePlot2D.public void setShowTimeline(boolean showTimeline)
public boolean isShowTimeline()
public int getOverlayLayoutOffsetX()
getOverlayLayoutOffsetX
in class StackedPlot2D
public int getOverlayLayoutOffsetY2()
getOverlayLayoutOffsetY2
in class StackedPlot2D
public void setPlotSpacing(int size)
setPlotSpacing
in class StackedPlot2D
public GlimpseAxisLayout1D getOverlayLayout()
public GlimpseLayout getFullOverlayLayout()
public GlimpseAxisLayout1D getUnderlayLayout()
public TooltipPainter getTooltipPainter()
public Collection<TimePlotInfo> getAllTimePlots()
Returns only the TimePlotInfo handles for plotting areas created with
#createTimePlot(String)
.
#createPlot(String)
.public TimelineInfo getTimeline(Object id)
id
- a timeline unique identifierpublic TimePlotInfo getTimePlot(Object id)
id
- a plot unique identifierpublic EventPlotInfo getEventPlot(Object id)
id
- a plot unique identifierpublic void setSelectedPlot(Object id)
public void setSelectedPlot(PlotInfo layout)
public PlotInfo getSelectedPlot()
public void setTimeAxisMouseListener(AxisMouseListener1D listener)
public AxisMouseListener1D getTimeAxisMouseListener()
public void setAllowSelectionLock(boolean lock)
lock
- whether to allow locking of the selected regionAxisMouseListener.setAllowSelectionLock(boolean)
public void setAllowZoomY(boolean lock)
lock
- whether to allow zooming of the Y axisAxisMouseListener#setAllowZoomY(boolean)
public void setAllowZoomX(boolean lock)
lock
- whether to allow zooming of the X axisAxisMouseListener#setAllowZoomX(boolean)
public void setAllowPanY(boolean lock)
lock
- whether to allow panning of the Y axisAxisMouseListener#setAllowPanY(boolean)
public void setAllowPanX(boolean lock)
lock
- whether to allow panning of the X axisAxisMouseListener#setAllowPanX(boolean)
public Tag getTimeSelectionTag()
public Tag getTimeSelectionMinTag()
public Tag getTimeSelectionMaxTag()
public TimeStamp getTimeSelection()
public TimeStamp getTimeSelectionMin()
public TimeStamp getTimeSelectionMax()
public Epoch getEpoch()
public void setEpoch(Epoch epoch)
public TimeStamp toTimeStamp(double value)
public double fromTimeStamp(TimeStamp value)
public TaggedAxis1D getTimeAxis()
public SelectedTimeRegionPainter getSelectedTimePainter()
public void setLabelSize(int size)
public void setShowLabels(boolean show)
public void showLabels(boolean show)
setShowLabels(boolean)
public int getLabelSize()
public boolean isShowLabels()
public boolean isTimeAxisHorizontal()
public GlimpseTargetStack pushLayoutTargetStack(GlimpseTargetStack stack, Object id)
id
- unique identifier for the plotpublic GlimpseTargetStack pushPlotTargetStack(GlimpseTargetStack stack)
public TimePlotInfo createTimePlot()
StackedPlot2D.createPlot(Object )
public TimePlotInfo createTimePlot(Object id)
createPlot(Object, Axis1D )
public TimePlotInfo createTimePlot(Object id, Axis1D axis)
createPlot( String, Axis1D )
but with
additional plot decorations, including: grid lines, axes labels for the
data axis, and a text label describing the plot.createPlot(Object, Axis1D )
public TimelineInfo createTimeline()
public TimelineInfo createTimeline(Object id, TimeZone timeZone)
public TextureAtlas getTextureAtlas()
public EventPlotInfo createEventPlot()
public EventPlotInfo createEventPlot(Object id)
public boolean isLocked()
public boolean isSelectionLocked()
public void setSelectionLocked(boolean lock)
lock
- whether to lock or unlock the selected time regionpublic boolean isCurrentTimeLocked()
public void setCurrentTimeLocked(boolean lock)
lock
- public void setTimeSelection(TimeStamp minTime, TimeStamp selectedTime, TimeStamp maxTime)
public void shiftTimeAxisBounds(TimeStamp maxTime)
public void shiftTimeSelection(TimeStamp maxTime)
public TimeStamp getTime(GlimpseMouseEvent e)
public PlotInfo createPlot(Object id, Axis1D axis)
createPlot
in class StackedPlot2D
Copyright © 2016 Metron, Inc.. All rights reserved.