com.metsci.glimpse.axis.painter
Class ColorYAxisPainter

java.lang.Object
  extended by com.metsci.glimpse.painter.base.GlimpsePainterImpl
      extended by com.metsci.glimpse.painter.base.GlimpsePainter1D
          extended by com.metsci.glimpse.axis.painter.NumericAxisPainter
              extended by com.metsci.glimpse.axis.painter.NumericYAxisPainter
                  extended by 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

Field Summary
 
Fields inherited from class com.metsci.glimpse.painter.base.GlimpsePainterImpl
BYTES_PER_FLOAT, logger
 
Constructor Summary
ColorYAxisPainter(AxisLabelHandler ticks)
           
 
Method Summary
 int getColorBarMaxX(int width)
           
 int getColorBarMinX(int width)
           
 void paintTo(GlimpseContext context, GlimpseBounds bounds, Axis1D axis)
           
 void setColorBarSize(int size)
           
 void setColorScale(ColorTexture1D colorTexture)
           
 void setEnableOutline(boolean doOutline)
           
 
Methods inherited from class com.metsci.glimpse.axis.painter.NumericYAxisPainter
getAxisLabelPositionX, getTickLeftX, getTickRightX, getTickTextPositionX
 
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 com.metsci.glimpse.painter.base.GlimpsePainter1D
paintTo
 
Methods inherited from class com.metsci.glimpse.painter.base.GlimpsePainterImpl
dispose, isDisposed, isVisible, paintTo, setErrorHandling, setVisible
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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)

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.