public class AxisRenderer3D extends AxisRenderer<float[]> implements DataUnitsTransformer<float[],Double,Double>
config| Constructor and Description |
|---|
AxisRenderer3D()
Default constructor sets some default axis values
|
| Modifier and Type | Method and Description |
|---|---|
Double |
calculatePosition(Double units)
For a given coordinate in the units of the data, will calculate
the render coordinates
|
Double |
calculateUnitsAt(Double position)
Calculates the data unit coordinate at the given render coordinates
|
void |
drawAxis(AxisConfig<float[]> config)
Draw the major axis
|
void |
drawAxisLabel(AxisConfig<float[]> config)
Draw the axis label
|
void |
drawMajorTick(double location,
AxisConfig<float[]> config)
Draw a tick on the axis at the given location
|
void |
drawMajorTickGridline(double location,
AxisConfig<float[]> config)
Draw a major grid line on the vis
|
void |
drawMinorTick(double location,
AxisConfig<float[]> config)
Draw a minor tick on the axis
|
void |
drawMinorTickGridline(double location,
AxisConfig<float[]> config)
Draw a minor grid on the vis
|
Double |
scaleDimension(Double dimension)
Given a specific data dimension, calculates a render dimension.
|
void |
setGLAD(javax.media.opengl.GLAutoDrawable glad) |
void |
setGridDirection(int i) |
getConfig, nearestHigherMajorTick, nearestLowerMajorTick, precalc, renderAxis, setConfigclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitprecalcpublic AxisRenderer3D()
public void drawAxis(AxisConfig<float[]> config)
AxisRendererdrawAxis in class AxisRenderer<float[]>config - The axis configurationpublic void drawAxisLabel(AxisConfig<float[]> config)
AxisRendererdrawAxisLabel in class AxisRenderer<float[]>config - The axis configurationpublic void drawMajorTick(double location, AxisConfig<float[]> config)
AxisRendererdrawMajorTick in class AxisRenderer<float[]>location - The location (in data units)config - The configpublic void drawMajorTickGridline(double location, AxisConfig<float[]> config)
AxisRendererdrawMajorTickGridline in class AxisRenderer<float[]>location - The location (in data units)config - The configpublic void drawMinorTick(double location, AxisConfig<float[]> config)
AxisRendererdrawMinorTick in class AxisRenderer<float[]>location - The location (in data units)config - The configurationpublic void drawMinorTickGridline(double location, AxisConfig<float[]> config)
AxisRendererdrawMinorTickGridline in class AxisRenderer<float[]>location - The location (in data units)config - The axis configurationpublic void setGLAD(javax.media.opengl.GLAutoDrawable glad)
glad - public Double calculatePosition(Double units)
DataUnitsTransformercalculatePosition in interface DataUnitsTransformer<float[],Double,Double>units - The unit to convert to render coordinatespublic Double calculateUnitsAt(Double position)
DataUnitsTransformercalculateUnitsAt in interface DataUnitsTransformer<float[],Double,Double>position - The data rendered position to convertpublic void setGridDirection(int i)
i - public Double scaleDimension(Double dimension)
DataUnitsTransformerscaleDimension in interface DataUnitsTransformer<float[],Double,Double>dimension - The units/data dimension