com.metsci.glimpse.axis.painter
Class NumericYAxisPainter

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
All Implemented Interfaces:
GlimpsePainter
Direct Known Subclasses:
ColorYAxisPainter, NumericRightYAxisPainter, NumericRotatedYAxisPainter, TaggedNumericYAxisPainter

public class NumericYAxisPainter
extends NumericAxisPainter

A vertical (y) axis with labeled ticks along the left side.

Author:
ulman

Field Summary
 
Fields inherited from class com.metsci.glimpse.painter.base.GlimpsePainterImpl
BYTES_PER_FLOAT, logger
 
Constructor Summary
NumericYAxisPainter(AxisLabelHandler ticks)
           
 
Method Summary
 int getAxisLabelPositionX(int width, int textHeight)
           
 int getTickLeftX(int width, int size)
           
 int getTickRightX(int width, int size)
           
 int getTickTextPositionX(int width, int textWidth)
           
 void paintTo(GlimpseContext context, GlimpseBounds bounds, Axis1D axis)
           
 
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

NumericYAxisPainter

public NumericYAxisPainter(AxisLabelHandler ticks)
Method Detail

paintTo

public void paintTo(GlimpseContext context,
                    GlimpseBounds bounds,
                    Axis1D axis)
Specified by:
paintTo in class GlimpsePainter1D

getAxisLabelPositionX

public int getAxisLabelPositionX(int width,
                                 int textHeight)

getTickTextPositionX

public int getTickTextPositionX(int width,
                                int textWidth)

getTickRightX

public int getTickRightX(int width,
                         int size)

getTickLeftX

public int getTickLeftX(int width,
                        int size)


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