com.metsci.glimpse.axis.painter
Class NumericAxisPainter

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
All Implemented Interfaces:
GlimpsePainter
Direct Known Subclasses:
NumericXAxisPainter, NumericYAxisPainter

public abstract class NumericAxisPainter
extends GlimpsePainter1D

A simple axis painter which displays labeled ticks at regular intervals along the length of the axis. The ticks are spaced so that they fall on round numbered values.

Author:
ulman

Field Summary
 
Fields inherited from class com.metsci.glimpse.painter.base.GlimpsePainterImpl
BYTES_PER_FLOAT, logger
 
Constructor Summary
NumericAxisPainter(AxisLabelHandler ticks)
           
 
Method Summary
 void dispose(javax.media.opengl.GLContext context)
           
 AxisLabelHandler getTickCalculator()
           
 void setAxisLabel(java.lang.String label)
           
 void setAxisLabelBufferSize(int size)
           
 void setAxisLabelColor(float[] color)
           
 void setFont(java.awt.Font font)
           
 void setFont(java.awt.Font font, boolean antialias)
           
 void setKeepLabelsForExtremaFullyVisible(boolean keepFullyVisible)
           
 void setLookAndFeel(LookAndFeel laf)
          Sets display options for the painter based on the provided LookAndFeel.
 void setMarkerWidth(int width)
           
 void setShowLabel(boolean show)
           
 void setShowLabelsForOffscreenTicks(boolean show)
           
 void setShowMarker(boolean show)
           
 void setShowMinorTicks(boolean show)
           
 void setTickBufferSize(int size)
           
 void setTickColor(float[] color)
           
 void setTickLabelBufferSize(int size)
           
 void setTickLabelColor(float[] color)
           
 void setTickSize(int size)
           
 
Methods inherited from class com.metsci.glimpse.painter.base.GlimpsePainter1D
paintTo, 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

NumericAxisPainter

public NumericAxisPainter(AxisLabelHandler ticks)
Method Detail

setAxisLabel

public void setAxisLabel(java.lang.String label)

setShowLabelsForOffscreenTicks

public void setShowLabelsForOffscreenTicks(boolean show)

setKeepLabelsForExtremaFullyVisible

public void setKeepLabelsForExtremaFullyVisible(boolean keepFullyVisible)

setShowLabel

public void setShowLabel(boolean show)

setFont

public void setFont(java.awt.Font font)

setFont

public void setFont(java.awt.Font font,
                    boolean antialias)

setTickSize

public void setTickSize(int size)

setTickBufferSize

public void setTickBufferSize(int size)

setTickLabelBufferSize

public void setTickLabelBufferSize(int size)

setAxisLabelBufferSize

public void setAxisLabelBufferSize(int size)

setMarkerWidth

public void setMarkerWidth(int width)

setShowMarker

public void setShowMarker(boolean show)

setTickColor

public void setTickColor(float[] color)

setTickLabelColor

public void setTickLabelColor(float[] color)

setAxisLabelColor

public void setAxisLabelColor(float[] color)

setShowMinorTicks

public void setShowMinorTicks(boolean show)

getTickCalculator

public AxisLabelHandler getTickCalculator()

setLookAndFeel

public void setLookAndFeel(LookAndFeel laf)
Description copied from interface: GlimpsePainter
Sets display options for the painter based on the provided LookAndFeel.

Specified by:
setLookAndFeel in interface GlimpsePainter
Overrides:
setLookAndFeel in class GlimpsePainterImpl

dispose

public void dispose(javax.media.opengl.GLContext context)


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