|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--jcurzez.Pen
|
+--jcurzez.FillingPen
FillingPen class has a cell attached,
which represents the blank cell. It is used for filling new room created
when one deletes a character,
inserts a new line, and so
on. Anytime this filling pen is updated, the empty cell is updated.
N.B: this class is package private.
AbstractWindow,
Cell| Field Summary | |
(package private) Cell |
blankCell
The blank cell. |
| Fields inherited from class jcurzez.Pen |
attribute, background, foreground |
| Constructor Summary | |
(package private) |
FillingPen()
Creates a new FillingPen. |
(package private) |
FillingPen(int c,
ForegroundColor foreground,
BackgroundColor background,
Attribute attribute)
Creates a new FillingPen with specified attributes. |
(package private) |
FillingPen(Pen p)
Creates a new FillingPen, with specified pen. |
| Method Summary | |
void |
setAttribute(Attribute attribute)
Modifies blankCell. |
void |
setBackgroundColor(BackgroundColor background)
Modifies blankCell. |
void |
setForegroundColor(ForegroundColor foreground)
Modifies blankCell. |
| Methods inherited from class jcurzez.Pen |
equals, getAttribute, getBackgroundColor, getForegroundColor, toString |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
final Cell blankCell
this is changed.
| Constructor Detail |
FillingPen()
FillingPen.
It defaults to white on black, with normal attributes.
FillingPen(Pen p)
FillingPen, with specified pen.
p - the pen to use for filling.
FillingPen(int c,
ForegroundColor foreground,
BackgroundColor background,
Attribute attribute)
FillingPen with specified attributes.
c - the character to use for filling
(should be ' ' ).foreground - the foreground color to use for filling.background - the background color to use for filling.attribute - the attribute to use for filling.| Method Detail |
public void setBackgroundColor(BackgroundColor background)
blankCell.
setBackgroundColor in class Penjcurzez.Penbackground - the new background color.public void setForegroundColor(ForegroundColor foreground)
blankCell.
setForegroundColor in class Penjcurzez.Penforeground - the new foreground color.public void setAttribute(Attribute attribute)
blankCell.
setAttribute in class Penjcurzez.Penattribute - the new attribute.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||