com.metsci.glimpse.axis.painter
Class NumericXYAxisPainter

java.lang.Object
  extended by com.metsci.glimpse.painter.base.GlimpsePainterImpl
      extended by com.metsci.glimpse.painter.base.GlimpsePainter2D
          extended by com.metsci.glimpse.axis.painter.NumericXYAxisPainter
All Implemented Interfaces:
GlimpsePainter

public class NumericXYAxisPainter
extends GlimpsePainter2D

A floating axis plot with axes, tick marks, and labels drawn along the x and y origins. If the axes are translated such that the x or y origin is not visible, the tick marks will stick along the top or bottom of the screen as appropriate.

Author:
ulman
See Also:
FunctionPlotExample

Field Summary
 
Fields inherited from class com.metsci.glimpse.painter.base.GlimpsePainterImpl
BYTES_PER_FLOAT, logger
 
Constructor Summary
NumericXYAxisPainter()
           
NumericXYAxisPainter(AxisLabelHandler ticksX, AxisLabelHandler ticksY)
           
 
Method Summary
 void dispose(javax.media.opengl.GLContext context)
           
 void paintTo(GlimpseContext context, GlimpseBounds bounds, Axis2D axis)
           
 void setFont(java.awt.Font font)
           
 void setFont(java.awt.Font font, boolean antialias)
           
 NumericXYAxisPainter setLineColor(float[] rgba)
           
 NumericXYAxisPainter setLineColor(float r, float g, float b, float a)
           
 NumericXYAxisPainter setLockBottom(boolean lock)
           
 NumericXYAxisPainter setLockLeft(boolean lock)
           
 NumericXYAxisPainter setLockRight(boolean lock)
           
 NumericXYAxisPainter setLockTop(boolean lock)
           
 NumericXYAxisPainter setShowHorizontalTicks(boolean show)
           
 NumericXYAxisPainter setShowLabelsNearOrigin(boolean show)
           
 NumericXYAxisPainter setShowOriginLabel(boolean show)
           
 NumericXYAxisPainter setShowOriginLines(boolean show)
           
 NumericXYAxisPainter setShowVerticalTicks(boolean show)
           
 NumericXYAxisPainter setTextColor(float[] rgba)
           
 
Methods inherited from class com.metsci.glimpse.painter.base.GlimpsePainter2D
paintTo
 
Methods inherited from class com.metsci.glimpse.painter.base.GlimpsePainterImpl
dispose, isDisposed, isVisible, paintTo, setErrorHandling, setLookAndFeel, setVisible
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NumericXYAxisPainter

public NumericXYAxisPainter(AxisLabelHandler ticksX,
                            AxisLabelHandler ticksY)

NumericXYAxisPainter

public NumericXYAxisPainter()
Method Detail

setFont

public void setFont(java.awt.Font font)

setFont

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

setTextColor

public NumericXYAxisPainter setTextColor(float[] rgba)

setLineColor

public NumericXYAxisPainter setLineColor(float r,
                                         float g,
                                         float b,
                                         float a)

setLockLeft

public NumericXYAxisPainter setLockLeft(boolean lock)

setLockRight

public NumericXYAxisPainter setLockRight(boolean lock)

setLockBottom

public NumericXYAxisPainter setLockBottom(boolean lock)

setLockTop

public NumericXYAxisPainter setLockTop(boolean lock)

setShowOriginLabel

public NumericXYAxisPainter setShowOriginLabel(boolean show)

setLineColor

public NumericXYAxisPainter setLineColor(float[] rgba)

setShowVerticalTicks

public NumericXYAxisPainter setShowVerticalTicks(boolean show)

setShowHorizontalTicks

public NumericXYAxisPainter setShowHorizontalTicks(boolean show)

setShowLabelsNearOrigin

public NumericXYAxisPainter setShowLabelsNearOrigin(boolean show)

setShowOriginLines

public NumericXYAxisPainter setShowOriginLines(boolean show)

paintTo

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

dispose

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


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