public class BorderManager extends Object
| Constructor and Description |
|---|
BorderManager(int pageWidth,
int pageHeight,
TXTState state)
Constructs BorderManger, using
pageWidth and
pageHeight for creating borderInfo. |
| Modifier and Type | Method and Description |
|---|---|
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.
|
public BorderManager(int pageWidth,
int pageHeight,
TXTState state)
pageWidth and
pageHeight for creating borderInfo.pageWidth - page widthpageHeight - page heightstate - TXTStatepublic void addBorderElement(int x,
int y,
int style,
int type)
borderInfo.x - x-coordinatey - y-coordinatestyle - border-styletype - border element type, binary representation of wich gives
information about availability or absence of corresponding side.public Character getCharacter(int x, int y)
x - x-coordinatey - y-coordinatepublic int getWidth()
public void setWidth(int width)
width - width of borderpublic int getHeight()
public void setHeight(int height)
height - height of borderpublic int getStartX()
public void setStartX(int startX)
startX - x-coordinate of upper left border's point.public int getStartY()
public void setStartY(int startY)
startY - y-coordinate of upper left border's point.Copyright © 2023 Apache Software Foundation. All rights reserved.