return content;
}
-// protected void setMargins(
-// double before, double after, double start, double end) {
-// spaces.setBefore(before);
-// spaces.setAfter(after);
-// spaces.setStart(start);
-// spaces.setEnd(end);
-// }
+ protected void setMargins(
+ double before, double after, double start, double end) {
+ spaces.setBefore(before);
+ spaces.setAfter(after);
+ spaces.setStart(start);
+ spaces.setEnd(end);
+ }
/** Translates this area into position in its parent area */
protected AffineTransform translation = null;
/**
} catch (PropertyException e) {
throw new RuntimeException(e.getMessage());
}
- content = new ContentRectangle(this, contentWritingMode);
- //padding = new PaddingRectangle(frameWritingMode, content, 0.0, 0.0);
+ content = new ContentRectangle(this);
+ padding = content.getPadding();
borders = padding.getBorders();
spaces = borders.getSpaces();
}
}
}
- protected int getWritingMode() {
+ public int getWritingMode() {
return writingMode;
}
- protected int getContentWritingMode() {
+ public int getContentWritingMode() {
return contentWritingMode;
}
- protected int getFrameWritingMode() {
+ public int getFrameWritingMode() {
return frameWritingMode;
}