/*-- $Id$ --
============================================================================
- The Apache Software License, Version 1.1
+ The Apache Software License, Version 1.1
============================================================================
Copyright (C) 1999 The Apache Software Foundation. All rights reserved.
return new Block.Maker();
}
- FontState fs;
int align;
int alignLast;
- int breakBefore;
int breakAfter;
int lineHeight;
int startIndent;
int textIndent;
int keepWithNext;
ColorType backgroundColor;
- int paddingTop;
- int paddingBottom;
- int paddingLeft;
- int paddingRight;
int blockWidows;
int blockOrphans;
String id;
-
- ColorType borderTopColor;
- int borderTopWidth;
- int borderTopStyle;
- ColorType borderBottomColor;
- int borderBottomWidth;
- int borderBottomStyle;
- ColorType borderLeftColor;
- int borderLeftWidth;
- int borderLeftStyle;
- ColorType borderRightColor;
- int borderRightWidth;
- int borderRightStyle;
-
- int hyphenate;
- char hyphenationChar;
- int hyphenationPushCharacterCount;
- int hyphenationRemainCharacterCount;
- String language;
- String country;
- int span;
+ int span;
BlockArea blockArea;
}
if (this.marker == START) {
- String fontFamily =
- this.properties.get("font-family").getString();
- String fontStyle =
- this.properties.get("font-style").getString();
- String fontWeight =
- this.properties.get("font-weight").getString();
- int fontSize =
- this.properties.get("font-size").getLength().mvalue();
-
- // font-variant support
- // added by Eric SCHAEFFER
- int fontVariant =
- this.properties.get("font-variant").getEnum();
-
- this.fs = new FontState(area.getFontInfo(), fontFamily,
- fontStyle, fontWeight, fontSize, fontVariant);
this.align = this.properties.get("text-align").getEnum();
this.alignLast =
this.properties.get("text-align-last").getEnum();
- this.breakBefore =
- this.properties.get("break-before").getEnum();
this.breakAfter = this.properties.get("break-after").getEnum();
this.lineHeight = this.properties.get(
"line-height").getLength().mvalue();
"text-indent").getLength().mvalue();
this.keepWithNext =
this.properties.get("keep-with-next").getEnum();
- this.backgroundColor = this.properties.get(
- "background-color").getColorType();
- this.paddingTop =
- this.properties.get("padding").getLength().mvalue();
-
- this.paddingLeft = this.paddingTop;
- this.paddingRight = this.paddingTop;
- this.paddingBottom = this.paddingTop;
- if (this.paddingTop == 0) {
- this.paddingTop = this.properties.get(
- "padding-top").getLength().mvalue();
- this.paddingLeft = this.properties.get(
- "padding-left").getLength().mvalue();
- this.paddingBottom = this.properties.get(
- "padding-bottom").getLength().mvalue();
- this.paddingRight = this.properties.get(
- "padding-right").getLength().mvalue();
- }
- this.borderTopColor =
- this.properties.get("border-color").getColorType();
- this.borderBottomColor = this.borderTopColor;
- this.borderLeftColor = this.borderTopColor;
- this.borderRightColor = this.borderTopColor;
- if (this.borderTopColor == null) {
- this.borderTopColor = this.properties.get(
- "border-top-color").getColorType();
- this.borderBottomColor = this.properties.get(
- "border-bottom-color").getColorType();
- this.borderLeftColor = this.properties.get(
- "border-left-color").getColorType();
- this.borderRightColor = this.properties.get(
- "border-right-color").getColorType();
- }
- this.borderTopWidth = this.properties.get(
- "border-width").getLength().mvalue();
- this.borderBottomWidth = this.borderTopWidth;
- this.borderLeftWidth = this.borderTopWidth;
- this.borderRightWidth = this.borderTopWidth;
- if (this.borderTopWidth == 0) {
- this.borderTopWidth = this.properties.get(
- "border-top-width").getLength().mvalue();
- this.borderBottomWidth = this.properties.get(
- "border-bottom-width").getLength().mvalue();
- this.borderLeftWidth = this.properties.get(
- "border-left-width").getLength().mvalue();
- this.borderRightWidth = this.properties.get(
- "border-right-width").getLength().mvalue();
- }
- this.borderTopStyle =
- this.properties.get("border-style").getEnum();
- this.borderBottomStyle = this.borderTopStyle;
- this.borderLeftStyle = this.borderTopStyle;
- this.borderRightStyle = this.borderTopStyle;
- if (this.borderTopStyle == 0) {
- this.borderTopStyle =
- this.properties.get("border-top-style").getEnum();
- this.borderBottomStyle = this.properties.get(
- "border-bottom-style").getEnum();
- this.borderLeftStyle = this.properties.get(
- "border-left-style").getEnum();
- this.borderRightStyle = this.properties.get(
- "border-right-style").getEnum();
- }
+ this.backgroundColor = this.properties.get("background-color").getColorType();
+
this.blockWidows =
this.properties.get("widows").getNumber().intValue();
this.blockOrphans =
this.properties.get("orphans").getNumber().intValue();
- this.hyphenate = this.properties.get("hyphenate").getEnum();
- this.hyphenationChar = this.properties.get("hyphenation-character").getCharacter();
- this.hyphenationPushCharacterCount = this.properties.get(
- "hyphenation-push-character-count").getNumber().
- intValue();
- this.hyphenationRemainCharacterCount = this.properties.get(
- "hyphenation-remain-character-count").getNumber().
- intValue();
- this.language = this.properties.get("language").getString();
- this.country = this.properties.get("country").getString();
+
this.id = this.properties.get("id").getString();
if (area instanceof BlockArea) {
- area.end();
+ area.end();
}
if(area.getIDReferences() != null)
area.getIDReferences().createID(id);
this.marker = 0;
-
- if (breakBefore == BreakBefore.PAGE) {
- return new Status(Status.FORCE_PAGE_BREAK);
- }
-
- if (breakBefore == BreakBefore.ODD_PAGE) {
- return new Status(Status.FORCE_PAGE_BREAK_ODD);
- }
-
- if (breakBefore == BreakBefore.EVEN_PAGE) {
- return new Status(Status.FORCE_PAGE_BREAK_EVEN);
- }
-
- if (breakBefore == BreakBefore.COLUMN) {
- return new Status(Status.FORCE_COLUMN_BREAK);
- }
-
+ int breakStatus;
+ if ((breakStatus = propMgr.checkBreakBefore()) != Status.OK) {
+ return new Status(breakStatus);
+ }
int numChildren = this.children.size();
for (int i = 0; i < numChildren; i++) {
FONode fo = (FONode) children.elementAt(i);
}
int spaceLeft = area.spaceLeft();
- this.blockArea = new BlockArea(fs, area.getAllocationWidth(),
- area.spaceLeft(), startIndent, endIndent, textIndent,
- align, alignLast, lineHeight);
+ this.blockArea = new BlockArea(propMgr.getFontState(area.getFontInfo()), area.getAllocationWidth(),
+ area.spaceLeft(), startIndent, endIndent, textIndent,
+ align, alignLast, lineHeight);
this.blockArea.setParent(area); // BasicLink needs it
blockArea.setPage(area.getPage());
blockArea.setBackgroundColor(backgroundColor);
- blockArea.setPadding(paddingTop, paddingLeft, paddingBottom,
- paddingRight);
- blockArea.setBorderStyle(borderTopStyle, borderLeftStyle,
- borderBottomStyle, borderRightStyle);
- blockArea.setBorderWidth(borderTopWidth, borderLeftWidth,
- borderBottomWidth, borderRightWidth);
- blockArea.setBorderColor(borderTopColor, borderLeftColor,
- borderBottomColor, borderRightColor);
- blockArea.setHyphenation(language, country, hyphenate,
- hyphenationChar, hyphenationPushCharacterCount,
- hyphenationRemainCharacterCount);
+ blockArea.setBorderAndPadding(propMgr.getBorderAndPadding());
+ blockArea.setHyphenation(propMgr.getHyphenationProps());
blockArea.start();
blockArea.setAbsoluteHeight(area.getAbsoluteHeight());
-/*-- $Id$ --
-
- ============================================================================
- The Apache Software License, Version 1.1
- ============================================================================
-
- Copyright (C) 1999 The Apache Software Foundation. All rights reserved.
-
- Redistribution and use in source and binary forms, with or without modifica-
- tion, are permitted provided that the following conditions are met:
-
- 1. Redistributions of source code must retain the above copyright notice,
- this list of conditions and the following disclaimer.
-
- 2. Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
-
- 3. The end-user documentation included with the redistribution, if any, must
- include the following acknowledgment: "This product includes software
- developed by the Apache Software Foundation (http://www.apache.org/)."
- Alternately, this acknowledgment may appear in the software itself, if
- and wherever such third-party acknowledgments normally appear.
-
- 4. The names "FOP" and "Apache Software Foundation" must not be used to
- endorse or promote products derived from this software without prior
- written permission. For written permission, please contact
- apache@apache.org.
-
- 5. Products derived from this software may not be called "Apache", nor may
- "Apache" appear in their name, without prior written permission of the
- Apache Software Foundation.
-
- THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED WARRANTIES,
- INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
- FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
- APACHE SOFTWARE FOUNDATION OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
- INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLU-
- DING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
- OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
- ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
- THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-
- This software consists of voluntary contributions made by many individuals
- on behalf of the Apache Software Foundation and was originally created by
- James Tauber <jtauber@jtauber.com>. For more information on the Apache
- Software Foundation, please see <http://www.apache.org/>.
-
+//-- $Id$ --
+/*
+ * Copyright (C) 2001 The Apache Software Foundation. All rights reserved.
+ * For details on use and redistribution please refer to the
+ * LICENSE file included with these sources."
*/
package org.apache.fop.fo.flow;
public class BlockContainer extends FObj {
- FontState fs;
ColorType backgroundColor;
- int paddingTop;
- int paddingBottom;
- int paddingLeft;
- int paddingRight;
int position;
int top;
int width;
int height;
- ColorType borderTopColor;
- int borderTopWidth;
- int borderTopStyle;
- ColorType borderBottomColor;
- int borderBottomWidth;
- int borderBottomStyle;
- ColorType borderLeftColor;
- int borderLeftWidth;
- int borderLeftStyle;
- ColorType borderRightColor;
- int borderRightWidth;
- int borderRightStyle;
-
int span;
AreaContainer areaContainer;
this.span = this.properties.get("span").getEnum();
}
- public Status layout(Area area) throws FOPException {
- if (this.marker == START) {
- this.marker = 0;
-
- String fontFamily =
- this.properties.get("font-family").getString();
- String fontStyle =
- this.properties.get("font-style").getString();
- String fontWeight =
- this.properties.get("font-weight").getString();
- int fontSize =
- this.properties.get("font-size").getLength().mvalue();
- // font-variant support
- // added by Eric SCHAEFFER
- int fontVariant =
- this.properties.get("font-variant").getEnum();
-
- this.fs = new FontState(area.getFontInfo(), fontFamily,
- fontStyle, fontWeight, fontSize, fontVariant);
-
- this.backgroundColor =
- this.properties.get("background-color").getColorType();
- this.paddingTop =
- this.properties.get("padding").getLength().mvalue();
- this.paddingLeft = this.paddingTop;
- this.paddingRight = this.paddingTop;
- this.paddingBottom = this.paddingTop;
- if (this.paddingTop == 0) {
- this.paddingTop =
- this.properties.get("padding-top").getLength().mvalue();
- this.paddingLeft =
- this.properties.get("padding-left").getLength().mvalue();
- this.paddingBottom =
- this.properties.get("padding-bottom").getLength().mvalue();
- this.paddingRight =
- this.properties.get("padding-right").getLength().mvalue();
- }
-
- this.position =
- this.properties.get("position").getEnum();
- this.top =
- this.properties.get("top").getLength().mvalue();
- this.bottom =
- this.properties.get("bottom").getLength().mvalue();
- this.left =
- this.properties.get("left").getLength().mvalue();
- this.right =
- this.properties.get("right").getLength().mvalue();
- this.width =
- this.properties.get("width").getLength().mvalue();
- this.height =
- this.properties.get("height").getLength().mvalue();
-
- this.borderTopColor =
- this.properties.get("border-color").getColorType();
- this.borderBottomColor = this.borderTopColor;
- this.borderLeftColor = this.borderTopColor;
- this.borderRightColor = this.borderTopColor;
- if (this.borderTopColor == null) {
- this.borderTopColor =
- this.properties.get("border-top-color").getColorType();
- this.borderBottomColor =
- this.properties.get("border-bottom-color").getColorType();
- this.borderLeftColor =
- this.properties.get("border-left-color").getColorType();
- this.borderRightColor =
- this.properties.get("border-right-color").getColorType();
- }
- this.borderTopWidth =
- this.properties.get("border-width").getLength().mvalue();
- this.borderBottomWidth = this.borderTopWidth;
- this.borderLeftWidth = this.borderTopWidth;
- this.borderRightWidth = this.borderTopWidth;
- if (this.borderTopWidth == 0) {
- this.borderTopWidth =
- this.properties.get("border-top-width").getLength().mvalue();
- this.borderBottomWidth =
- this.properties.get("border-bottom-width").getLength().mvalue();
- this.borderLeftWidth =
- this.properties.get("border-left-width").getLength().mvalue();
- this.borderRightWidth =
- this.properties.get("border-right-width").getLength().mvalue();
- }
- this.borderTopStyle =
- this.properties.get("border-style").getEnum();
- this.borderBottomStyle = this.borderTopStyle;
- this.borderLeftStyle = this.borderTopStyle;
- this.borderRightStyle = this.borderTopStyle;
- if (this.borderTopStyle == 0) {
- this.borderTopStyle =
- this.properties.get("border-top-style").getEnum();
- this.borderBottomStyle =
- this.properties.get("border-bottom-style").getEnum();
- this.borderLeftStyle =
- this.properties.get("border-left-style").getEnum();
- this.borderRightStyle =
- this.properties.get("border-right-style").getEnum();
- }
-
- span = this.properties.get("span").getEnum();
-
- // initialize id
- String id = this.properties.get("id").getString();
- area.getIDReferences().initializeID(id,area);
+ public Status layout(Area area) throws FOPException {
+ if (this.marker == START) {
+ this.marker = 0;
+
+ this.backgroundColor =
+ this.properties.get("background-color").getColorType();
+
+ this.position =
+ this.properties.get("position").getEnum();
+ this.top =
+ this.properties.get("top").getLength().mvalue();
+ this.bottom =
+ this.properties.get("bottom").getLength().mvalue();
+ this.left =
+ this.properties.get("left").getLength().mvalue();
+ this.right =
+ this.properties.get("right").getLength().mvalue();
+ this.width =
+ this.properties.get("width").getLength().mvalue();
+ this.height =
+ this.properties.get("height").getLength().mvalue();
+ span = this.properties.get("span").getEnum();
+
+ // initialize id
+ String id = this.properties.get("id").getString();
+ area.getIDReferences().initializeID(id,area);
+ }
+
+ boolean prevChildMustKeepWithNext = false;
+
+ AreaContainer container = (AreaContainer)area;
+ if ((this.width == 0) && (this.height == 0)) {
+ width = right - left;
+ height = bottom - top;
}
- boolean prevChildMustKeepWithNext = false;
-
- AreaContainer container = (AreaContainer)area;
- if ((this.width == 0) && (this.height == 0)) {
- width = right - left;
- height = bottom - top;
- }
this.areaContainer =
- new AreaContainer(fs, container.getXPosition() + left, container.getYPosition() - top, width, height,
- position);
+ new AreaContainer(propMgr.getFontState(container.getFontInfo()),
+ container.getXPosition() + left,
+ container.getYPosition() - top, width, height,
+ position);
areaContainer.setPage(area.getPage());
areaContainer.setBackgroundColor(backgroundColor);
- areaContainer.setPadding(paddingTop, paddingLeft, paddingBottom,
- paddingRight);
- areaContainer.setBorderStyle(borderTopStyle, borderLeftStyle,
- borderBottomStyle, borderRightStyle);
- areaContainer.setBorderWidth(borderTopWidth, borderLeftWidth,
- borderBottomWidth, borderRightWidth);
- areaContainer.setBorderColor(borderTopColor, borderLeftColor,
- borderBottomColor, borderRightColor);
+ areaContainer.setBorderAndPadding(propMgr.getBorderAndPadding());
areaContainer.start();
-
- areaContainer.setAbsoluteHeight(area.getAbsoluteHeight());
- areaContainer.setIDReferences(area.getIDReferences());
+
+ areaContainer.setAbsoluteHeight(area.getAbsoluteHeight());
+ areaContainer.setIDReferences(area.getIDReferences());
int numChildren = this.children.size();
for (int i = this.marker; i < numChildren; i++) {
blockArea = (BlockArea) area;
boolean textDecoration;
- //retrieving font property information for fo:leader
- String fontFamily = this.properties.get("font-family").getString();
- String fontStyle = this.properties.get("font-style").getString();
- String fontWeight = this.properties.get("font-weight").getString();
- int fontSize =
- this.properties.get("font-size").getLength().mvalue();
- // font-variant support
- // added by Eric SCHAEFFER
- int fontVariant =
- this.properties.get("font-variant").getEnum();
-
- FontState fontstate = new FontState(area.getFontInfo(), fontFamily,
- fontStyle, fontWeight, fontSize, fontVariant);
-
//color properties
ColorType c = this.properties.get("color").getColorType();
float red = c.red();
if(la == null) {
return new Status(Status.AREA_FULL_NONE);
}
- la.changeFont(fontstate);
+ la.changeFont(propMgr.getFontState(area.getFontInfo()));
la.changeColor(red, green, blue);
la.changeWrapOption(wrapOption);
la.changeWhiteSpaceCollapse(whiteSpaceCollapse);
if(la == null) {
return new Status(Status.AREA_FULL_NONE);
}
- la.changeFont(fontstate);
+ la.changeFont(propMgr.getFontState(area.getFontInfo()));
la.changeColor(red, green, blue);
la.changeWrapOption(wrapOption);
la.changeWhiteSpaceCollapse(whiteSpaceCollapse);
public class ExternalGraphic extends FObj {
- FontState fs;
int align;
int startIndent;
int endIndent;
public Status layout(Area area) throws FOPException {
if (this.marker == START) {
- String fontFamily =
- this.properties.get("font-family").getString();
- String fontStyle =
- this.properties.get("font-style").getString();
- String fontWeight =
- this.properties.get("font-weight").getString();
- int fontSize =
- this.properties.get("font-size").getLength().mvalue();
- // font-variant support
- // added by Eric SCHAEFFER
- int fontVariant =
- this.properties.get("font-variant").getEnum();
-
- this.fs = new FontState(area.getFontInfo(), fontFamily,
- fontStyle, fontWeight, fontSize, fontVariant);
-
// FIXME
this.align = this.properties.get("text-align").getEnum();
}
this.imageArea =
- new ImageArea(fs, img, area.getAllocationWidth(),
+ new ImageArea(propMgr.getFontState(area.getFontInfo()),
+ img, area.getAllocationWidth(),
width, height, startIndent, endIndent, align);
if ((spaceBefore != 0) && (this.marker == 0)) {
import java.util.Enumeration;
public class FootnoteBody extends FObj {
- FontState fs;
+
int align;
int alignLast;
int lineHeight;
this.name = "fo:footnote-body";
}
- public Status layout(Area area) throws FOPException {
- if(this.marker == START) {
- this.marker = 0;
- }
- String fontFamily =
- this.properties.get("font-family").getString();
- String fontStyle =
- this.properties.get("font-style").getString();
- String fontWeight =
- this.properties.get("font-weight").getString();
- int fontSize =
- this.properties.get("font-size").getLength().mvalue();
- // font-variant support
- // added by Eric SCHAEFFER
- int fontVariant =
- this.properties.get("font-variant").getEnum();
-
- FontState fs = new FontState(area.getFontInfo(), fontFamily,
- fontStyle, fontWeight, fontSize, fontVariant);
-
- BlockArea blockArea = new BlockArea(fs, area.getAllocationWidth(),
- area.spaceLeft(), startIndent, endIndent, textIndent,
- align, alignLast, lineHeight);
- blockArea.setPage(area.getPage());
- blockArea.start();
-
- blockArea.setAbsoluteHeight(area.getAbsoluteHeight());
- blockArea.setIDReferences(area.getIDReferences());
-
- blockArea.setTableCellXOffset(area.getTableCellXOffset());
-
- int numChildren = this.children.size();
- for ( int i = this.marker; i < numChildren; i++ ) {
- FONode fo = (FONode) children.elementAt(i);
- Status status;
- if ( (status = fo.layout(blockArea)).isIncomplete() ) {
- this.resetMarker();
- return status;
- }
- }
- blockArea.end();
- area.addChild(blockArea);
- area.increaseHeight(blockArea.getHeight());
- return new Status(Status.OK);
- }
+ public Status layout(Area area) throws FOPException {
+ if(this.marker == START) {
+ this.marker = 0;
+ }
+ BlockArea blockArea =
+ new BlockArea(propMgr.getFontState(area.getFontInfo()),
+ area.getAllocationWidth(),
+ area.spaceLeft(), startIndent, endIndent, textIndent,
+ align, alignLast, lineHeight);
+ blockArea.setPage(area.getPage());
+ blockArea.start();
+
+ blockArea.setAbsoluteHeight(area.getAbsoluteHeight());
+ blockArea.setIDReferences(area.getIDReferences());
+
+ blockArea.setTableCellXOffset(area.getTableCellXOffset());
+
+ int numChildren = this.children.size();
+ for ( int i = this.marker; i < numChildren; i++ ) {
+ FONode fo = (FONode) children.elementAt(i);
+ Status status;
+ if ( (status = fo.layout(blockArea)).isIncomplete() ) {
+ this.resetMarker();
+ return status;
+ }
+ }
+ blockArea.end();
+ area.addChild(blockArea);
+ area.increaseHeight(blockArea.getHeight());
+ return new Status(Status.OK);
+ }
}
return new InlineGraphic.Maker();
}
- FontState fs;
int align;
int startIndent;
int endIndent;
public Status layout(Area area) throws FOPException {
if (this.marker == START) {
- String fontFamily =
- this.properties.get("font-family").getString();
- String fontStyle =
- this.properties.get("font-style").getString();
- String fontWeight =
- this.properties.get("font-weight").getString();
- int fontSize =
- this.properties.get("font-size").getLength().mvalue();
- // font-variant support
- // added by Eric SCHAEFFER
- int fontVariant =
- this.properties.get("font-variant").getEnum();
-
- this.fs = new FontState(area.getFontInfo(), fontFamily,
- fontStyle, fontWeight, fontSize, fontVariant);
-
// FIXME
this.align = this.properties.get("text-align").getEnum();
}
this.imageArea = new ImageArea(
- fs,
- img,
+ propMgr.getFontState(area.getFontInfo()),
+ img,
area.getAllocationWidth(),
width,
height,
return new InstreamForeignObject.Maker();
}
- FontState fs;
int breakBefore;
int breakAfter;
int scaling;
if (this.marker == START) {
/* retrieve properties */
String id = this.properties.get("id").getString();
- String fontFamily = this.properties.get("font-family").getString();
- String fontStyle = this.properties.get("font-style").getString();
- String fontWeight = this.properties.get("font-weight").getString();
- int fontSize = this.properties.get("font-size").getLength().mvalue();
- // font-variant support
- // added by Eric SCHAEFFER
- int fontVariant =
- this.properties.get("font-variant").getEnum();
-
- this.fs = new FontState(area.getFontInfo(), fontFamily,
- fontStyle, fontWeight, fontSize, fontVariant);
-
int align = this.properties.get("text-align").getEnum();
int valign = this.properties.get("vertical-align").getEnum();
int overflow = this.properties.get("overflow").getEnum();
}
if(this.areaCurrent == null) {
this.areaCurrent =
- new ForeignObjectArea(fs, area.getAllocationWidth());
+ new ForeignObjectArea( propMgr.getFontState(area.getFontInfo()), area.getAllocationWidth());
this.areaCurrent.start();
areaCurrent.setWidth(this.width);
blockArea = (BlockArea) area;
}
- //retrieving font property information for fo:leader
- String fontFamily = this.properties.get("font-family").getString();
- String fontStyle = this.properties.get("font-style").getString();
- String fontWeight = this.properties.get("font-weight").getString();
- int fontSize =
- this.properties.get("font-size").getLength().mvalue();
- // font-variant support
- // added by Eric SCHAEFFER
- int fontVariant =
- this.properties.get("font-variant").getEnum();
-
- FontState fontstate = new FontState(area.getFontInfo(), fontFamily,
- fontStyle, fontWeight, fontSize, fontVariant);
-
//color properties
ColorType c = this.properties.get("color").getColorType();
float red = c.red();
blockArea.getIDReferences().initializeID(id, blockArea);
//adds leader to blockarea, there the leaderArea is generated
- int succeeded = addLeader(blockArea, fontstate, red, green, blue,
+ int succeeded = addLeader(blockArea, propMgr.getFontState(area.getFontInfo()), red, green, blue,
leaderPattern, leaderLengthMinimum,
leaderLengthOptimum, leaderLengthMaximum,
ruleThickness, ruleStyle, leaderPatternWidth,
return new ListBlock.Maker();
}
- FontState fs;
int align;
int alignLast;
int breakBefore;
public Status layout(Area area) throws FOPException {
if (this.marker == START) {
- String fontFamily =
- this.properties.get("font-family").getString();
- String fontStyle =
- this.properties.get("font-style").getString();
- String fontWeight =
- this.properties.get("font-weight").getString();
- int fontSize =
- this.properties.get("font-size").getLength().mvalue();
- // font-variant support
- // added by Eric SCHAEFFER
- int fontVariant =
- this.properties.get("font-variant").getEnum();
-
- this.fs = new FontState(area.getFontInfo(), fontFamily,
- fontStyle, fontWeight, fontSize, fontVariant);
this.align = this.properties.get("text-align").getEnum();
this.alignLast =
area.getIDReferences().initializeID(id, area);
}
- BlockArea blockArea = new BlockArea(fs, area.getAllocationWidth(),
+ BlockArea blockArea = new BlockArea(propMgr.getFontState(area.getFontInfo()),
+ area.getAllocationWidth(),
area.spaceLeft(), startIndent, endIndent, 0, align,
alignLast, lineHeight);
blockArea.setPage(area.getPage());
return new ListItem.Maker();
}
- FontState fs;
int align;
int alignLast;
int breakBefore;
public Status layout(Area area) throws FOPException {
if (this.marker == START) {
- String fontFamily =
- this.properties.get("font-family").getString();
- String fontStyle =
- this.properties.get("font-style").getString();
- String fontWeight =
- this.properties.get("font-weight").getString();
- int fontSize =
- this.properties.get("font-size").getLength().mvalue();
- // font-variant support
- // added by Eric SCHAEFFER
- int fontVariant =
- this.properties.get("font-variant").getEnum();
-
- this.fs = new FontState(area.getFontInfo(), fontFamily,
- fontStyle, fontWeight, fontSize, fontVariant);
this.align = this.properties.get("text-align").getEnum();
this.alignLast =
}
this.blockArea =
- new BlockArea(fs, area.getAllocationWidth(),
+ new BlockArea(propMgr.getFontState(area.getFontInfo()), area.getAllocationWidth(),
area.spaceLeft(), 0, 0,
0, align, alignLast, lineHeight);
blockArea.setPage(area.getPage());
return new PageNumber.Maker();
}
- FontState fs;
float red;
float green;
float blue;
return new Status(Status.OK);
}
if (this.marker == START) {
- String fontFamily =
- this.properties.get("font-family").getString();
- String fontStyle =
- this.properties.get("font-style").getString();
- String fontWeight =
- this.properties.get("font-weight").getString();
- int fontSize =
- this.properties.get("font-size").getLength().mvalue();
- // font-variant support
- // added by Eric SCHAEFFER
- int fontVariant =
- this.properties.get("font-variant").getEnum();
-
- this.fs = new FontState(area.getFontInfo(), fontFamily,
- fontStyle, fontWeight, fontSize, fontVariant);
ColorType c = this.properties.get("color").getColorType();
this.red = c.red();
}
String p = Integer.toString(area.getPage().getNumber());
- this.marker = FOText.addText((BlockArea) area, fs, red, green, blue,
+ this.marker = FOText.addText((BlockArea) area, propMgr.getFontState(area.getFontInfo()), red, green, blue,
wrapOption, null, whiteSpaceCollapse, p.toCharArray(),
0, p.length(), ts, VerticalAlign.BASELINE);
return new Status(Status.OK);
return new PageNumberCitation.Maker();
}
- FontState fs;
float red;
float green;
float blue;
IDReferences idReferences = area.getIDReferences();
this.area = area;
if (this.marker == START) {
- String fontFamily =
- this.properties.get("font-family").getString();
- String fontStyle =
- this.properties.get("font-style").getString();
- String fontWeight =
- this.properties.get("font-weight").getString();
- int fontSize =
- this.properties.get("font-size").getLength().mvalue();
- // font-variant support
- // added by Eric SCHAEFFER
- int fontVariant =
- this.properties.get("font-variant").getEnum();
-
- this.fs = new FontState(area.getFontInfo(), fontFamily,
- fontStyle, fontWeight, fontSize, fontVariant);
ColorType c = this.properties.get("color").getColorType();
this.red = c.red();
pageNumber = idReferences.getPageNumber(refId);
if (pageNumber != null) { // if we already know the page number
- this.marker = FOText.addText((BlockArea) area, fs, red, green, blue,
+ this.marker = FOText.addText((BlockArea) area,
+ propMgr.getFontState(area.getFontInfo()),
+ red, green, blue,
wrapOption, null, whiteSpaceCollapse,
pageNumber.toCharArray(), 0, pageNumber.length(),
ts, VerticalAlign.BASELINE);
if(la == null) {
return new Status(Status.AREA_FULL_NONE);
}
- la.changeFont(fs);
+ la.changeFont(propMgr.getFontState(area.getFontInfo()));
la.changeColor(red, green, blue);
la.changeWrapOption(wrapOption);
la.changeWhiteSpaceCollapse(whiteSpaceCollapse);
return new Table.Maker();
}
- FontState fs;
int breakBefore;
int breakAfter;
int spaceBefore;
ColorType backgroundColor;
int width;
int height;
- ColorType borderColor;
- int borderWidth;
- int borderStyle;
String id;
TableHeader tableHeader = null;
TableFooter tableFooter = null;
}
if (this.marker == START) {
- String fontFamily =
- this.properties.get("font-family").getString();
- String fontStyle =
- this.properties.get("font-style").getString();
- String fontWeight =
- this.properties.get("font-weight").getString();
- int fontSize =
- this.properties.get("font-size").getLength().mvalue();
- // font-variant support
- // added by Eric SCHAEFFER
- int fontVariant =
- this.properties.get("font-variant").getEnum();
-
- this.fs = new FontState(area.getFontInfo(), fontFamily,
- fontStyle, fontWeight, fontSize, fontVariant);
-
this.breakBefore =
this.properties.get("break-before").getEnum();
this.breakAfter = this.properties.get("break-after").getEnum();
this.height =
this.properties.get("height").getLength().mvalue();
- this.borderColor =
- this.properties.get("border-color").getColorType();
- this.borderWidth = this.properties.get(
- "border-width").getLength().mvalue();
- this.borderStyle =
- this.properties.get("border-style").getEnum();
this. id = this.properties.get("id").getString();
this.omitHeaderAtBreak = this.properties.get("table-omit-header-at-break").getEnum() == TableOmitHeaderAtBreak.TRUE;
}
this.areaContainer =
- new AreaContainer(fs, 0, 0, area.getAllocationWidth(),
+ new AreaContainer(propMgr.getFontState(area.getFontInfo()), 0, 0, area.getAllocationWidth(),
area.spaceLeft(), Position.STATIC);
areaContainer.foCreator=this; // G Seshadri
areaContainer.setPage(area.getPage());
areaContainer.setBackgroundColor(backgroundColor);
- areaContainer.setBorderStyle(borderStyle, borderStyle,
- borderStyle, borderStyle);
- areaContainer.setBorderWidth(borderWidth, borderWidth,
- borderWidth, borderWidth);
- areaContainer.setBorderColor(borderColor, borderColor,
- borderColor, borderColor);
+ areaContainer.setBorderAndPadding(propMgr.getBorderAndPadding());
areaContainer.start();
areaContainer.setAbsoluteHeight(area.getAbsoluteHeight());
return new TableBody.Maker();
}
- FontState fs;
int spaceBefore;
int spaceAfter;
ColorType backgroundColor;
- ColorType borderColor;
- int borderWidth;
- int borderStyle;
String id;
Vector columns;
}
if (this.marker == START) {
- String fontFamily =
- this.properties.get("font-family").getString();
- String fontStyle =
- this.properties.get("font-style").getString();
- String fontWeight =
- this.properties.get("font-weight").getString();
- int fontSize =
- this.properties.get("font-size").getLength().mvalue();
- // font-variant support
- // added by Eric SCHAEFFER
- int fontVariant =
- this.properties.get("font-variant").getEnum();
-
- this.fs = new FontState(area.getFontInfo(), fontFamily,
- fontStyle, fontWeight, fontSize, fontVariant);
this.spaceBefore = this.properties.get(
"space-before.optimum").getLength().mvalue();
"space-after.optimum").getLength().mvalue();
this.backgroundColor = this.properties.get(
"background-color").getColorType();
- this.borderColor =
- this.properties.get("border-color").getColorType();
- this.borderWidth = this.properties.get(
- "border-width").getLength().mvalue();
- this.borderStyle =
- this.properties.get("border-style").getEnum();
this.id = this.properties.get("id").getString();
area.getIDReferences().createID(id);
area.getIDReferences().configureID(id, area);
}
- this.areaContainer = new AreaContainer(fs, -area.borderWidthLeft,
- -area.borderWidthTop + area.getHeight(),
+ this.areaContainer = new AreaContainer(propMgr.getFontState(area.getFontInfo()),
+ -area.getBorderLeftWidth(),
+ -area.getBorderTopWidth() + area.getHeight(),
area.getAllocationWidth(), area.spaceLeft(),
Position.RELATIVE);
areaContainer.foCreator=this; // G Seshadri
areaContainer.setPage(area.getPage());
areaContainer.setBackgroundColor(backgroundColor);
- areaContainer.setBorderStyle(borderStyle, borderStyle,
- borderStyle, borderStyle);
- areaContainer.setBorderWidth(borderWidth, borderWidth,
- borderWidth, borderWidth);
- areaContainer.setBorderColor(borderColor, borderColor,
- borderColor, borderColor);
+ areaContainer.setBorderAndPadding(propMgr.getBorderAndPadding());
areaContainer.start();
areaContainer.setAbsoluteHeight(area.getAbsoluteHeight());
int spaceAfter;
ColorType backgroundColor;
- FontState fs;
- ColorType borderTopColor;
- int borderTopWidth;
- int borderTopStyle;
- ColorType borderBottomColor;
- int borderBottomWidth;
- int borderBottomStyle;
- ColorType borderLeftColor;
- int borderLeftWidth;
- int borderLeftStyle;
- ColorType borderRightColor;
- int borderRightWidth;
- int borderRightStyle;
- int paddingTop;
- int paddingBottom;
- int paddingLeft;
- int paddingRight;
int position;
String id;
int numColumnsSpanned;
this.properties.get("number-columns-spanned").getNumber().intValue();
this.numRowsSpanned =
this.properties.get("number-rows-spanned").getNumber().intValue();
- String fontFamily =
- this.properties.get("font-family").getString();
- String fontStyle =
- this.properties.get("font-style").getString();
- String fontWeight =
- this.properties.get("font-weight").getString();
- int fontSize =
- this.properties.get("font-size").getLength().mvalue();
- // font-variant support
- // added by Eric SCHAEFFER
- int fontVariant =
- this.properties.get("font-variant").getEnum();
-
- this.fs = new FontState(area.getFontInfo(), fontFamily,
- fontStyle, fontWeight, fontSize, fontVariant);
-
- this.borderTopColor =
- this.properties.get("border-color").getColorType();
- this.borderBottomColor = this.borderTopColor;
- this.borderLeftColor = this.borderTopColor;
- this.borderRightColor = this.borderTopColor;
- if (this.borderTopColor == null) {
- this.borderTopColor =
- this.properties.get("border-top-color").getColorType();
- this.borderBottomColor =
- this.properties.get("border-bottom-color").getColorType();
- this.borderLeftColor =
- this.properties.get("border-left-color").getColorType();
- this.borderRightColor =
- this.properties.get("border-right-color").getColorType();
- }
- this.borderTopWidth =
- this.properties.get("border-width").getLength().mvalue();
- this.borderBottomWidth = this.borderTopWidth;
- this.borderLeftWidth = this.borderTopWidth;
- this.borderRightWidth = this.borderTopWidth;
- if (this.borderTopWidth == 0) {
- this.borderTopWidth =
- this.properties.get("border-top-width").getLength().mvalue();
- this.borderBottomWidth =
- this.properties.get("border-bottom-width").getLength().mvalue();
- this.borderLeftWidth =
- this.properties.get("border-left-width").getLength().mvalue();
- this.borderRightWidth =
- this.properties.get("border-right-width").getLength().mvalue();
- }
- this.borderTopStyle =
- this.properties.get("border-style").getEnum();
- this.borderBottomStyle = this.borderTopStyle;
- this.borderLeftStyle = this.borderTopStyle;
- this.borderRightStyle = this.borderTopStyle;
- if (this.borderTopStyle == 0) {
- this.borderTopStyle =
- this.properties.get("border-top-style").getEnum();
- this.borderBottomStyle =
- this.properties.get("border-bottom-style").getEnum();
- this.borderLeftStyle =
- this.properties.get("border-left-style").getEnum();
- this.borderRightStyle =
- this.properties.get("border-right-style").getEnum();
- }
- this.paddingTop =
- this.properties.get("padding").getLength().mvalue();
- this.paddingLeft = this.paddingTop;
- this.paddingRight = this.paddingTop;
- this.paddingBottom = this.paddingTop;
- if (this.paddingTop == 0) {
- this.paddingTop =
- this.properties.get("padding-top").getLength().mvalue();
- this.paddingLeft =
- this.properties.get("padding-left").getLength().mvalue();
- this.paddingBottom =
- this.properties.get("padding-bottom").getLength().mvalue();
- this.paddingRight =
- this.properties.get("padding-right").getLength().mvalue();
- }
this.spaceBefore =
this.properties.get("space-before.optimum").getLength().mvalue();
}
this.areaContainer =
- new AreaContainer(fs, startOffset - area.borderWidthLeft,
- - area.borderWidthTop + ((this.marker ==0) ? spaceBefore : 0),
+ new AreaContainer(propMgr.getFontState(area.getFontInfo()),
+ startOffset - area.getBorderLeftWidth(),
+ - area.getBorderTopWidth() + ((this.marker ==0) ? spaceBefore : 0),
width, area.spaceLeft(), Position.RELATIVE);
areaContainer.foCreator=this; // G Seshadri
areaContainer.setPage(area.getPage());
- areaContainer.setPadding(paddingTop, paddingLeft, paddingBottom,
- paddingRight);
- areaContainer.setBackgroundColor(backgroundColor);
- areaContainer.setBorderStyle(borderTopStyle, borderLeftStyle,
- borderBottomStyle, borderRightStyle);
- areaContainer.setBorderWidth(borderTopWidth, borderLeftWidth,
- borderBottomWidth, borderRightWidth);
- areaContainer.setBorderColor(borderTopColor, borderLeftColor,
- borderBottomColor, borderRightColor);
+ areaContainer.setBorderAndPadding(propMgr.getBorderAndPadding());
areaContainer.start();
areaContainer.setAbsoluteHeight(area.getAbsoluteHeight());
public class TableColumn extends FObj {
- FontState fs;
ColorType backgroundColor;
- ColorType borderTopColor;
- int borderTopWidth;
- int borderTopStyle;
- ColorType borderBottomColor;
- int borderBottomWidth;
- int borderBottomStyle;
- ColorType borderLeftColor;
- int borderLeftWidth;
- int borderLeftStyle;
- ColorType borderRightColor;
- int borderRightWidth;
- int borderRightStyle;
- int paddingTop;
- int paddingBottom;
- int paddingLeft;
- int paddingRight;
int columnWidth;
int columnOffset;
}
if (this.marker == START) {
- String fontFamily =
- this.properties.get("font-family").getString();
- String fontStyle =
- this.properties.get("font-style").getString();
- String fontWeight =
- this.properties.get("font-weight").getString();
- int fontSize =
- this.properties.get("font-size").getLength().mvalue();
- // font-variant support
- // added by Eric SCHAEFFER
- int fontVariant =
- this.properties.get("font-variant").getEnum();
-
- this.fs = new FontState(area.getFontInfo(), fontFamily,
- fontStyle, fontWeight, fontSize, fontVariant);
-
this.backgroundColor =
this.properties.get("background-color").getColorType();
- this.borderTopColor =
- this.properties.get("border-color").getColorType();
- this.borderBottomColor = this.borderTopColor;
- this.borderLeftColor = this.borderTopColor;
- this.borderRightColor = this.borderTopColor;
- if (this.borderTopColor == null) {
- this.borderTopColor =
- this.properties.get("border-top-color").getColorType();
- this.borderBottomColor =
- this.properties.get("border-bottom-color").getColorType();
- this.borderLeftColor =
- this.properties.get("border-left-color").getColorType();
- this.borderRightColor =
- this.properties.get("border-right-color").getColorType();
- }
- this.borderTopWidth =
- this.properties.get("border-width").getLength().mvalue();
- this.borderBottomWidth = this.borderTopWidth;
- this.borderLeftWidth = this.borderTopWidth;
- this.borderRightWidth = this.borderTopWidth;
- if (this.borderTopWidth == 0) {
- this.borderTopWidth =
- this.properties.get("border-top-width").getLength().mvalue();
- this.borderBottomWidth =
- this.properties.get("border-bottom-width").getLength().mvalue();
- this.borderLeftWidth =
- this.properties.get("border-left-width").getLength().mvalue();
- this.borderRightWidth =
- this.properties.get("border-right-width").getLength().mvalue();
- }
- this.borderTopStyle =
- this.properties.get("border-style").getEnum();
- this.borderBottomStyle = this.borderTopStyle;
- this.borderLeftStyle = this.borderTopStyle;
- this.borderRightStyle = this.borderTopStyle;
- if (this.borderTopStyle == 0) {
- this.borderTopStyle =
- this.properties.get("border-top-style").getEnum();
- this.borderBottomStyle =
- this.properties.get("border-bottom-style").getEnum();
- this.borderLeftStyle =
- this.properties.get("border-left-style").getEnum();
- this.borderRightStyle =
- this.properties.get("border-right-style").getEnum();
- }
- this.paddingTop =
- this.properties.get("padding").getLength().mvalue();
- this.paddingLeft = this.paddingTop;
- this.paddingRight = this.paddingTop;
- this.paddingBottom = this.paddingTop;
- if (this.paddingTop == 0) {
- this.paddingTop =
- this.properties.get("padding-top").getLength().mvalue();
- this.paddingLeft =
- this.properties.get("padding-left").getLength().mvalue();
- this.paddingBottom =
- this.properties.get("padding-bottom").getLength().mvalue();
- this.paddingRight =
- this.properties.get("padding-right").getLength().mvalue();
- }
+
this.columnWidth =
this.properties.get("column-width").getLength().mvalue();
}
this.areaContainer =
- new AreaContainer(fs, columnOffset - area.borderWidthLeft, -area.borderWidthTop, columnWidth,
+ new AreaContainer(propMgr.getFontState(area.getFontInfo()),
+ columnOffset - area.getBorderLeftWidth(),
+ -area.getBorderTopWidth(), columnWidth,
area.getHeight(), Position.RELATIVE);
areaContainer.foCreator=this; // G Seshadri
areaContainer.setPage(area.getPage());
- areaContainer.setPadding(paddingTop, paddingLeft, paddingBottom,
- paddingRight);
- areaContainer.setBackgroundColor(backgroundColor);
- areaContainer.setBorderStyle(borderTopStyle, borderLeftStyle,
- borderBottomStyle, borderRightStyle);
- areaContainer.setBorderWidth(borderTopWidth, borderLeftWidth,
- borderBottomWidth, borderRightWidth);
- areaContainer.setBorderColor(borderTopColor, borderLeftColor,
- borderBottomColor, borderRightColor);
- areaContainer.setHeight(area.getHeight());
+ areaContainer.setBorderAndPadding(propMgr.getBorderAndPadding());
+ areaContainer.setHeight(area.getHeight());
area.addChild(areaContainer);
return new Status(Status.OK);
boolean setup = false;
- FontState fs;
int spaceBefore;
int spaceAfter;
int breakBefore;
ColorType backgroundColor;
String id;
- ColorType borderTopColor;
- int borderTopWidth;
- int borderTopStyle;
- ColorType borderBottomColor;
- int borderBottomWidth;
- int borderBottomStyle;
- ColorType borderLeftColor;
- int borderLeftWidth;
- int borderLeftStyle;
- ColorType borderRightColor;
- int borderRightWidth;
- int borderRightStyle;
- int paddingTop;
- int paddingBottom;
- int paddingLeft;
- int paddingRight;
KeepValue keepWithNext;
KeepValue keepWithPrevious;
}
public void doSetup(Area area) throws FOPException {
- String fontFamily = this.properties.get("font-family").getString();
- String fontStyle = this.properties.get("font-style").getString();
- String fontWeight = this.properties.get("font-weight").getString();
- int fontSize =
- this.properties.get("font-size").getLength().mvalue();
- // font-variant support
- // added by Eric SCHAEFFER
- int fontVariant =
- this.properties.get("font-variant").getEnum();
-
- this.fs = new FontState(area.getFontInfo(), fontFamily,
- fontStyle, fontWeight, fontSize, fontVariant);
this.spaceBefore = this.properties.get(
"space-before.optimum").getLength().mvalue();
this.breakAfter = this.properties.get("break-after").getEnum();
this.backgroundColor =
this.properties.get("background-color").getColorType();
- this.borderTopColor =
- this.properties.get("border-color").getColorType();
- this.borderBottomColor = this.borderTopColor;
- this.borderLeftColor = this.borderTopColor;
- this.borderRightColor = this.borderTopColor;
- if (this.borderTopColor == null) {
- this.borderTopColor = this.properties.get(
- "border-top-color").getColorType();
- this.borderBottomColor = this.properties.get(
- "border-bottom-color").getColorType();
- this.borderLeftColor = this.properties.get(
- "border-left-color").getColorType();
- this.borderRightColor = this.properties.get(
- "border-right-color").getColorType();
- }
- this.borderTopWidth =
- this.properties.get("border-width").getLength().mvalue();
- this.borderBottomWidth = this.borderTopWidth;
- this.borderLeftWidth = this.borderTopWidth;
- this.borderRightWidth = this.borderTopWidth;
- if (this.borderTopWidth == 0) {
- this.borderTopWidth = this.properties.get(
- "border-top-width").getLength().mvalue();
- this.borderBottomWidth = this.properties.get(
- "border-bottom-width").getLength().mvalue();
- this.borderLeftWidth = this.properties.get(
- "border-left-width").getLength().mvalue();
- this.borderRightWidth = this.properties.get(
- "border-right-width").getLength().mvalue();
- }
- this.borderTopStyle = this.properties.get("border-style").getEnum();
- this.borderBottomStyle = this.borderTopStyle;
- this.borderLeftStyle = this.borderTopStyle;
- this.borderRightStyle = this.borderTopStyle;
- if (this.borderTopStyle == 0) {
- this.borderTopStyle =
- this.properties.get("border-top-style").getEnum();
- this.borderBottomStyle =
- this.properties.get("border-bottom-style").getEnum();
- this.borderLeftStyle =
- this.properties.get("border-left-style").getEnum();
- this.borderRightStyle =
- this.properties.get("border-right-style").getEnum();
- }
+
this.keepWithNext = getKeepValue("keep-with-next.within-column");
this.keepWithPrevious = getKeepValue("keep-with-previous.within-column");
- this.paddingTop =
- this.properties.get("padding").getLength().mvalue();
- this.paddingLeft = this.paddingTop;
- this.paddingRight = this.paddingTop;
- this.paddingBottom = this.paddingTop;
- if (this.paddingTop == 0) {
- this.paddingTop = this.properties.get(
- "padding-top").getLength().mvalue();
- this.paddingLeft = this.properties.get(
- "padding-left").getLength().mvalue();
- this.paddingBottom = this.properties.get(
- "padding-bottom").getLength().mvalue();
- this.paddingRight = this.properties.get(
- "padding-right").getLength().mvalue();
- }
+
this.id = this.properties.get("id").getString();
setup = true;
}
area.getIDReferences().configureID(id, area);
}
- this.areaContainer = new AreaContainer(fs, -area.borderWidthLeft,
- -area.borderWidthTop, area.getAllocationWidth(),
+ this.areaContainer = new AreaContainer(propMgr.getFontState(area.getFontInfo()),
+ -area.getBorderLeftWidth(),
+ -area.getBorderTopWidth(), area.getAllocationWidth(),
area.spaceLeft(), Position.RELATIVE);
areaContainer.foCreator=this; // G Seshadri
areaContainer.setPage(area.getPage());
- areaContainer.setPadding(paddingTop, paddingLeft,
- paddingBottom, paddingRight);
+
areaContainer.setBackgroundColor(backgroundColor);
- areaContainer.setBorderStyle(borderTopStyle, borderLeftStyle,
- borderBottomStyle, borderRightStyle);
- areaContainer.setBorderWidth(borderTopWidth, borderLeftWidth,
- borderBottomWidth, borderRightWidth);
- areaContainer.setBorderColor(borderTopColor, borderLeftColor,
- borderBottomColor, borderRightColor);
+ areaContainer.setBorderAndPadding(propMgr.getBorderAndPadding());
areaContainer.start();
areaContainer.setAbsoluteHeight(area.getAbsoluteHeight());
areaContainer.end();
area.addDisplaySpace(largestCellHeight +
areaContainer.getPaddingTop() +
- areaContainer.borderWidthTop +
+ areaContainer.getBorderTopWidth() +
areaContainer.getPaddingBottom() +
- areaContainer.borderWidthBottom);
+ areaContainer.getBorderBottomWidth());
// bug fix from Eric Schaeffer
//area.increaseHeight(largestCellHeight);