diff --git a/org.eclipse.swtchart/src/org/eclipse/swtchart/IAxis.java b/org.eclipse.swtchart/src/org/eclipse/swtchart/IAxis.java index 08b966bb..3013f962 100644 --- a/org.eclipse.swtchart/src/org/eclipse/swtchart/IAxis.java +++ b/org.eclipse.swtchart/src/org/eclipse/swtchart/IAxis.java @@ -288,4 +288,19 @@ public enum Position { void setDrawPositionMarker(boolean drawPositionMarker); void updatePositionMarker(MouseEvent e); -} \ No newline at end of file + + /** + * Sets the minimum and maximum limits for the axis range. These limits + * are enforced during dynamic operations such as {@code adjustRange}, + * {@code scroll}, and {@code zoom}. However, they do not restrict + * manual range settings through the {@link #setRange(Range, boolean)} method. + * + * @param minRange + * the minimum value allowed for the axis range. + * @param maxRange + * the maximum value allowed for the axis range. + * @throws IllegalArgumentException + * if {@code minRange} is greater than or equal to {@code maxRange}. + */ + void setLimitRange(double minRange, double maxRange); +} diff --git a/org.eclipse.swtchart/src/org/eclipse/swtchart/internal/axis/Axis.java b/org.eclipse.swtchart/src/org/eclipse/swtchart/internal/axis/Axis.java index 3321043a..45982bf2 100644 --- a/org.eclipse.swtchart/src/org/eclipse/swtchart/internal/axis/Axis.java +++ b/org.eclipse.swtchart/src/org/eclipse/swtchart/internal/axis/Axis.java @@ -860,19 +860,7 @@ public void updatePositionMarker(MouseEvent e) { tick.getAxisPositionMarker().update(e.x, e.y); } - /** - * Sets the minimum and maximum limits for the axis range. These limits - * are enforced during dynamic operations such as {@code adjustRange}, - * {@code scroll}, and {@code zoom}. However, they do not restrict - * manual range settings through the {@link #setRange(Range, boolean)} method. - * - * @param minRange - * the minimum value allowed for the axis range. - * @param maxRange - * the maximum value allowed for the axis range. - * @throws IllegalArgumentException - * if {@code minRange} is greater than or equal to {@code maxRange}. - */ + @Override public void setLimitRange(double minRange, double maxRange) { if(minRange >= maxRange) {