Class ColorYAxisPainter
- 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
-
- All Implemented Interfaces:
GlimpsePainter
- Direct Known Subclasses:
ColorRightYAxisPainter
,TaggedColorYAxisPainter
public class ColorYAxisPainter extends NumericYAxisPainter
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
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.metsci.glimpse.core.axis.painter.NumericAxisPainter
NumericAxisPainter.TickInfo
-
-
Constructor Summary
Constructors Constructor Description ColorYAxisPainter(AxisLabelHandler ticks)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
doPaintTo(GlimpseContext context)
float
getColorBarMaxX(int width)
float
getColorBarMinX(int width)
void
setColorBarSize(int size)
void
setColorScale(ColorTexture1D colorTexture)
void
setEnableOutline(boolean doOutline)
-
Methods inherited from class com.metsci.glimpse.core.axis.painter.NumericYAxisPainter
getAxisLabelPositionX, getTickLeftX, getTickRightX, getTickTextPositionX
-
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
-
ColorYAxisPainter
public ColorYAxisPainter(AxisLabelHandler ticks)
-
-
Method Detail
-
setEnableOutline
public void setEnableOutline(boolean doOutline)
-
setColorScale
public void setColorScale(ColorTexture1D colorTexture)
-
setColorBarSize
public void setColorBarSize(int size)
-
doPaintTo
public void doPaintTo(GlimpseContext context)
- Overrides:
doPaintTo
in classNumericYAxisPainter
-
getColorBarMinX
public float getColorBarMinX(int width)
-
getColorBarMaxX
public float getColorBarMaxX(int width)
-
-