ColorType borderRightColor;
int borderRightWidth;
int borderRightStyle;
+ int paddingTop;
+ int paddingBottom;
+ int paddingLeft;
+ int paddingRight;
+
int columnWidth;
int columnOffset;
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();
new AreaContainer(fs, columnOffset - area.borderWidthLeft, -area.borderWidthTop, columnWidth,
area.getHeight(), Position.RELATIVE);
areaContainer.setPage(area.getPage());
+ areaContainer.setPadding(paddingTop, paddingLeft, paddingBottom,
+ paddingRight);
areaContainer.setBackgroundColor(backgroundColor);
areaContainer.setBorderStyle(borderTopStyle, borderLeftStyle,
borderBottomStyle, borderRightStyle);
ColorType borderRightColor;
int borderRightWidth;
int borderRightStyle;
+ int paddingTop;
+ int paddingBottom;
+ int paddingLeft;
+ int paddingRight;
int widthOfCellsSoFar = 0;
int largestCellHeight = 0;
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.id=
this.properties.get("id").getString();
area.getAllocationWidth(),
area.spaceLeft(), Position.RELATIVE);
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);
area.addChild(areaContainer);
areaContainer.end();
- area.addDisplaySpace(largestCellHeight);
+ area.addDisplaySpace(largestCellHeight
+ + areaContainer.getPaddingTop()
+ + areaContainer.borderWidthTop
+ + areaContainer.getPaddingBottom()
+ + areaContainer.borderWidthBottom);
// bug fix from Eric Schaeffer
//area.increaseHeight(largestCellHeight);