Class NumericXAxisPainter
- java.lang.Object
-
- com.metsci.glimpse.core.painter.base.GlimpsePainterBase
-
- com.metsci.glimpse.core.axis.painter.NumericAxisPainter
-
- com.metsci.glimpse.core.axis.painter.NumericXAxisPainter
-
- All Implemented Interfaces:
GlimpsePainter
- Direct Known Subclasses:
ColorXAxisPainter
,NumericTopXAxisPainter
public class NumericXAxisPainter extends NumericAxisPainter
A horizontal (x) axis with labeled ticks along the bottom.- Author:
- ulman
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.metsci.glimpse.core.axis.painter.NumericAxisPainter
NumericAxisPainter.TickInfo
-
-
Constructor Summary
Constructors Constructor Description NumericXAxisPainter(AxisLabelHandler ticks)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
doPaintTo(GlimpseContext context)
int
getAxisLabelPositionY(int height, int textHeight)
int
getTickBottomY(int height, int size)
int
getTickTextPositionY(int height, int textHeight)
int
getTickTopY(int height, int size)
-
Methods inherited from class com.metsci.glimpse.core.axis.painter.NumericAxisPainter
getTickCalculator, getTickInfo, resetFont, resetLabelColors, resetTickColor, setAxisLabel, setAxisLabelBufferSize, setAxisLabelColor, setFont, setFont, setKeepLabelsForExtremaFullyVisible, setLookAndFeel, setMarkerWidth, setShowLabel, setShowLabelsForOffscreenTicks, setShowMarker, setShowMinorTicks, setShowTickLabels, setTickBufferSize, setTickCalculator, setTickColor, setTickLabelBufferSize, setTickLabelColor, setTickSize, 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
-
NumericXAxisPainter
public NumericXAxisPainter(AxisLabelHandler ticks)
-
-
Method Detail
-
doPaintTo
public void doPaintTo(GlimpseContext context)
-
getAxisLabelPositionY
public int getAxisLabelPositionY(int height, int textHeight)
-
getTickTextPositionY
public int getTickTextPositionY(int height, int textHeight)
-
getTickTopY
public int getTickTopY(int height, int size)
-
getTickBottomY
public int getTickBottomY(int height, int size)
-
-