com.metsci.glimpse.axis.painter
Class NumericTopXAxisPainter

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

public class NumericTopXAxisPainter
extends NumericXAxisPainter

A horizontal (x) axis with labeled ticks along the top. Suitable for an axis which sits flush along the top of a plotting area.

Author:
ulman

Field Summary
 
Fields inherited from class com.metsci.glimpse.painter.base.GlimpsePainterImpl
BYTES_PER_FLOAT, logger
 
Constructor Summary
NumericTopXAxisPainter(AxisLabelHandler tick)
           
 
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)
           
 
Methods inherited from class com.metsci.glimpse.axis.painter.NumericXAxisPainter
paintTo
 
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

NumericTopXAxisPainter

public NumericTopXAxisPainter(AxisLabelHandler tick)
Method Detail

getAxisLabelPositionY

public int getAxisLabelPositionY(int height,
                                 int textHeight)
Overrides:
getAxisLabelPositionY in class NumericXAxisPainter

getTickTextPositionY

public int getTickTextPositionY(int height,
                                int textHeight)
Overrides:
getTickTextPositionY in class NumericXAxisPainter

getTickTopY

public int getTickTopY(int height,
                       int size)
Overrides:
getTickTopY in class NumericXAxisPainter

getTickBottomY

public int getTickBottomY(int height,
                          int size)
Overrides:
getTickBottomY in class NumericXAxisPainter


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