Class StackedPlot2D
- java.lang.Object
-
- com.metsci.glimpse.core.layout.GlimpseLayout
-
- com.metsci.glimpse.core.plot.stacked.StackedPlot2D
-
- All Implemented Interfaces:
GlimpseTarget
,GlimpseKeyListener
,Keyable
,GlimpseMouseListener
,GlimpseMouseMotionListener
,GlimpseMouseWheelListener
,Mouseable
,GlimpsePainter
- Direct Known Subclasses:
StackedTimePlot2D
public class StackedPlot2D extends GlimpseLayout
A plot which allows multiple plots or GlimpseLayout areas to be easily arranged in a vertical or horizontal stack.- Author:
- ulman
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
StackedPlot2D.Orientation
-
Constructor Summary
Constructors Constructor Description StackedPlot2D()
StackedPlot2D(Axis1D commonAxis)
StackedPlot2D(StackedPlot2D.Orientation orientation)
StackedPlot2D(StackedPlot2D.Orientation orientation, Axis1D commonAxis)
-
Method Summary
-
Methods inherited from class com.metsci.glimpse.core.layout.GlimpseLayout
addGlimpseKeyListener, addGlimpseMouseAllListener, addGlimpseMouseListener, addGlimpseMouseMotionListener, addGlimpseMouseWheelListener, addLayout, addLayout, addLayout, addLayout, addLayout, addPainter, addPainter, addPainter, addPainter, addPainter, addPainter, dispose, getGlimpseKeyListeners, getGlimpseMouseListeners, getGlimpseMouseMotionListeners, getGlimpseMouseWheelListeners, getLayoutByKey, getLock, getName, getPainterByKey, getTargetBounds, getTargetChildren, invalidateLayout, isDisposed, isEventConsumer, isEventGenerator, isVisible, keyPressed, keyReleased, layoutTo, layoutTo, mouseEntered, mouseExited, mouseMoved, mousePressed, mouseReleased, mouseWheelMoved, paintTo, removeAll, removeAllGlimpseListeners, removeAllLayouts, removeGlimpseKeyListener, removeGlimpseMouseAllListener, removeGlimpseMouseListener, removeGlimpseMouseMotionListener, removeGlimpseMouseWheelListener, removeLayout, removeLayoutByKey, removePainter, removePainterByKey, setEventConsumer, setEventGenerator, setLayoutData, setLayoutManager, setName, setVisible, setZOrder, setZOrder
-
-
-
-
Constructor Detail
-
StackedPlot2D
public StackedPlot2D(StackedPlot2D.Orientation orientation, Axis1D commonAxis)
-
StackedPlot2D
public StackedPlot2D(StackedPlot2D.Orientation orientation)
-
StackedPlot2D
public StackedPlot2D(Axis1D commonAxis)
-
StackedPlot2D
public StackedPlot2D()
-
-
Method Detail
-
getOverlayLayoutOffsetX
public int getOverlayLayoutOffsetX()
-
getOverlayLayoutOffsetX2
public int getOverlayLayoutOffsetX2()
-
getOverlayLayoutOffsetY
public int getOverlayLayoutOffsetY()
-
getOverlayLayoutOffsetY2
public int getOverlayLayoutOffsetY2()
-
getLayoutManager
public GlimpseLayoutManagerMig getLayoutManager()
- Overrides:
getLayoutManager
in classGlimpseLayout
-
isAutoValidate
public boolean isAutoValidate()
-
setAutoValidate
public void setAutoValidate(boolean autoValidate)
-
getPlotSpacing
public int getPlotSpacing()
-
getOrientation
public StackedPlot2D.Orientation getOrientation()
-
getCommonAxis
public Axis1D getCommonAxis()
-
getAllPlots
public Collection<PlotInfo> getAllPlots()
-
setPlotSpacing
public void setPlotSpacing(int size)
-
getBackgroundColor
public float[] getBackgroundColor()
-
setBackgroundColor
public void setBackgroundColor(float[] color)
-
setBorderSize
public void setBorderSize(int size)
-
getBorderSize
public int getBorderSize()
-
validate
public void validate()
-
validateAxes
public void validateAxes()
-
validateLayout
public void validateLayout()
-
deletePlot
@Deprecated public void deletePlot(Object id)
Deprecated.- Parameters:
id
-
-
removePlot
public void removePlot(Object id)
-
addPlot
public void addPlot(PlotInfo info)
-
createPlot
public PlotInfo createPlot()
-
toString
public String toString()
- Overrides:
toString
in classGlimpseLayout
-
setLookAndFeel
public void setLookAndFeel(LookAndFeel laf)
Description copied from interface:GlimpsePainter
Sets display options for the painter based on the provided LookAndFeel.- Specified by:
setLookAndFeel
in interfaceGlimpsePainter
- Specified by:
setLookAndFeel
in interfaceGlimpseTarget
- Overrides:
setLookAndFeel
in classGlimpseLayout
-
-