* This draws the background and border traits for an area given
* the position.
*
- * @param block the area to get the traits from
+ * @param area the area to get the traits from
* @param startx the start x position
* @param starty the start y position
* @param width the width of the area
* @param height the height of the area
*/
- protected void drawBackAndBorders(Area block,
+ protected void drawBackAndBorders(Area area,
float startx, float starty,
float width, float height) {
// draw background then border
Trait.Background back;
- back = (Trait.Background)block.getTrait(Trait.BACKGROUND);
+ back = (Trait.Background)area.getTrait(Trait.BACKGROUND);
if (back != null) {
endTextObject();
}
}
- BorderProps bps = (BorderProps)block.getTrait(Trait.BORDER_BEFORE);
+ BorderProps bps = (BorderProps)area.getTrait(Trait.BORDER_BEFORE);
if (bps != null) {
endTextObject();
currentStream.add(startx + width + " " + y1 + " l\n");
currentStream.add("S\n");
}
- bps = (BorderProps)block.getTrait(Trait.BORDER_AFTER);
+ bps = (BorderProps)area.getTrait(Trait.BORDER_AFTER);
if (bps != null) {
endTextObject();
currentStream.add((startx + width) + " " + (y1 + height) + " l\n");
currentStream.add("S\n");
}
- bps = (BorderProps)block.getTrait(Trait.BORDER_START);
+ bps = (BorderProps)area.getTrait(Trait.BORDER_START);
if (bps != null) {
endTextObject();
currentStream.add(x1 + " " + (starty + height) + " l\n");
currentStream.add("S\n");
}
- bps = (BorderProps)block.getTrait(Trait.BORDER_END);
+ bps = (BorderProps)area.getTrait(Trait.BORDER_END);
if (bps != null) {
endTextObject();