From 360b0b152988bcebd463c1b4fc45bc8f16fed417 Mon Sep 17 00:00:00 2001 From: Alexander Krimm Date: Thu, 23 Sep 2021 10:14:57 +0200 Subject: [PATCH] Typos and formatting --- .../src/main/java/de/gsi/chart/axes/spi/AbstractAxis.java | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/chartfx-chart/src/main/java/de/gsi/chart/axes/spi/AbstractAxis.java b/chartfx-chart/src/main/java/de/gsi/chart/axes/spi/AbstractAxis.java index a06ac84b3..9510b03a9 100644 --- a/chartfx-chart/src/main/java/de/gsi/chart/axes/spi/AbstractAxis.java +++ b/chartfx-chart/src/main/java/de/gsi/chart/axes/spi/AbstractAxis.java @@ -338,7 +338,7 @@ public void invalidateCaches() { } /** - * Called when data has changed and the range may not be valid any more. This is only called by the chart if + * Called when data has changed and the range may not be valid anymore. This is only called by the chart if * isAutoRanging() returns true. If we are auto ranging it will cause layout to be requested and auto ranging to * happen on next layout pass. * @@ -439,11 +439,9 @@ public boolean setMin(final double value) { * @return Range information, this is implementation dependent */ protected AxisRange autoRange(final double length) { - // guess a sensible starting size for label size, that is approx 2 lines - // vertically or 2 charts horizontally + // guess a sensible starting size for label size, that is approx 2 lines vertically or 2 charts horizontally if (isAutoRanging() || isAutoGrowRanging()) { - // guess a sensible starting size for label size, that is approx 2 - // lines vertically or 2 charts horizontally + // guess a sensible starting size for label size, that is approx 2 lines vertically or 2 charts horizontally final double labelSize = getTickLabelFont().getSize() * 1.2; // N.B. was '2' in earlier implementations return autoRange(getAutoRange().getMin(), getAutoRange().getMax(), length, labelSize); }