com.metsci.glimpse.axis.painter
Class NumericXYAxisPainter
java.lang.Object
com.metsci.glimpse.painter.base.GlimpsePainterImpl
com.metsci.glimpse.painter.base.GlimpsePainter2D
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
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NumericXYAxisPainter
public NumericXYAxisPainter(AxisLabelHandler ticksX,
AxisLabelHandler ticksY)
NumericXYAxisPainter
public NumericXYAxisPainter()
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.