de.erichseifert.gral.plots.axes
Class LogarithmicRenderer2D
java.lang.Object
de.erichseifert.gral.plots.axes.AbstractAxisRenderer2D
de.erichseifert.gral.plots.axes.LogarithmicRenderer2D
- All Implemented Interfaces:
- AxisRenderer, SettingsListener, SettingsStorage
public class LogarithmicRenderer2D
- extends AbstractAxisRenderer2D
Class that renders axes with a logarithmic 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 |
LogarithmicRenderer2D()
Creates a new renderer for logarithmic scaled axes in two-dimensional space. |
Method Summary |
List<Tick> |
getTicks(Axis axis)
Returns a list of all tick element on the axis. |
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. |
LogarithmicRenderer2D
public LogarithmicRenderer2D()
- Creates a new renderer for logarithmic scaled 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
getTicks
public List<Tick> getTicks(Axis axis)
- Description copied from interface:
AxisRenderer
- Returns a list of all tick element on the axis.
- Specified by:
getTicks
in interface AxisRenderer
- Overrides:
getTicks
in class AbstractAxisRenderer2D
- Parameters:
axis
- Axis
- Returns:
- A list of
Tick
instances
Copyright © 2009-2010. All Rights Reserved.