com.metsci.glimpse.axis.painter
Class ColorXAxisPainter

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.ColorXAxisPainter
All Implemented Interfaces:
GlimpsePainter
Direct Known Subclasses:
TaggedColorXAxisPainter

public class ColorXAxisPainter
extends NumericXAxisPainter

A horizontal (x) axis with a color bar and labeled ticks along the bottom.

Author:
ulman
See Also:
MultiAxisPlotExample

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

ColorXAxisPainter

public ColorXAxisPainter(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 NumericXAxisPainter

getColorBarMinY

public int getColorBarMinY(int height)

getColorBarMaxY

public int getColorBarMaxY(int height)


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