com.metsci.glimpse.axis.painter
Class ColorRightYAxisPainter

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
                      extended by com.metsci.glimpse.axis.painter.ColorRightYAxisPainter
All Implemented Interfaces:
GlimpsePainter

public class ColorRightYAxisPainter
extends ColorYAxisPainter

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
See Also:
MultiAxisPlotExample

Field Summary
 
Fields inherited from class com.metsci.glimpse.painter.base.GlimpsePainterImpl
BYTES_PER_FLOAT, logger
 
Constructor Summary
ColorRightYAxisPainter(AxisLabelHandler ticks)
           
 
Method Summary
 int getAxisLabelPositionX(int width, int textHeight)
           
 int getColorBarMaxX(int width)
           
 int getColorBarMinX(int width)
           
 int getTickLeftX(int width, int size)
           
 int getTickRightX(int width, int size)
           
 int getTickTextPositionX(int width, int textWidth)
           
 
Methods inherited from class com.metsci.glimpse.axis.painter.ColorYAxisPainter
paintTo, setColorBarSize, setColorScale, setEnableOutline
 
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

ColorRightYAxisPainter

public ColorRightYAxisPainter(AxisLabelHandler ticks)
Method Detail

getAxisLabelPositionX

public int getAxisLabelPositionX(int width,
                                 int textHeight)
Overrides:
getAxisLabelPositionX in class NumericYAxisPainter

getTickTextPositionX

public int getTickTextPositionX(int width,
                                int textWidth)
Overrides:
getTickTextPositionX in class NumericYAxisPainter

getTickRightX

public int getTickRightX(int width,
                         int size)
Overrides:
getTickRightX in class NumericYAxisPainter

getTickLeftX

public int getTickLeftX(int width,
                        int size)
Overrides:
getTickLeftX in class NumericYAxisPainter

getColorBarMinX

public int getColorBarMinX(int width)
Overrides:
getColorBarMinX in class ColorYAxisPainter

getColorBarMaxX

public int getColorBarMaxX(int width)
Overrides:
getColorBarMaxX in class ColorYAxisPainter


Copyright © 2012 Metron, Inc.. All Rights Reserved.