From 3f8c5ac143bcd70b1ae1df7dc79b4b8fe33605eb Mon Sep 17 00:00:00 2001 From: Vincent Hennebert Date: Mon, 11 Feb 2008 18:18:13 +0000 Subject: [PATCH] Better javadoc for break class git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@620565 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/apache/fop/layoutmgr/BreakElement.java | 18 +++++++++++++++--- .../org/apache/fop/layoutmgr/KnuthPenalty.java | 6 ++++-- 2 files changed, 19 insertions(+), 5 deletions(-) diff --git a/src/java/org/apache/fop/layoutmgr/BreakElement.java b/src/java/org/apache/fop/layoutmgr/BreakElement.java index 20e4f7a76..3ccfbf616 100644 --- a/src/java/org/apache/fop/layoutmgr/BreakElement.java +++ b/src/java/org/apache/fop/layoutmgr/BreakElement.java @@ -46,10 +46,13 @@ public class BreakElement extends UnresolvedListElement { /** * Constructor for hard breaks. + * * @param position the Position instance needed by the addAreas stage of the LMs. * @param penaltyWidth the penalty width * @param penaltyValue the penalty value for the penalty element to be constructed - * @param breakClass the break class of this penalty (one of the break-* constants) + * @param breakClass the break class of this penalty (one of {@link Constants#EN_AUTO}, + * {@link Constants#EN_COLUMN}, {@link Constants#EN_PAGE}, + * {@link Constants#EN_EVEN_PAGE}, {@link Constants#EN_ODD_PAGE}) * @param context the layout context which contains the pending conditional elements */ public BreakElement(Position position, int penaltyWidth, int penaltyValue, @@ -96,14 +99,23 @@ public class BreakElement extends UnresolvedListElement { return penaltyValue == -KnuthElement.INFINITE; } - /** @return the break class of this penalty (one of the break-* constants) */ + /** + * Returns the break class of this penalty. + * + * @return one of {@link Constants#EN_AUTO}, {@link Constants#EN_COLUMN}, + * {@link Constants#EN_PAGE}, {@link Constants#EN_EVEN_PAGE}, + * {@link Constants#EN_ODD_PAGE} + */ public int getBreakClass() { return breakClass; } /** * Sets the break class. - * @param breakClass the new break class + * + * @param breakClass one of {@link Constants#EN_AUTO}, {@link Constants#EN_COLUMN}, + * {@link Constants#EN_PAGE}, {@link Constants#EN_EVEN_PAGE}, + * {@link Constants#EN_ODD_PAGE} */ public void setBreakClass(int breakClass) { this.breakClass = breakClass; diff --git a/src/java/org/apache/fop/layoutmgr/KnuthPenalty.java b/src/java/org/apache/fop/layoutmgr/KnuthPenalty.java index 3c7dace5f..ecaeac627 100644 --- a/src/java/org/apache/fop/layoutmgr/KnuthPenalty.java +++ b/src/java/org/apache/fop/layoutmgr/KnuthPenalty.java @@ -65,11 +65,13 @@ public class KnuthPenalty extends KnuthElement { /** * Create a new KnuthPenalty. - * + * * @param w the width of this penalty * @param p the penalty value of this penalty * @param f is this penalty flagged? - * @param iBreakClass the break class of this penalty (one of the break-* constants) + * @param iBreakClass the break class of this penalty (one of + * {@link Constants#EN_AUTO}, {@link Constants#EN_COLUMN}, {@link Constants#EN_PAGE}, + * {@link Constants#EN_EVEN_PAGE}, {@link Constants#EN_ODD_PAGE}) * @param pos the Position stored in this penalty * @param bAux is this penalty auxiliary? */ -- 2.39.5