com.metsci.glimpse.axis.painter
Class NumericXAxisPainter

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.NumericXAxisPainter
All Implemented Interfaces:
GlimpsePainter
Direct Known Subclasses:
ColorXAxisPainter, NumericTopXAxisPainter, TaggedNumericXAxisPainter

public class NumericXAxisPainter
extends NumericAxisPainter

A horizontal (x) axis with labeled ticks along the bottom.

Author:
ulman

Field Summary
 
Fields inherited from class com.metsci.glimpse.painter.base.GlimpsePainterImpl
BYTES_PER_FLOAT, logger
 
Constructor Summary
NumericXAxisPainter(AxisLabelHandler ticks)
           
 
Method Summary
 int getAxisLabelPositionY(int height, int textHeight)
           
 int getTickBottomY(int height, int size)
           
 int getTickTextPositionY(int height, int textHeight)
           
 int getTickTopY(int height, int size)
           
 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

NumericXAxisPainter

public NumericXAxisPainter(AxisLabelHandler ticks)
Method Detail

paintTo

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

getAxisLabelPositionY

public int getAxisLabelPositionY(int height,
                                 int textHeight)

getTickTextPositionY

public int getTickTextPositionY(int height,
                                int textHeight)

getTickTopY

public int getTickTopY(int height,
                       int size)

getTickBottomY

public int getTickBottomY(int height,
                          int size)


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