de.erichseifert.gral.plots.axes
Class LogarithmicRenderer2D

java.lang.Object
  extended by de.erichseifert.gral.plots.axes.AbstractAxisRenderer2D
      extended by 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.


Field Summary
 
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.
 
Methods inherited from class de.erichseifert.gral.plots.axes.AbstractAxisRenderer2D
getNormal, getPosition, getRendererComponent, getSetting, removeSetting, removeSettingDefault, setSetting, setSettingDefault, settingChanged
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LogarithmicRenderer2D

public LogarithmicRenderer2D()
Creates a new renderer for logarithmic scaled axes in two-dimensional space.

Method Detail

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 - Axis
value - World coordinate value to convert
extrapolate - 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 - Axis
value - View coordinate value to convert
extrapolate - 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.