Class NumericXYAxisPainter
- java.lang.Object
-
- com.metsci.glimpse.core.painter.base.GlimpsePainterBase
-
- com.metsci.glimpse.core.axis.painter.NumericXYAxisPainter
-
- All Implemented Interfaces:
GlimpsePainter
- Direct Known Subclasses:
NumericPolarAxisPainter
public class NumericXYAxisPainter extends GlimpsePainterBase
A floating axis plot with axes, tick marks, and labels drawn along the x and y origins. If the axes are translated such that the x or y origin is not visible, the tick marks will stick along the top or bottom of the screen as appropriate.- Author:
- ulman
- See Also:
com.metsci.glimpse.examples.basic.FunctionPlotExample
-
-
Constructor Summary
Constructors Constructor Description NumericXYAxisPainter()
NumericXYAxisPainter(AxisLabelHandler ticksX, AxisLabelHandler ticksY)
-
Method Summary
-
Methods inherited from class com.metsci.glimpse.core.painter.base.GlimpsePainterBase
dispose, getAxis1D, getAxis2D, getBounds, getGL3, isDisposed, isVisible, paintTo, requireAxis1D, requireAxis2D, setVisible
-
-
-
-
Constructor Detail
-
NumericXYAxisPainter
public NumericXYAxisPainter(AxisLabelHandler ticksX, AxisLabelHandler ticksY)
-
NumericXYAxisPainter
public NumericXYAxisPainter()
-
-
Method Detail
-
setLabelHandlerX
public void setLabelHandlerX(AxisLabelHandler ticksX)
-
setLabelHandlerY
public void setLabelHandlerY(AxisLabelHandler ticksY)
-
getLabelHandlerX
public AxisLabelHandler getLabelHandlerX()
-
getLabelHandlerY
public AxisLabelHandler getLabelHandlerY()
-
setFont
public void setFont(Font font)
-
setFont
public NumericXYAxisPainter setFont(Font font, boolean antialias)
-
setTextColor
public NumericXYAxisPainter setTextColor(float[] rgba)
-
setLineColor
public NumericXYAxisPainter setLineColor(float r, float g, float b, float a)
-
setLockLeft
public NumericXYAxisPainter setLockLeft(boolean lock)
-
setLockRight
public NumericXYAxisPainter setLockRight(boolean lock)
-
setLockBottom
public NumericXYAxisPainter setLockBottom(boolean lock)
-
setLockTop
public NumericXYAxisPainter setLockTop(boolean lock)
-
setShowOriginLabel
public NumericXYAxisPainter setShowOriginLabel(boolean show)
-
setLineColor
public NumericXYAxisPainter setLineColor(float[] rgba)
-
setShowVerticalTicks
public NumericXYAxisPainter setShowVerticalTicks(boolean show)
-
setShowHorizontalTicks
public NumericXYAxisPainter setShowHorizontalTicks(boolean show)
-
setShowLabelsNearOrigin
public NumericXYAxisPainter setShowLabelsNearOrigin(boolean show)
-
setShowOriginLines
public NumericXYAxisPainter setShowOriginLines(boolean show)
-
doPaintTo
public void doPaintTo(GlimpseContext context)
-
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
- Overrides:
setLookAndFeel
in classGlimpsePainterBase
-
doDispose
public void doDispose(GlimpseContext context)
-
-