Class NumericTopXAxisPainter
- java.lang.Object
-
- com.metsci.glimpse.core.painter.base.GlimpsePainterBase
-
- com.metsci.glimpse.core.axis.painter.NumericAxisPainter
-
- com.metsci.glimpse.core.axis.painter.NumericXAxisPainter
-
- com.metsci.glimpse.core.axis.painter.NumericTopXAxisPainter
-
- All Implemented Interfaces:
GlimpsePainter
public class NumericTopXAxisPainter extends NumericXAxisPainter
A horizontal (x) axis with labeled ticks along the top. Suitable for an axis which sits flush along the top of a plotting area.- 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 NumericTopXAxisPainter(AxisLabelHandler tick)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetAxisLabelPositionY(int height, int textHeight)intgetTickBottomY(int height, int size)intgetTickTextPositionY(int height, int textHeight)intgetTickTopY(int height, int size)-
Methods inherited from class com.metsci.glimpse.core.axis.painter.NumericXAxisPainter
doPaintTo
-
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
-
NumericTopXAxisPainter
public NumericTopXAxisPainter(AxisLabelHandler tick)
-
-
Method Detail
-
getAxisLabelPositionY
public int getAxisLabelPositionY(int height, int textHeight)- Overrides:
getAxisLabelPositionYin classNumericXAxisPainter
-
getTickTextPositionY
public int getTickTextPositionY(int height, int textHeight)- Overrides:
getTickTextPositionYin classNumericXAxisPainter
-
getTickTopY
public int getTickTopY(int height, int size)- Overrides:
getTickTopYin classNumericXAxisPainter
-
getTickBottomY
public int getTickBottomY(int height, int size)- Overrides:
getTickBottomYin classNumericXAxisPainter
-
-