public class LinearRenderer2D extends AbstractAxisRenderer2D
Constructor and Description |
---|
LinearRenderer2D()
Creates a new renderer for linear axes in two-dimensional space.
|
Modifier and Type | Method and Description |
---|---|
protected void |
createTicks(java.util.List<Tick> ticks,
Axis axis,
double min,
double max,
java.util.Set<java.lang.Double> tickPositions,
boolean isAutoSpacing)
Adds minor and major ticks to a list of ticks.
|
java.lang.Number |
viewToWorld(Axis axis,
double value,
boolean extrapolate)
Converts a view (screen) coordinate value to a world (axis) coordinate
value.
|
double |
worldToView(Axis axis,
java.lang.Number value,
boolean extrapolate)
Converts a world (axis) coordinate value to a view (screen) coordinate
value.
|
createTicksCustom, evaluateShape, getCustomTicks, getIntersection, getLabel, getLabelColor, getLabelDistance, getLabelFont, getLabelRotation, getMinorTickAlignment, getMinorTickColor, getMinorTickLength, getMinorTicksCount, getMinorTickStroke, getNormal, getPosition, getRendererComponent, getShape, getShapeColor, getShapeLength, getShapeStroke, getTick, getTickAlignment, getTickColor, getTickFont, getTickLabelDistance, getTickLabelDistanceAbsolute, getTickLabelFormat, getTickLabelRotation, getTickLength, getTickLengthAbsolute, getTickMinorLengthAbsolute, getTicks, getTickSpacing, getTickStroke, isMinorTicksVisible, isShapeDirectionSwapped, isShapeNormalOrientationClockwise, isShapeVisible, isTickLabelsOutside, isTickLabelsVisible, isTicksAutoSpaced, isTicksVisible, setCustomTicks, setIntersection, setLabel, setLabelColor, setLabelDistance, setLabelFont, setLabelRotation, 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
public LinearRenderer2D()
public double worldToView(Axis axis, java.lang.Number value, boolean extrapolate)
axis
- Axisvalue
- World coordinate value to convertextrapolate
- Option to activate extrapolation value that are not
on the axispublic java.lang.Number viewToWorld(Axis axis, double value, boolean extrapolate)
axis
- Axisvalue
- View coordinate value to convertextrapolate
- Option to activate extrapolation value that are not
on the axisprotected void createTicks(java.util.List<Tick> ticks, Axis axis, double min, double max, java.util.Set<java.lang.Double> tickPositions, boolean isAutoSpacing)
AbstractAxisRenderer2D
createTicks
in class AbstractAxisRenderer2D
ticks
- List of ticksaxis
- Axismin
- Minimum value of axismax
- Maximum value of axistickPositions
- Set of tick positionsisAutoSpacing
- Use automatic scaling