|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--jcurzez.AbstractWindow | +--jcurzez.Area
An area. Unlike Screen
, linewrap
and
scroll
can be specified on creation.
Field Summary |
Fields inherited from class jcurzez.AbstractWindow |
buffer, cat, cursor, id, linewrap, parent, scroll |
Constructor Summary | |
Area(AbstractWindow parent,
int x1,
int y1,
int x2,
int y2,
boolean linewrap,
boolean scroll)
Constructs a new wndow with specified parent, coordinates, and properties. |
|
Area(AbstractWindow parent,
Rectangle rectangle,
boolean linewrap,
boolean scroll)
Constructs a new Area with a parent, specified
bounds and properties. |
|
Area(int x1,
int y1,
int x2,
int y2,
boolean linewrap,
boolean scroll)
Contructs a new area with specified bounds and properties for linewrap and scroll. |
|
Area(Rectangle rectangle)
Creates a new Area using specified
Rectangle . |
|
Area(Rectangle rectangle,
boolean linewrap,
boolean scroll)
Creates a new Area with specified bounds and
properties. |
Method Summary | |
void |
beep()
Emits a beep. |
void |
gotoXY(int x,
int y)
Invokes parent's gotoXY method. |
void |
printCell(int x,
int y,
Cell cell)
Invokes parent's printCell method. |
void |
update()
Updates the area. |
Methods inherited from class jcurzez.AbstractWindow |
clear, clearToBottom, clearToEndOfLine, copyCellsAt, deleteChar, deleteLine, equals, getCellsAt, getCursor, getId, getParent, getRectangle, getTabulationSize, hashCode, hasLinesWrapped, insertChar, insertLine, insertString, printChar, printString, refresh, removeExtraChars, toString, touch, wouldScroll |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public Area(int x1, int y1, int x2, int y2, boolean linewrap, boolean scroll)
x1
- x coordinate of the top left corner.y1
- y coordinate of the top left corner.x2
- x coordinate of the bottom right corner.y2
- y coordinate of the bottom right corner.linewrap
- true
to allow line wrapping.scroll
- true
to allow autoscrolling.public Area(Rectangle rectangle)
Area
using specified
Rectangle
. The parent
of this area will be the screen.
rectangle
- the bounds for this area.public Area(Rectangle rectangle, boolean linewrap, boolean scroll)
Area
with specified bounds and
properties. The parent of this area will be the screen.
rectangle
- the bounds for this area.linewrap
- true
to allow line wrapping.scroll
- true
to allow autoscrolling.public Area(AbstractWindow parent, Rectangle rectangle, boolean linewrap, boolean scroll)
Area
with a parent, specified
bounds and properties.
parent
- the parent of this area.rectangle
- the bounds for this area.linewrap
- true
to allow line wrapping.scroll
- true
to allow autoscrolling.public Area(AbstractWindow parent, int x1, int y1, int x2, int y2, boolean linewrap, boolean scroll)
parent
- the parent of this area.x1
- x coordinate of the top left corner.y1
- y coordinate of the top left corner.x2
- x coordinate of the bottom right corner.y2
- y coordinate of the bottom right corner.linewrap
- true
to allow line wrapping.scroll
- true
to allow autoscrolling.Method Detail |
public void beep()
beep
in class AbstractWindow
jcurzez.AbstractWindow
ScreenPeer.beep()
public void update()
update
in class AbstractWindow
jcurzez.AbstractWindow
ScreenPeer.update()
public void printCell(int x, int y, Cell cell)
printCell
method.
printCell
in class AbstractWindow
jcurzez.AbstractWindow
x
- the x coordinate where to print the cell.y
- the y coordinate where to print the cell.cell
- the cell to print.ScreenPeer.printCell(int, int, jcurzez.Cell)
public void gotoXY(int x, int y)
gotoXY
method.
gotoXY
in class AbstractWindow
jcurzez.AbstractWindow
x
- the x coordinate where to move the cursor.y
- the y coordinate where to move the cursor.ScreenPeer.gotoXY(int, int)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |