Class TaggedColorYAxisPainter
- 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.tagged.painter.TaggedColorYAxisPainter
-
- All Implemented Interfaces:
GlimpsePainter
- Direct Known Subclasses:
TaggedPartialColorYAxisPainter
public class TaggedColorYAxisPainter extends ColorYAxisPainter
A vertical (y) axis painter which displays positions of tags on top of a color scale. This axis must be added to aGlimpseAxisLayout1D
whose associated axis is aTaggedAxis1D
.- 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 TaggedColorYAxisPainter(AxisLabelHandler ticks)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
doPaintTo(GlimpseContext context)
int
getTagMaxX(int width)
int
getTagMinX(int width)
int
getTagPointerMaxX(int width)
void
setLookAndFeel(LookAndFeel laf)
Sets display options for the painter based on the provided LookAndFeel.void
setTagColor(float[] color)
void
setTagHalfWidth(int halfWidth)
void
setTagHeight(int height)
void
setTagPointerHeight(int height)
-
Methods inherited from class com.metsci.glimpse.core.axis.painter.ColorYAxisPainter
getColorBarMaxX, getColorBarMinX, setColorBarSize, setColorScale, setEnableOutline
-
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, 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
-
TaggedColorYAxisPainter
public TaggedColorYAxisPainter(AxisLabelHandler ticks)
-
-
Method Detail
-
setTagColor
public void setTagColor(float[] color)
-
setTagHalfWidth
public void setTagHalfWidth(int halfWidth)
-
setTagHeight
public void setTagHeight(int height)
-
setTagPointerHeight
public void setTagPointerHeight(int height)
-
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 classNumericAxisPainter
-
doPaintTo
public void doPaintTo(GlimpseContext context)
- Overrides:
doPaintTo
in classColorYAxisPainter
-
getTagMinX
public int getTagMinX(int width)
-
getTagMaxX
public int getTagMaxX(int width)
-
getTagPointerMaxX
public int getTagPointerMaxX(int width)
-
-