Class TimePlotInfoImpl
- java.lang.Object
-
- com.metsci.glimpse.core.plot.stacked.PlotInfoWrapper
-
- com.metsci.glimpse.core.plot.timeline.layout.TimePlotInfoImpl
-
- All Implemented Interfaces:
PlotInfo,TimePlotInfo
public class TimePlotInfoImpl extends PlotInfoWrapper implements TimePlotInfo
- Author:
- ulman
- See Also:
TimePlotInfo
-
-
Field Summary
-
Fields inherited from class com.metsci.glimpse.core.plot.stacked.PlotInfoWrapper
info
-
-
Constructor Summary
Constructors Constructor Description TimePlotInfoImpl(StackedTimePlot2D parent, PlotInfo child, GlimpseAxisLayout2D plotLayout, GlimpseLayout labelLayout, DataAxisMouseListener1D listener, GridPainter gridPainter, NumericXYAxisPainter axisPainter, SimpleTextPainter labelPainter, BorderPainter borderPainter, BorderPainter labelBorderPainter, BackgroundPainter backgroundPainter, DelegatePainter dataPainter)
-
Method Summary
-
Methods inherited from class com.metsci.glimpse.core.plot.stacked.PlotInfoWrapper
deletePlot, getId, getIndentLevel, getLayoutData, getOrder, getOrthogonalAxis, getOrthogonalAxis, getParent, getPlotSpacing, getSize, getStackedPlot, isExpanded, isGrow, isVisible, removePlot, setGrow, setIndentLevel, setLayoutData, setOrder, setParent, setPlotSpacing, setSize, setVisible
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.metsci.glimpse.core.plot.stacked.PlotInfo
deletePlot, getId, getIndentLevel, getLayoutData, getOrder, getOrthogonalAxis, getOrthogonalAxis, getParent, getPlotSpacing, getSize, getStackedPlot, isExpanded, isGrow, isVisible, removePlot, setGrow, setIndentLevel, setLayoutData, setOrder, setParent, setPlotSpacing, setSize, setVisible
-
-
-
-
Constructor Detail
-
TimePlotInfoImpl
public TimePlotInfoImpl(StackedTimePlot2D parent, PlotInfo child, GlimpseAxisLayout2D plotLayout, GlimpseLayout labelLayout, DataAxisMouseListener1D listener, GridPainter gridPainter, NumericXYAxisPainter axisPainter, SimpleTextPainter labelPainter, BorderPainter borderPainter, BorderPainter labelBorderPainter, BackgroundPainter backgroundPainter, DelegatePainter dataPainter)
-
-
Method Detail
-
setTimeToolTipHandler
public void setTimeToolTipHandler(TimeToolTipHandler toolTipHandler)
- Specified by:
setTimeToolTipHandlerin interfaceTimePlotInfo
-
getDataAxisMouseListener
public DataAxisMouseListener1D getDataAxisMouseListener()
- Specified by:
getDataAxisMouseListenerin interfaceTimePlotInfo
-
setDefaultEventBorderColor
public void setDefaultEventBorderColor(float[] rgba)
- Specified by:
setDefaultEventBorderColorin interfaceTimePlotInfo
-
setBorderWidth
public void setBorderWidth(float width)
- Specified by:
setBorderWidthin interfaceTimePlotInfo
-
setLabelBorderColor
public void setLabelBorderColor(float[] rgba)
- Specified by:
setLabelBorderColorin interfaceTimePlotInfo
-
setLabelBorderWidth
public void setLabelBorderWidth(float width)
- Specified by:
setLabelBorderWidthin interfaceTimePlotInfo
-
setLabelText
public void setLabelText(String text)
- Specified by:
setLabelTextin interfaceTimePlotInfo
-
setLabelColor
public void setLabelColor(float[] rgba)
- Specified by:
setLabelColorin interfaceTimePlotInfo
-
setAxisColor
public void setAxisColor(float[] rgba)
- Specified by:
setAxisColorin interfaceTimePlotInfo
-
setAxisFont
public void setAxisFont(Font font)
- Specified by:
setAxisFontin interfaceTimePlotInfo
-
setBackgroundColor
public void setBackgroundColor(float[] rgba)
- Specified by:
setBackgroundColorin interfaceTimePlotInfo
-
getLayout
public GlimpseAxisLayout2D getLayout()
Description copied from interface:PlotInfoReturns theGlimpseAxisLayout2Dfor this plot. This can be used to add subplots of painters to the plotting area.- Specified by:
getLayoutin interfacePlotInfo- Overrides:
getLayoutin classPlotInfoWrapper
-
addLayout
public void addLayout(GlimpseAxisLayout2D childLayout)
Description copied from interface:PlotInfoAdds the childLayout to the part of the StackedPlot2D represented by this LayoutInfo. Also links the common axis of the child to the common axis of the parent layout.- Specified by:
addLayoutin interfacePlotInfo- Overrides:
addLayoutin classPlotInfoWrapper
-
getBaseLayout
public GlimpseAxisLayout2D getBaseLayout()
Description copied from interface:PlotInfoReturns the baseGlimpseLayout. If this plot is made of a single GlimpseLayout,#getLayout()and#getBaseLayout()will return the same GlimpseLayout. Otherwise, the result of#getLayout()will be a child of#getBaseLayout(). Further,#getBaseLayout()will be a direct child of theStackedPlot2Dthat thisPlotInfois part of.- Specified by:
getBaseLayoutin interfacePlotInfo- Overrides:
getBaseLayoutin classPlotInfoWrapper
-
getLabelLayout
public GlimpseLayout getLabelLayout()
- Specified by:
getLabelLayoutin interfaceTimePlotInfo
-
getBackgroundPainter
public BackgroundPainter getBackgroundPainter()
- Specified by:
getBackgroundPainterin interfaceTimePlotInfo
-
getGridPainter
public GridPainter getGridPainter()
- Specified by:
getGridPainterin interfaceTimePlotInfo
-
getAxisPainter
public NumericXYAxisPainter getAxisPainter()
- Specified by:
getAxisPainterin interfaceTimePlotInfo
-
getLabelPainter
public SimpleTextPainter getLabelPainter()
- Specified by:
getLabelPainterin interfaceTimePlotInfo
-
getBorderPainter
public BorderPainter getBorderPainter()
- Specified by:
getBorderPainterin interfaceTimePlotInfo
-
getLabelBorderPainter
public BorderPainter getLabelBorderPainter()
- Specified by:
getLabelBorderPainterin interfaceTimePlotInfo
-
getStackedTimePlot
public StackedTimePlot2D getStackedTimePlot()
- Specified by:
getStackedTimePlotin interfaceTimePlotInfo
-
getDataPainter
public DelegatePainter getDataPainter()
- Specified by:
getDataPainterin interfaceTimePlotInfo
-
addPainter
public void addPainter(GlimpsePainter painter)
- Specified by:
addPainterin interfaceTimePlotInfo
-
removePainter
public void removePainter(GlimpsePainter painter)
- Specified by:
removePainterin interfaceTimePlotInfo
-
getCommonAxis
public TaggedAxis1D getCommonAxis(GlimpseTargetStack stack)
Description copied from interface:PlotInfoReturns the common axis associated with the given GlimpseTargetStack. Users generally should simply callPlotInfo.getCommonAxis().- Specified by:
getCommonAxisin interfacePlotInfo- Specified by:
getCommonAxisin interfaceTimePlotInfo- Overrides:
getCommonAxisin classPlotInfoWrapper
-
getCommonAxis
public TaggedAxis1D getCommonAxis()
Description copied from interface:PlotInfoReturns the common axis shared by all the plots in a StackedPlot2D.- Specified by:
getCommonAxisin interfacePlotInfo- Specified by:
getCommonAxisin interfaceTimePlotInfo- Overrides:
getCommonAxisin classPlotInfoWrapper- Returns:
- the shared axis for this plot
-
setLookAndFeel
public void setLookAndFeel(LookAndFeel laf)
- Specified by:
setLookAndFeelin interfacePlotInfo- Overrides:
setLookAndFeelin classPlotInfoWrapper
-
updateLayout
public void updateLayout(int index)
- Specified by:
updateLayoutin interfacePlotInfo- Overrides:
updateLayoutin classPlotInfoWrapper
-
-