de.erichseifert.gral.plots.axes
Class LinearRenderer2D

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


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

Constructor Detail

LinearRenderer2D

public LinearRenderer2D()
Creates a new renderer for linear 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


Copyright © 2009-2010. All Rights Reserved.