|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.metsci.glimpse.layout.GlimpseLayout
com.metsci.glimpse.plot.timeline.StackedTimePlot2D
public class StackedTimePlot2D
A StackedPlot2D
which automatically creates a timeline axis at the
bottom of the stack and uses a
TaggedAxis1D
to define a selected time
region.
Field Summary | |
---|---|
static java.lang.String |
BACKGROUND
|
static java.lang.String |
CURRENT_TIME
|
static java.lang.String |
MAX_TIME
|
static java.lang.String |
MIN_TIME
|
static java.lang.String |
TIMELINE
|
Constructor Summary | |
---|---|
StackedTimePlot2D()
|
|
StackedTimePlot2D(Epoch epoch)
Creates a vertical StackedTimePlot2D. |
|
StackedTimePlot2D(StackedPlot2D.Orientation orientation)
|
|
StackedTimePlot2D(StackedPlot2D.Orientation orientation,
Epoch epoch)
Creates a StackedTimePlot2D with specified orientation. |
Method Summary | |
---|---|
StackedPlot2D.PlotInfo |
createPlot(java.lang.String name)
|
StackedPlot2D.PlotInfo |
createPlot(java.lang.String name,
Axis1D axis)
Creates a plotting area with one common time axis and attaches a mouse listener which handles properly adjusting the time selection on the time axis. |
TimePlotInfo |
createTimePlot(java.lang.String name)
|
TimePlotInfo |
createTimePlot(java.lang.String name,
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. |
void |
deletePlot(java.lang.String name)
|
double |
fromTimeStamp(TimeStamp value)
|
java.util.Collection<StackedPlot2D.PlotInfo> |
getAllPlots()
|
Epoch |
getEpoch()
|
StackedPlot2D.Orientation |
getOrientation()
|
StackedPlot2D.PlotInfo |
getPlot(java.lang.String name)
|
StackedPlot2D.PlotInfo |
getSelectedPlot()
|
TaggedAxis1D |
getTimeAxis()
|
TimeAxisPainter |
getTimeAxisPainter()
|
Tag |
getTimeSelection()
Get the TaggedAxis1D Tag which defines the currently selected time. |
Tag |
getTimeSelectionMax()
Get the TaggedAxis1D Tag which defines the latest endpoint of the selected time region. |
Tag |
getTimeSelectionMin()
Get the TaggedAxis1D Tag which defines the earliest endpoint of the selected time region. |
boolean |
isCurrentTimeLocked()
|
boolean |
isLocked()
|
boolean |
isSelectionLocked()
|
GlimpseTargetStack |
pushLayoutTargetStack(GlimpseTargetStack stack,
java.lang.String name)
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 |
setAxisColor(float[] rgba)
|
void |
setAxisFont(java.awt.Font font)
|
void |
setBackgroundColor(float[] rgba)
|
void |
setBorderSize(int size)
|
void |
setCurrentTimeColor(float[] rgba)
|
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 |
setSelectedPlot(StackedPlot2D.PlotInfo layout)
|
void |
setSelectedPlot(java.lang.String name)
|
void |
setSelectionLocked(boolean lock)
Fixes the selected time region so that it will no longer follow the mouse cursor. |
void |
setShowCurrentTime(boolean show)
|
void |
setTimeAxisBounds(TimeStamp minTime,
TimeStamp maxTime)
|
void |
setTimeAxisPainter(TimeAxisPainter painter)
|
void |
setTimeSelection(TimeStamp minTime,
TimeStamp maxTime)
|
void |
setTimeSelection(TimeStamp minTime,
TimeStamp selectedTime,
TimeStamp maxTime)
|
void |
shiftTimeAxisBounds(TimeStamp maxTime)
|
void |
shiftTimeSelection(TimeStamp maxTime)
|
TimeStamp |
toTimeStamp(double value)
|
void |
validate()
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String MIN_TIME
public static final java.lang.String MAX_TIME
public static final java.lang.String CURRENT_TIME
public static final java.lang.String BACKGROUND
public static final java.lang.String TIMELINE
Constructor Detail |
---|
public StackedTimePlot2D()
public StackedTimePlot2D(Epoch epoch)
public StackedTimePlot2D(StackedPlot2D.Orientation orientation)
public StackedTimePlot2D(StackedPlot2D.Orientation orientation, Epoch epoch)
Method Detail |
---|
public java.util.Collection<StackedPlot2D.PlotInfo> getAllPlots()
public void deletePlot(java.lang.String name)
public StackedPlot2D.PlotInfo getPlot(java.lang.String name)
public void setSelectedPlot(java.lang.String name)
public void setSelectedPlot(StackedPlot2D.PlotInfo layout)
public StackedPlot2D.PlotInfo getSelectedPlot()
public Tag getTimeSelection()
public Tag getTimeSelectionMin()
public Tag getTimeSelectionMax()
public StackedPlot2D.Orientation getOrientation()
public Epoch getEpoch()
public void setEpoch(Epoch epoch)
public TimeStamp toTimeStamp(double value)
public double fromTimeStamp(TimeStamp value)
public TaggedAxis1D getTimeAxis()
public void setTimeAxisPainter(TimeAxisPainter painter)
public TimeAxisPainter getTimeAxisPainter()
public void setAxisColor(float[] rgba)
public void setAxisFont(java.awt.Font font)
public void setShowCurrentTime(boolean show)
public void setCurrentTimeColor(float[] rgba)
public void setBackgroundColor(float[] rgba)
public void setBorderSize(int size)
public void validate()
public GlimpseTargetStack pushLayoutTargetStack(GlimpseTargetStack stack, java.lang.String name)
name
- the name of the plot
public GlimpseTargetStack pushPlotTargetStack(GlimpseTargetStack stack)
public StackedPlot2D.PlotInfo createPlot(java.lang.String name)
public StackedPlot2D.PlotInfo createPlot(java.lang.String name, Axis1D axis)
name
- the unique identifier of the plot to createaxis
- the non-shared / non-time data axis for the plot
public TimePlotInfo createTimePlot(java.lang.String name)
createPlot(String, Axis1D )
public TimePlotInfo createTimePlot(java.lang.String name, 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(String, Axis1D )
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 setTimeAxisBounds(TimeStamp minTime, TimeStamp maxTime)
public void shiftTimeAxisBounds(TimeStamp maxTime)
public void setTimeSelection(TimeStamp minTime, TimeStamp maxTime)
public void shiftTimeSelection(TimeStamp maxTime)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |