de.erichseifert.gral.plots.axes
Class LinearRenderer2D
java.lang.Object
de.erichseifert.gral.plots.axes.AbstractAxisRenderer2D
de.erichseifert.gral.plots.axes.LinearRenderer2D
- All Implemented Interfaces:
- AxisRenderer, SettingsListener, SettingsStorage
public class LinearRenderer2D
- extends AbstractAxisRenderer2D
Class that renders axes with a linear scale in two dimensional space.
Fields inherited from interface de.erichseifert.gral.plots.axes.AxisRenderer |
INTERSECTION, LABEL, LABEL_COLOR, LABEL_DISTANCE, LABEL_ROTATION, SHAPE, SHAPE_COLOR, SHAPE_DIRECTION_SWAPPED, SHAPE_NORMAL_ORIENTATION_CLOCKWISE, SHAPE_STROKE, SHAPE_VISIBLE, TICK_LABELS, TICK_LABELS_DISTANCE, TICK_LABELS_FORMAT, TICK_LABELS_OUTSIDE, TICK_LABELS_ROTATION, TICKS, TICKS_ALIGNMENT, TICKS_COLOR, TICKS_CUSTOM, TICKS_LENGTH, TICKS_MINOR, TICKS_MINOR_ALIGNMENT, TICKS_MINOR_COLOR, TICKS_MINOR_COUNT, TICKS_MINOR_LENGTH, TICKS_MINOR_STROKE, TICKS_SPACING, TICKS_STROKE |
Constructor Summary |
LinearRenderer2D()
Creates a new renderer for linear axes in two-dimensional space. |
Method Summary |
Number |
viewToWorld(Axis axis,
double value,
boolean extrapolate)
Converts a view (screen) coordinate value to a world (axis) coordinate value. |
double |
worldToView(Axis axis,
Number value,
boolean extrapolate)
Converts a world (axis) coordinate value to a view (screen) coordinate value. |
LinearRenderer2D
public LinearRenderer2D()
- Creates a new renderer for linear axes in two-dimensional space.
worldToView
public double worldToView(Axis axis,
Number value,
boolean extrapolate)
- Description copied from interface:
AxisRenderer
- Converts a world (axis) coordinate value to a view (screen) coordinate value.
- Parameters:
axis
- Axisvalue
- World coordinate value to convertextrapolate
- Option to activate extrapolation value that are not on the axis
- Returns:
- Screen coordinate value
viewToWorld
public Number viewToWorld(Axis axis,
double value,
boolean extrapolate)
- Description copied from interface:
AxisRenderer
- Converts a view (screen) coordinate value to a world (axis) coordinate value.
- Parameters:
axis
- Axisvalue
- View coordinate value to convertextrapolate
- Option to activate extrapolation value that are not on the axis
- Returns:
- World coordinate value
Copyright © 2009-2010. All Rights Reserved.