Class NumericAxisPainter
- java.lang.Object
-
- com.metsci.glimpse.core.painter.base.GlimpsePainterBase
-
- com.metsci.glimpse.core.axis.painter.NumericAxisPainter
-
- All Implemented Interfaces:
GlimpsePainter
- Direct Known Subclasses:
NumericXAxisPainter
,NumericYAxisPainter
,TimeAxisPainter
public abstract class NumericAxisPainter extends GlimpsePainterBase
A simple axis painter which displays labeled ticks at regular intervals along the length of the axis. The ticks are spaced so that they fall on round numbered values.- Author:
- ulman
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
NumericAxisPainter.TickInfo
-
Constructor Summary
Constructors Constructor Description NumericAxisPainter(AxisLabelHandler ticks)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AxisLabelHandler
getTickCalculator()
NumericAxisPainter.TickInfo
getTickInfo(Axis1D axis, GlimpseBounds bounds)
void
resetFont()
void
resetLabelColors()
void
resetTickColor()
void
setAxisLabel(String label)
void
setAxisLabelBufferSize(int size)
void
setAxisLabelColor(float[] color)
void
setFont(Font font)
void
setFont(Font font, boolean antialias)
void
setKeepLabelsForExtremaFullyVisible(boolean keepFullyVisible)
void
setLookAndFeel(LookAndFeel laf)
Sets display options for the painter based on the provided LookAndFeel.void
setMarkerWidth(int width)
void
setShowLabel(boolean show)
void
setShowLabelsForOffscreenTicks(boolean show)
void
setShowMarker(boolean show)
void
setShowMinorTicks(boolean show)
void
setShowTickLabels(boolean show)
void
setTickBufferSize(int size)
void
setTickCalculator(AxisLabelHandler ticks)
void
setTickColor(float[] color)
void
setTickLabelBufferSize(int size)
void
setTickLabelColor(float[] color)
void
setTickSize(int size)
void
updateTextRenderer()
-
Methods inherited from class com.metsci.glimpse.core.painter.base.GlimpsePainterBase
dispose, getAxis1D, getAxis2D, getBounds, getGL3, isDisposed, isVisible, paintTo, requireAxis1D, requireAxis2D, setVisible
-
-
-
-
Constructor Detail
-
NumericAxisPainter
public NumericAxisPainter(AxisLabelHandler ticks)
-
-
Method Detail
-
getTickInfo
public NumericAxisPainter.TickInfo getTickInfo(Axis1D axis, GlimpseBounds bounds)
-
setAxisLabel
public void setAxisLabel(String label)
-
setShowLabelsForOffscreenTicks
public void setShowLabelsForOffscreenTicks(boolean show)
-
setKeepLabelsForExtremaFullyVisible
public void setKeepLabelsForExtremaFullyVisible(boolean keepFullyVisible)
-
setShowTickLabels
public void setShowTickLabels(boolean show)
-
setShowLabel
public void setShowLabel(boolean show)
-
setFont
public void setFont(Font font)
-
setFont
public void setFont(Font font, boolean antialias)
-
resetFont
public void resetFont()
-
setTickSize
public void setTickSize(int size)
-
setTickBufferSize
public void setTickBufferSize(int size)
-
setTickLabelBufferSize
public void setTickLabelBufferSize(int size)
-
setAxisLabelBufferSize
public void setAxisLabelBufferSize(int size)
-
setMarkerWidth
public void setMarkerWidth(int width)
-
setShowMarker
public void setShowMarker(boolean show)
-
setTickColor
public void setTickColor(float[] color)
-
resetTickColor
public void resetTickColor()
-
setTickLabelColor
public void setTickLabelColor(float[] color)
-
setAxisLabelColor
public void setAxisLabelColor(float[] color)
-
resetLabelColors
public void resetLabelColors()
-
setShowMinorTicks
public void setShowMinorTicks(boolean show)
-
getTickCalculator
public AxisLabelHandler getTickCalculator()
-
setTickCalculator
public void setTickCalculator(AxisLabelHandler ticks)
-
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
-
updateTextRenderer
public void updateTextRenderer()
-
-