Class AxisPair<ST extends AxesChartStyler, S extends AxesChartSeries>
java.lang.Object
org.knowm.xchart.internal.chartpart.AxisPair<ST,S>
- All Implemented Interfaces:
ChartPart
public class AxisPair<ST extends AxesChartStyler, S extends AxesChartSeries>
extends Object
implements ChartPart
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Rectangle2D.Doubleprivate final Rectangle2D.DoubleFields inherited from interface ChartPart
SOLID_STROKE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) Rectangle2D.Double(package private) Rectangle2D.DoublegetXAxis()getYAxis()getYAxis(int yIndex) private voidHere we can add special case min max calculations and take care of manual min max settings.private voidoverrideMinMaxForYAxis(Axis yAxis) voidpaint(Graphics2D g) private voidprivate voidSets a default minimum and maximum on all axes, for cases where there are no series to compute a range from.
-
Field Details
-
chart
-
xAxis
-
yAxis
-
yAxisMap
private final TreeMap<Integer, Axis<ST extends AxesChartStyler, S extends AxesChartSeries>> yAxisMap -
leftYAxisBounds
-
rightYAxisBounds
-
leftMainYAxis
-
rightMainYAxis
-
-
Constructor Details
-
AxisPair
-
-
Method Details
-
paint
-
prepareForPaint
private void prepareForPaint() -
setDefaultAxisMinMax
private void setDefaultAxisMinMax()Sets a default minimum and maximum on all axes, for cases where there are no series to compute a range from. -
getYAxis
-
overrideMinMaxForXAxis
private void overrideMinMaxForXAxis()Here we can add special case min max calculations and take care of manual min max settings. -
overrideMinMaxForYAxis
-
getXAxis
-
getYAxis
-
getBounds
-
getLeftYAxisBounds
Rectangle2D.Double getLeftYAxisBounds() -
getRightYAxisBounds
Rectangle2D.Double getRightYAxisBounds() -
getLeftMainYAxis
-
getRightMainYAxis
-