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, java.io.Serializable
public class LinearRenderer2D extends AbstractAxisRenderer2D
Class that renders axes with a linear scale in two dimensional space.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor and Description LinearRenderer2D()Creates a new renderer for linear axes in two-dimensional space.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description java.lang.NumberviewToWorld(Axis axis, double value, boolean extrapolate)Converts a view (screen) coordinate value to a world (axis) coordinate value.doubleworldToView(Axis axis, java.lang.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
getCustomTicks, getIntersection, getLabel, getLabelDistance, getMinorTickAlignment, getMinorTickColor, getMinorTickLength, getMinorTicksCount, getMinorTickStroke, getNormal, getPosition, getRendererComponent, getShape, getShapeColor, getShapeStroke, getTickAlignment, getTickColor, getTickFont, getTickLabelDistance, getTickLabelFormat, getTickLabelRotation, getTickLength, getTicks, getTickSpacing, getTickStroke, isMinorTicksVisible, isShapeDirectionSwapped, isShapeNormalOrientationClockwise, isShapeVisible, isTickLabelsOutside, isTickLabelsVisible, isTicksAutoSpaced, isTicksVisible, setCustomTicks, setIntersection, setLabel, setLabelDistance, setMinorTickAlignment, setMinorTickColor, setMinorTickLength, setMinorTicksCount, setMinorTickStroke, setMinorTicksVisible, setShape, setShapeColor, setShapeDirectionSwapped, setShapeNormalOrientationClockwise, setShapeStroke, setShapeVisible, setTickAlignment, setTickColor, setTickFont, setTickLabelDistance, setTickLabelFormat, setTickLabelRotation, setTickLabelsOutside, setTickLabelsVisible, setTickLength, setTicksAutoSpaced, setTickSpacing, setTickStroke, setTicksVisible
-
-
-
-
Constructor Detail
-
LinearRenderer2D
public LinearRenderer2D()
Creates a new renderer for linear axes in two-dimensional space.
-
-
Method Detail
-
worldToView
public double worldToView(Axis axis, java.lang.Number value, boolean extrapolate)
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 java.lang.Number viewToWorld(Axis axis, double value, boolean extrapolate)
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
-
-
DataMelt 3.0 © DataMelt by jWork.ORG