Class MultiAxisPlot2D
- java.lang.Object
-
- com.metsci.glimpse.core.layout.GlimpseLayout
-
- com.metsci.glimpse.core.plot.MultiAxisPlot2D
-
- All Implemented Interfaces:
GlimpseTarget
,GlimpseKeyListener
,Keyable
,GlimpseMouseListener
,GlimpseMouseMotionListener
,GlimpseMouseWheelListener
,Mouseable
,GlimpsePainter
- Direct Known Subclasses:
MultiAxisPlot2DWithPopup
public class MultiAxisPlot2D extends GlimpseLayout
A flexible plotting area with the ability to create an arbitrary number of additional axes above, below, left, or right of the main central plotting area.- Author:
- ulman
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
MultiAxisPlot2D.AxisInfo
static class
MultiAxisPlot2D.AxisOrientation
-
Constructor Summary
Constructors Constructor Description MultiAxisPlot2D()
-
Method Summary
-
Methods inherited from class com.metsci.glimpse.core.layout.GlimpseLayout
addLayout, addLayout, addLayout, addLayout, addLayout, addPainter, addPainter, dispose, getGlimpseKeyListeners, getGlimpseMouseListeners, getGlimpseMouseMotionListeners, getGlimpseMouseWheelListeners, getLayoutByKey, getLayoutManager, getLock, getName, getPainterByKey, getTargetBounds, getTargetChildren, invalidateLayout, isDisposed, isEventConsumer, isEventGenerator, isVisible, keyPressed, keyReleased, layoutTo, layoutTo, mouseEntered, mouseExited, mouseMoved, mousePressed, mouseReleased, mouseWheelMoved, paintTo, removeAll, removeAllLayouts, removeLayout, removeLayoutByKey, removePainterByKey, setEventConsumer, setEventGenerator, setLayoutData, setLayoutManager, setName, setVisible, setZOrder, setZOrder
-
-
-
-
Method Detail
-
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
-
setPlotBackgroundColor
public void setPlotBackgroundColor(float[] color)
-
setBackgroundColor
public void setBackgroundColor(float[] color)
-
addPainter
public void addPainter(GlimpsePainter painter)
- Overrides:
addPainter
in classGlimpseLayout
-
addPainter
public void addPainter(GlimpsePainter painter, GlimpsePainterCallback callback)
- Overrides:
addPainter
in classGlimpseLayout
-
addPainter
public void addPainter(GlimpsePainter painter, int zOrder)
- Overrides:
addPainter
in classGlimpseLayout
-
addPainter
public void addPainter(GlimpsePainter painter, GlimpsePainterCallback callback, int zOrder)
- Overrides:
addPainter
in classGlimpseLayout
-
removePainter
public void removePainter(GlimpsePainter painter)
- Overrides:
removePainter
in classGlimpseLayout
-
getLayoutCenter
public GlimpseAxisLayout2D getLayoutCenter()
-
getAxisInfo
public MultiAxisPlot2D.AxisInfo getAxisInfo(String label)
-
getCenterAxisX
public Axis1D getCenterAxisX()
-
getCenterAxisY
public Axis1D getCenterAxisY()
-
getCenterAxis
public Axis2D getCenterAxis()
-
setTitleFont
public void setTitleFont(Font font)
-
setTitleFont
public void setTitleFont(Font font, boolean antialias)
-
getTitle
public String getTitle()
-
setTitle
public void setTitle(String title)
-
setShowTitle
public void setShowTitle(boolean show)
-
setTitleHeight
public void setTitleHeight(int height)
-
setBorderSize
public void setBorderSize(int size)
-
validate
public void validate()
-
deleteAxisRight
public void deleteAxisRight(String name)
-
deleteAxisLeft
public void deleteAxisLeft(String name)
-
deleteAxisTop
public void deleteAxisTop(String name)
-
deleteAxisBottom
public void deleteAxisBottom(String name)
-
addGlimpseMouseListener
@Deprecated public void addGlimpseMouseListener(GlimpseMouseListener listener)
Deprecated.In most cases you want to callMultiAxisPlot2D.getLayoutCenter().addGlimpseMouseListener()
instead of this method.This method is not really deprecated -- it is marked deprecated to make it harder to call accidentally. If you really do want to call this method, you can use the
SuppressWarnings
annotation to silence the deprecation warning.- Specified by:
addGlimpseMouseListener
in interfaceMouseable
- Overrides:
addGlimpseMouseListener
in classGlimpseLayout
-
addGlimpseMouseMotionListener
@Deprecated public void addGlimpseMouseMotionListener(GlimpseMouseMotionListener listener)
Deprecated.In most cases you want to callMultiAxisPlot2D.getLayoutCenter().addGlimpseMouseMotionListener()
instead of this method.This method is not really deprecated -- it is marked deprecated to make it harder to call accidentally. If you really do want to call this method, you can use the
SuppressWarnings
annotation to silence the deprecation warning.- Specified by:
addGlimpseMouseMotionListener
in interfaceMouseable
- Overrides:
addGlimpseMouseMotionListener
in classGlimpseLayout
-
addGlimpseMouseWheelListener
@Deprecated public void addGlimpseMouseWheelListener(GlimpseMouseWheelListener listener)
Deprecated.In most cases you want to callMultiAxisPlot2D.getLayoutCenter().addGlimpseMouseWheelListener()
instead of this method.This method is not really deprecated -- it is marked deprecated to make it harder to call accidentally. If you really do want to call this method, you can use the
SuppressWarnings
annotation to silence the deprecation warning.- Specified by:
addGlimpseMouseWheelListener
in interfaceMouseable
- Overrides:
addGlimpseMouseWheelListener
in classGlimpseLayout
-
addGlimpseMouseAllListener
@Deprecated public void addGlimpseMouseAllListener(GlimpseMouseAllListener listener)
Deprecated.In most cases you want to callMultiAxisPlot2D.getLayoutCenter().addGlimpseMouseAllListener()
instead of this method.This method is not really deprecated -- it is marked deprecated to make it harder to call accidentally. If you really do want to call this method, you can use the
SuppressWarnings
annotation to silence the deprecation warning.- Specified by:
addGlimpseMouseAllListener
in interfaceMouseable
- Overrides:
addGlimpseMouseAllListener
in classGlimpseLayout
-
removeGlimpseMouseAllListener
@Deprecated public void removeGlimpseMouseAllListener(GlimpseMouseAllListener listener)
Deprecated.In most cases you want to callMultiAxisPlot2D.getLayoutCenter().removeGlimpseMouseAllListener()
instead of this method.This method is not really deprecated -- it is marked deprecated to make it harder to call accidentally. If you really do want to call this method, you can use the
SuppressWarnings
annotation to silence the deprecation warning.- Specified by:
removeGlimpseMouseAllListener
in interfaceMouseable
- Overrides:
removeGlimpseMouseAllListener
in classGlimpseLayout
-
addGlimpseKeyListener
@Deprecated public void addGlimpseKeyListener(GlimpseKeyListener listener)
Deprecated.In most cases you want to callMultiAxisPlot2D.getLayoutCenter().addGlimpseKeyListener()
instead of this method.This method is not really deprecated -- it is marked deprecated to make it harder to call accidentally. If you really do want to call this method, you can use the
SuppressWarnings
annotation to silence the deprecation warning.- Specified by:
addGlimpseKeyListener
in interfaceKeyable
- Overrides:
addGlimpseKeyListener
in classGlimpseLayout
-
removeGlimpseMouseListener
@Deprecated public void removeGlimpseMouseListener(GlimpseMouseListener listener)
Deprecated.In most cases you want to callMultiAxisPlot2D.getLayoutCenter().removeGlimpseMouseListener()
instead of this method.This method is not really deprecated -- it is marked deprecated to make it harder to call accidentally. If you really do want to call this method, you can use the
SuppressWarnings
annotation to silence the deprecation warning.- Specified by:
removeGlimpseMouseListener
in interfaceMouseable
- Overrides:
removeGlimpseMouseListener
in classGlimpseLayout
-
removeGlimpseMouseMotionListener
@Deprecated public void removeGlimpseMouseMotionListener(GlimpseMouseMotionListener listener)
Deprecated.In most cases you want to callMultiAxisPlot2D.getLayoutCenter().removeGlimpseMouseMotionListener()
instead of this method.This method is not really deprecated -- it is marked deprecated to make it harder to call accidentally. If you really do want to call this method, you can use the
SuppressWarnings
annotation to silence the deprecation warning.- Specified by:
removeGlimpseMouseMotionListener
in interfaceMouseable
- Overrides:
removeGlimpseMouseMotionListener
in classGlimpseLayout
-
removeGlimpseMouseWheelListener
@Deprecated public void removeGlimpseMouseWheelListener(GlimpseMouseWheelListener listener)
Deprecated.In most cases you want to callMultiAxisPlot2D.getLayoutCenter().removeGlimpseMouseWheelListener()
instead of this method.This method is not really deprecated -- it is marked deprecated to make it harder to call accidentally. If you really do want to call this method, you can use the
SuppressWarnings
annotation to silence the deprecation warning.- Specified by:
removeGlimpseMouseWheelListener
in interfaceMouseable
- Overrides:
removeGlimpseMouseWheelListener
in classGlimpseLayout
-
removeGlimpseKeyListener
@Deprecated public void removeGlimpseKeyListener(GlimpseKeyListener listener)
Deprecated.In most cases you want to callMultiAxisPlot2D.getLayoutCenter().removeGlimpseKeyListener()
instead of this method.This method is not really deprecated -- it is marked deprecated to make it harder to call accidentally. If you really do want to call this method, you can use the
SuppressWarnings
annotation to silence the deprecation warning.- Specified by:
removeGlimpseKeyListener
in interfaceKeyable
- Overrides:
removeGlimpseKeyListener
in classGlimpseLayout
-
removeAllGlimpseListeners
@Deprecated public void removeAllGlimpseListeners()
Deprecated.In most cases you want to callMultiAxisPlot2D.getLayoutCenter().removeAllGlimpseListeners()
instead of this method.This method is not really deprecated -- it is marked deprecated to make it harder to call accidentally. If you really do want to call this method, you can use the
SuppressWarnings
annotation to silence the deprecation warning.- Specified by:
removeAllGlimpseListeners
in interfaceKeyable
- Specified by:
removeAllGlimpseListeners
in interfaceMouseable
- Overrides:
removeAllGlimpseListeners
in classGlimpseLayout
-
getLayoutCenterMouseListener
public AxisMouseListener getLayoutCenterMouseListener()
-
createAxisRight
public MultiAxisPlot2D.AxisInfo createAxisRight(String name, Axis1D axis, AxisMouseListener mouseListener)
-
createAxisRight
public MultiAxisPlot2D.AxisInfo createAxisRight(String name)
-
createAxisLeft
public MultiAxisPlot2D.AxisInfo createAxisLeft(String name, Axis1D axis, AxisMouseListener mouseListener)
-
createAxisLeft
public MultiAxisPlot2D.AxisInfo createAxisLeft(String name)
-
createAxisTop
public MultiAxisPlot2D.AxisInfo createAxisTop(String name, Axis1D axis, AxisMouseListener mouseListener)
-
createAxisTop
public MultiAxisPlot2D.AxisInfo createAxisTop(String name)
-
createAxisBottom
public MultiAxisPlot2D.AxisInfo createAxisBottom(String name, Axis1D axis, AxisMouseListener mouseListener)
-
getBackgroundPainter
public BackgroundPainter getBackgroundPainter()
-
getPlotBackgroundPainter
public BackgroundPainter getPlotBackgroundPainter()
-
createAxisBottom
public MultiAxisPlot2D.AxisInfo createAxisBottom(String name)
-
toString
public String toString()
- Overrides:
toString
in classGlimpseLayout
-
-