com.metsci.glimpse.axis.painter
Class ColorYAxisPainter
java.lang.Object
com.metsci.glimpse.painter.base.GlimpsePainterImpl
com.metsci.glimpse.painter.base.GlimpsePainter1D
com.metsci.glimpse.axis.painter.NumericAxisPainter
com.metsci.glimpse.axis.painter.NumericYAxisPainter
com.metsci.glimpse.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
Methods inherited from class com.metsci.glimpse.axis.painter.NumericAxisPainter |
dispose, getTickCalculator, setAxisLabel, setAxisLabelBufferSize, setAxisLabelColor, setFont, setFont, setKeepLabelsForExtremaFullyVisible, setLookAndFeel, setMarkerWidth, setShowLabel, setShowLabelsForOffscreenTicks, setShowMarker, setShowMinorTicks, setTickBufferSize, setTickColor, setTickLabelBufferSize, setTickLabelColor, setTickSize |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ColorYAxisPainter
public ColorYAxisPainter(AxisLabelHandler ticks)
setEnableOutline
public void setEnableOutline(boolean doOutline)
setColorScale
public void setColorScale(ColorTexture1D colorTexture)
setColorBarSize
public void setColorBarSize(int size)
paintTo
public void paintTo(GlimpseContext context,
GlimpseBounds bounds,
Axis1D axis)
- Overrides:
paintTo
in class NumericYAxisPainter
getColorBarMinX
public int getColorBarMinX(int width)
getColorBarMaxX
public int getColorBarMaxX(int width)
Copyright © 2012 Metron, Inc.. All Rights Reserved.