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, java.io.Serializable
public class LogarithmicRenderer2D extends AbstractAxisRenderer2D
Class that renders axes with a logarithmic scale in two dimensional space.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor and Description LogarithmicRenderer2D()Creates a new renderer for logarithmic scaled axes in two-dimensional space.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description java.util.List<Tick>getTicks(Axis axis)Returns a list of all tick element on the axis.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, 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
-
LogarithmicRenderer2D
public LogarithmicRenderer2D()
Creates a new renderer for logarithmic scaled 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
-
getTicks
public java.util.List<Tick> getTicks(Axis axis)
Description copied from class:AbstractAxisRenderer2DReturns a list of all tick element on the axis.- Specified by:
getTicksin interfaceAxisRenderer- Overrides:
getTicksin classAbstractAxisRenderer2D- Parameters:
axis- Axis- Returns:
- A list of
Tickinstances
-
-
DataMelt 3.0 © DataMelt by jWork.ORG