Class ColorRightYAxisPainter
- java.lang.Object
-
- com.metsci.glimpse.core.painter.base.GlimpsePainterBase
-
- com.metsci.glimpse.core.axis.painter.NumericAxisPainter
-
- com.metsci.glimpse.core.axis.painter.NumericYAxisPainter
-
- com.metsci.glimpse.core.axis.painter.ColorYAxisPainter
-
- com.metsci.glimpse.core.axis.painter.ColorRightYAxisPainter
-
- All Implemented Interfaces:
GlimpsePainter
public class ColorRightYAxisPainter extends ColorYAxisPainter
A vertical (y) axis with a color bar and labeled ticks along the right hand side. Suitable for a color bar which should sit flush against the right hand side of a plot.- Author:
- ulman
- See Also:
com.metsci.glimpse.examples.axis.MultiAxisPlotExample
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.metsci.glimpse.core.axis.painter.NumericAxisPainter
NumericAxisPainter.TickInfo
-
-
Constructor Summary
Constructors Constructor Description ColorRightYAxisPainter(AxisLabelHandler ticks)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getAxisLabelPositionX(int width, int textHeight)
float
getColorBarMaxX(int width)
float
getColorBarMinX(int width)
int
getTickLeftX(int width, int size)
int
getTickRightX(int width, int size)
int
getTickTextPositionX(int width, int textWidth)
-
Methods inherited from class com.metsci.glimpse.core.axis.painter.ColorYAxisPainter
doPaintTo, setColorBarSize, setColorScale, setEnableOutline
-
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
-
ColorRightYAxisPainter
public ColorRightYAxisPainter(AxisLabelHandler ticks)
-
-
Method Detail
-
getAxisLabelPositionX
public int getAxisLabelPositionX(int width, int textHeight)
- Overrides:
getAxisLabelPositionX
in classNumericYAxisPainter
-
getTickTextPositionX
public int getTickTextPositionX(int width, int textWidth)
- Overrides:
getTickTextPositionX
in classNumericYAxisPainter
-
getTickRightX
public int getTickRightX(int width, int size)
- Overrides:
getTickRightX
in classNumericYAxisPainter
-
getTickLeftX
public int getTickLeftX(int width, int size)
- Overrides:
getTickLeftX
in classNumericYAxisPainter
-
getColorBarMinX
public float getColorBarMinX(int width)
- Overrides:
getColorBarMinX
in classColorYAxisPainter
-
getColorBarMaxX
public float getColorBarMaxX(int width)
- Overrides:
getColorBarMaxX
in classColorYAxisPainter
-
-