git://git.nikiroo.be
/
fanfix.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Refactoring - boolean getters and miscellaneous
[fanfix.git]
/
src
/
jexer
/
bits
/
Cell.java
diff --git
a/src/jexer/bits/Cell.java
b/src/jexer/bits/Cell.java
index 511963c28ac23c0f458addcafc56090bb7697bb8..e75680864fb60dc27910a845b27db6c5d7bfb2d1 100644
(file)
--- a/
src/jexer/bits/Cell.java
+++ b/
src/jexer/bits/Cell.java
@@
-77,11
+77,11
@@
public final class Cell extends CellAttributes {
public boolean isBlank() {
if ((getForeColor().equals(Color.WHITE))
&& (getBackColor().equals(Color.BLACK))
public boolean isBlank() {
if ((getForeColor().equals(Color.WHITE))
&& (getBackColor().equals(Color.BLACK))
- && !
get
Bold()
- && !
get
Blink()
- && !
get
Reverse()
- && !
get
Underline()
- && !
get
Protect()
+ && !
is
Bold()
+ && !
is
Blink()
+ && !
is
Reverse()
+ && !
is
Underline()
+ && !
is
Protect()
&& (ch == ' ')
) {
return true;
&& (ch == ' ')
) {
return true;
@@
-178,6
+178,6
@@
public final class Cell extends CellAttributes {
@Override
public String toString() {
return String.format("fore: %d back: %d bold: %s blink: %s ch %c",
@Override
public String toString() {
return String.format("fore: %d back: %d bold: %s blink: %s ch %c",
- getForeColor(), getBackColor(),
getBold(), get
Blink(), ch);
+ getForeColor(), getBackColor(),
isBold(), is
Blink(), ch);
}
}
}
}