Class TaggedColorXAxisPainter
- 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.ColorXAxisPainter
-
- com.metsci.glimpse.core.axis.tagged.painter.TaggedColorXAxisPainter
-
- All Implemented Interfaces:
GlimpsePainter
- Direct Known Subclasses:
TaggedPartialColorXAxisPainter
public class TaggedColorXAxisPainter extends ColorXAxisPainter
A horizontal (x) 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 TaggedColorXAxisPainter(AxisLabelHandler ticks)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
doPaintTo(GlimpseContext context)
int
getTagMaxY(int height)
int
getTagMinY(int height)
int
getTagPointerMaxY(int height)
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.ColorXAxisPainter
setColorBarSize, setColorScale, setEnableOutline
-
Methods inherited from class com.metsci.glimpse.core.axis.painter.NumericXAxisPainter
getAxisLabelPositionY, getTickBottomY, getTickTextPositionY, getTickTopY
-
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
-
TaggedColorXAxisPainter
public TaggedColorXAxisPainter(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 classColorXAxisPainter
-
getTagMinY
public int getTagMinY(int height)
-
getTagMaxY
public int getTagMaxY(int height)
-
getTagPointerMaxY
public int getTagPointerMaxY(int height)
-
-