org.apache.fop.render.txt.border
Class BorderManager
java.lang.Object
org.apache.fop.render.txt.border.BorderManager
public class BorderManager
extends java.lang.Object
This keeps all information about borders for current processed page.
BorderManager(int pageWidth, int pageHeight, TXTState state) - Constructs BorderManger, using
pageWidth and
pageHeight for creating borderInfo .
|
void | addBorderElement(int x, int y, int style, int type) - Adds border element to
borderInfo .
|
Character | getCharacter(int x, int y)
|
int | getHeight()
|
int | getStartX()
|
int | getStartY()
|
int | getWidth()
|
void | setHeight(int height) - Sets height of current processed border.
|
void | setStartX(int startX) - Sets x-coordinate of upper left point of current processed border.
|
void | setStartY(int startY) - Sets y-coordinate of upper left point of current processed border.
|
void | setWidth(int width) - Sets width of current processed border.
|
BorderManager
public BorderManager(int pageWidth,
int pageHeight,
TXTState state)
Constructs BorderManger, using pageWidth
and
pageHeight
for creating borderInfo
.
pageWidth
- page widthpageHeight
- page heightstate
- TXTState
addBorderElement
public void addBorderElement(int x,
int y,
int style,
int type)
Adds border element to borderInfo
.
x
- x-coordinatey
- y-coordinatestyle
- border-styletype
- border element type, binary representation of wich gives
information about availability or absence of corresponding side.
getCharacter
public Character getCharacter(int x,
int y)
x
- x-coordinatey
- y-coordinate
- if border element at point (x,y) is available, returns instance
of Character, created on char, given by corresponding border element,
otherwise returns null.
getHeight
public int getHeight()
- height of current processed border.
getStartX
public int getStartX()
- x-coordinate of upper left point of current processed border.
getStartY
public int getStartY()
- y-coordinate of upper left point of current processed border.
getWidth
public int getWidth()
- width of current processed border.
setHeight
public void setHeight(int height)
Sets height of current processed border.
height
- height of border
setStartX
public void setStartX(int startX)
Sets x-coordinate of upper left point of current processed border.
startX
- x-coordinate of upper left border's point.
setStartY
public void setStartY(int startY)
Sets y-coordinate of upper left point of current processed border.
startY
- y-coordinate of upper left border's point.
setWidth
public void setWidth(int width)
Sets width of current processed border.
Copyright 1999-2007 The Apache Software Foundation. All Rights Reserved.