diff --git a/src/main/java/de/tudresden/inf/mci/brailleplot/rendering/Axis.java b/src/main/java/de/tudresden/inf/mci/brailleplot/rendering/Axis.java index 2fe6ce12e2ed4bedc65c423555cf3b84c2b601f4..aa6ddc41ad0328221b7ff8981c40cd0d32e420bc 100644 --- a/src/main/java/de/tudresden/inf/mci/brailleplot/rendering/Axis.java +++ b/src/main/java/de/tudresden/inf/mci/brailleplot/rendering/Axis.java @@ -140,7 +140,7 @@ public class Axis implements Renderable { * label (positive values = labels toward positive value range, 0 = at coordinate origin, negative values = labels * toward negative value range). The value is a String representing the label text. * Not every position must be supplied with a label. - * @return A {@link Map} containing all labels. + * @param labels A {@link Map} containing all labels. */ public void setLabels(final Map<Integer, String> labels) { mLabels = Objects.requireNonNull(labels); diff --git a/src/main/java/de/tudresden/inf/mci/brailleplot/rendering/FunctionalRenderingBase.java b/src/main/java/de/tudresden/inf/mci/brailleplot/rendering/FunctionalRenderingBase.java index 336fab1ed26b0d3ec7ff4b8e71c1400d60dbc130..1134cadd814abdf4345d225b09cf3d6a39de07b6 100644 --- a/src/main/java/de/tudresden/inf/mci/brailleplot/rendering/FunctionalRenderingBase.java +++ b/src/main/java/de/tudresden/inf/mci/brailleplot/rendering/FunctionalRenderingBase.java @@ -5,7 +5,8 @@ import java.util.Objects; /** * FunctionalRenderingBase. This class acts as a wrapper for multiple {@link FunctionalRasterizer} instances. - * The rasterizer instances can be registered at runtime. The main purpose of the class is to take diagram representations of any type and select the correct concrete rasterizer. + * The rasterizer instances can be registered at runtime. The main purpose of the class is to take {@link Renderable} + * representations of any type and select the correct concrete rasterizer. * @author Leonard Kupper * @version 2019.07.22 */ @@ -24,6 +25,7 @@ public class FunctionalRenderingBase { * @throws InsufficientRenderingAreaException If too few space is available on the currently set {@link RasterCanvas} * to display the amount of data contained in the given renderable representation. * @exception IllegalStateException If no {@link RasterCanvas} is set. Call {@link #setRasterCanvas(RasterCanvas)} beforehand. + * @exception IllegalArgumentException If no rasterizer is registered for the given renderable type. */ public void rasterize(final Renderable renderData) throws InsufficientRenderingAreaException { // First, check if a raster is set. No rasterizing without raster. diff --git a/src/main/java/de/tudresden/inf/mci/brailleplot/rendering/UniformTextureBarChartRasterizer.java b/src/main/java/de/tudresden/inf/mci/brailleplot/rendering/UniformTextureBarChartRasterizer.java index f2761e7470b0918af170fd3f8a41f9e7d10731e7..23eb596c54c3d7a8d109919a8cf44c4c4e62ea3e 100644 --- a/src/main/java/de/tudresden/inf/mci/brailleplot/rendering/UniformTextureBarChartRasterizer.java +++ b/src/main/java/de/tudresden/inf/mci/brailleplot/rendering/UniformTextureBarChartRasterizer.java @@ -245,6 +245,7 @@ final class UniformTextureBarChartRasterizer implements Rasterizer<BarChart> { * @param thickness The thickness of the bar in dots. * @param categoryName The caption to be displayed next to the bar. * @return The y position of the next reference cell for the next bar. + * @throws InsufficientRenderingAreaException If the underlying text rasterizer throws it while rasterizing the bar caption. */ private int drawHorizontalBar(final int cellX, final int cellY, final int length, final int thickness, final String categoryName) throws InsufficientRenderingAreaException {