/**
* One of the defined types of LengthBase
*/
- private /* final */ int iBaseType;
+ private /* final */ int baseType;
/** For percentages based on other length properties */
private Length baseLength;
* Constructor
* @param parentFO parent FO for this
* @param plist property list for this
- * @param iBaseType a member of {@link #PERCENT_BASED_LENGTH_TYPES}
+ * @param baseType a constant defining the type of teh percent base
* @throws PropertyException In case an problem occurs while evaluating values
*/
- public LengthBase(FObj parentFO, PropertyList plist, int iBaseType) throws PropertyException {
+ public LengthBase(FObj parentFO, PropertyList plist, int baseType) throws PropertyException {
this.fobj = plist.getFObj();
- this.iBaseType = iBaseType;
- switch (iBaseType) {
+ this.baseType = baseType;
+ switch (baseType) {
case FONTSIZE:
this.baseLength = plist.get(Constants.PR_FONT_SIZE).getLength();
break;
public int getBaseLength(PercentBaseContext context) throws PropertyException {
int baseLen = 0;
if (context != null) {
- if (iBaseType == FONTSIZE || iBaseType == INH_FONTSIZE) {
+ if (baseType == FONTSIZE || baseType == INH_FONTSIZE) {
return baseLength.getValue(context);
}
- baseLen = context.getBaseLength(iBaseType, fobj);
+ baseLen = context.getBaseLength(baseType, fobj);
} else {
fobj.getLogger().error("getBaseLength called without context");
}
}
/**
- * @see org.apache.fop.fo.IntrinsicSizeAccess#getIntrinsicWidth()
+ * @return the graphics intrinsic width
*/
public abstract int getIntrinsicWidth();
/**
- * @see org.apache.fop.fo.IntrinsicSizeAccess#getIntrinsicHeight()
+ * @return the graphics intrinsic height
*/
public abstract int getIntrinsicHeight();
}
}
/**
- * @see org.apache.fop.fo.IntrinsicSizeAccess#getIntrinsicWidth()
+ * @see org.apache.fop.fo.flow.AbstractGraphics#getIntrinsicWidth()
*/
public int getIntrinsicWidth() {
if (fopimage != null) {
}
/**
- * @see org.apache.fop.fo.IntrinsicSizeAccess#getIntrinsicHeight()
+ * @see org.apache.fop.fo.flow.AbstractGraphics#getIntrinsicHeight()
*/
public int getIntrinsicHeight() {
if (fopimage != null) {
}
/**
- * @see org.apache.fop.fo.IntrinsicSizeAccess#getIntrinsicWidth()
+ * @see org.apache.fop.fo.flow.AbstractGraphics#getIntrinsicWidth()
*/
public int getIntrinsicWidth() {
prepareIntrinsicSize();
}
/**
- * @see org.apache.fop.fo.IntrinsicSizeAccess#getIntrinsicHeight()
+ * @see org.apache.fop.fo.flow.AbstractGraphics#getIntrinsicHeight()
*/
public int getIntrinsicHeight() {
prepareIntrinsicSize();
* Stores 1 to 4 values of same type.
* Set the given property based on the number of values set.
* Example: padding, border-width, border-color, border-style, margin
- * @see org.apache.fop.fo.GenericShorthandParser#convertValueForProperty(
+ * @see org.apache.fop.fo.properties.GenericShorthandParser#convertValueForProperty(
* int, Property, PropertyMaker, PropertyList)
*/
protected Property convertValueForProperty(int propId,
/**
* Constructor
- * @param propName name of Property
+ * @param propId id of Property
*/
public ToBeImplementedProperty(int propId) {
/**
* @return the pending border and padding elements at the after edge
- * @see addPendingAfterMark(BorderOrPaddingElement)
+ * @see #addPendingAfterMark(UnresolvedListElementWithLength)
*/
public List getPendingAfterMarks() {
if (this.pendingAfterMarks != null) {
/**
* @return the pending border and padding elements at the before edge
- * @see addPendingBeforeMark(BorderOrPaddingElement)
+ * @see #addPendingBeforeMark(UnresolvedListElementWithLength)
*/
public List getPendingBeforeMarks() {
if (this.pendingBeforeMarks != null) {
vp.setOffset(0);
// Common Border, Padding, and Background Properties
- TraitSetter.addBorders(vp, fobj.getCommonBorderPaddingBackground(), this);
+ TraitSetter.addBorders(vp, fobj.getCommonBorderPaddingBackground()
+ , false, false, false, false, this);
+ TraitSetter.addPadding(vp, fobj.getCommonBorderPaddingBackground()
+ , false, false, false, false, this);
TraitSetter.addBackground(vp, fobj.getCommonBorderPaddingBackground(), this);
return vp;
}
/**
- * @see LeafNodeLayoutManager.makeAlignmentContext(LayoutContext)
+ * @see LeafNodeLayoutManager#makeAlignmentContext(LayoutContext)
*/
protected AlignmentContext makeAlignmentContext(LayoutContext context) {
return new AlignmentContext(
}
/**
- * @see ScaledBaselineTable#getScaledBaselineTable(int)
+ * @see ScaledBaselineTable#deriveScaledBaselineTable(int)
*/
public ScaledBaselineTable deriveScaledBaselineTable(int baselineIdentifier) {
BasicScaledBaselineTable bac
* Constructor
*
* @param node the fo:character formatting object
- * @todo better null checking of node
*/
public CharacterLayoutManager(Character node) {
+ // @todo better null checking of node
super(node);
fobj = node;
}
- /** @see LayoutManager#initialize */
+ /** @see org.apache.fop.layoutmgr.LayoutManager#initialize */
public void initialize() {
font = fobj.getCommonFont().getFontState(fobj.getFOEventHandler().getFontInfo(), this);
SpaceVal ls = SpaceVal.makeLetterSpacing(fobj.getLetterSpacing());
return ch;
}
- /** @see LayoutManager#getNextKnuthElements(LayoutContext, int) */
+ /** @see org.apache.fop.layoutmgr.LayoutManager#getNextKnuthElements(LayoutContext, int) */
public LinkedList getNextKnuthElements(LayoutContext context, int alignment) {
MinOptMax ipd;
curArea = get(context);
hc.updateOffset(1);
}
- /** @see InlineLevelLayoutManager#applyChanges(list) */
+ /** @see InlineLevelLayoutManager#applyChanges(List) */
public boolean applyChanges(List oldList) {
setFinished(false);
if (isSomethingChanged) {
}
}
- /** @see LayoutManager#getChangedKnuthElements(List, int) */
+ /** @see org.apache.fop.layoutmgr.LayoutManager#getChangedKnuthElements(List, int) */
public LinkedList getChangedKnuthElements(List oldList, int alignment) {
if (isFinished()) {
return null;
fobj = node;
}
- /** @see LayoutManager#initialize */
+ /** @see org.apache.fop.layoutmgr.LayoutManager#initialize */
public void initialize() {
font = fobj.getCommonFont().getFontState(fobj.getFOEventHandler().getFontInfo(), this);
// the property leader-alignment does not affect vertical positioning
}
}
- /** @see LayoutManager#getNextKnuthElements(LayoutContext, int) */
+ /** @see org.apache.fop.layoutmgr.LayoutManager#getNextKnuthElements(LayoutContext, int) */
public LinkedList getNextKnuthElements(LayoutContext context,
int alignment) {
MinOptMax ipd;
super.hyphenate(pos, hc);
}
- /** @see InlineLevelLayoutManager#applyChanges(list) */
+ /** @see InlineLevelLayoutManager#applyChanges(List) */
public boolean applyChanges(List oldList) {
setFinished(false);
return false;
}
- /** @see LayoutManager#getNextKnuthElements(LayoutContext, int) */
+ /** @see org.apache.fop.layoutmgr.LayoutManager#getChangedKnuthElements(List, int) */
public LinkedList getChangedKnuthElements(List oldList,
int alignment) {
if (isFinished()) {
area.setIPD(width);
}
- /** @see LayoutManager#getNextKnuthElements(LayoutContext, int) */
+ /** @see org.apache.fop.layoutmgr.LayoutManager#getNextKnuthElements(LayoutContext, int) */
public LinkedList getNextKnuthElements(LayoutContext context, int alignment) {
curArea = get(context);
return false;
}
- /** @see LayoutManager#getChangedKnuthElements(List, int) */
+ /** @see org.apache.fop.layoutmgr.LayoutManager#getChangedKnuthElements(List, int) */
public LinkedList getChangedKnuthElements(List oldList,
int alignment) {
if (isFinished()) {
}
/**
- * @see LeafNodeLayoutManager.makeAlignmentContext(LayoutContext)
+ * @see LeafNodeLayoutManager#makeAlignmentContext(LayoutContext)
*/
protected AlignmentContext makeAlignmentContext(LayoutContext context) {
return new AlignmentContext(
}
}
- /** @see org.apache.fop.layoutmgr.inline.LeafNodeLayoutManager#getLead() */
- public int getLead() {
- return font.getAscender();
- }
-
/**
* if id can be resolved then simply return a word, otherwise
* return a resolvable area
return width;
}
- /** @see org.apache.fop.layoutmgr.inline.LeafLayoutManager#addId */
+ /** @see org.apache.fop.layoutmgr.inline.LeafNodeLayoutManager#addId() */
protected void addId() {
getPSLM().addIDToPage(fobj.getId());
}
return text;
}
- /** @see org.apache.fop.layoutmgr.inline.LeafNodeLayoutManager#getLead() */
- public int getLead() {
- return font.getAscender();
- }
-
/** @see org.apache.fop.layoutmgr.inline.LeafNodeLayoutManager#getEffectiveArea() */
protected InlineArea getEffectiveArea() {
TextArea baseArea = (TextArea)curArea;
return width;
}
- /** @see org.apache.fop.layoutmgr.inline.LeafLayoutManager#addId */
+ /** @see org.apache.fop.layoutmgr.inline.LeafNodeLayoutManager#addId() */
protected void addId() {
getPSLM().addIDToPage(fobj.getId());
}
* @param adjust the total ipd adjustment with respect to the optimal width
* @param context the layout context
* @param spaceDiff unused
- * @param firstIndex the index of the first AreaInfo used for the TextArea
- * @param lastIndex the index of the last AreaInfo used for the TextArea
* @return the new text area
*/
protected TextArea createTextArea(String str, MinOptMax width, int adjust,
return textArea;
}
- /** @see LayoutManager#getNextKnuthElements(LayoutContext, int) */
+ /** @see org.apache.fop.layoutmgr.LayoutManager#getNextKnuthElements(LayoutContext, int) */
public LinkedList getNextKnuthElements(LayoutContext context, int alignment) {
lineStartBAP = context.getLineStartBorderAndPaddingWidth();
lineEndBAP = context.getLineEndBorderAndPaddingWidth();
return bChanged;
}
- /** @see org.aapache.fop.layoutmgr.LayoutManager#getChangedKnuthElements(List, int) */
+ /** @see org.apache.fop.layoutmgr.LayoutManager#getChangedKnuthElements(List, int) */
public LinkedList getChangedKnuthElements(List oldList,
int alignment) {
if (isFinished()) {
/**
* Gets the image data and paints it on screen. Will make
* calls to getPageImage as required.
- * @see org.apache.fop.render.java2d.Java2DRenderer#getPageImage()
+ * @param graphics
+ * @see javax.swing.JComponent#paintComponent(Graphics)
+ * @see org.apache.fop.render.java2d.Java2DRenderer#getPageImage(int)
*/
public synchronized void paintComponent(Graphics graphics) {
try {
}
}
- /** @see org.apache.fop.render.AbstractPathOrientedRenderer */
+ /** @see org.apache.fop.render.AbstractPathOrientedRenderer#drawBackAndBorders(
+ * Area, float, float, float, float) */
protected void drawBackAndBorders(Area area, float startx, float starty,
float width, float height) {
if (area.hasTrait(Trait.BACKGROUND)
/**
* Controls whether to set logging to debug level
- * @param If true, debug level, if false, error level
+ * @param debug If true, debug level, if false, error level
*/
public void setDebug(boolean debug) {
if (debug) {