X-Git-Url: http://git.nikiroo.be/?a=blobdiff_plain;f=src%2Fjexer%2Fbits%2FCell.java;h=f7b71a5f43a2b4cd8c1c1f8cc44bb54e5bae0948;hb=0525b2ed026e0d510fdf23f6d8f4cb4562a17e0b;hp=eaaab6b7695c5a17b16d775545e0264df8a5df8c;hpb=8a632d71fde904c0a9f49259105aa90f5fbe2fea;p=nikiroo-utils.git diff --git a/src/jexer/bits/Cell.java b/src/jexer/bits/Cell.java index eaaab6b..f7b71a5 100644 --- a/src/jexer/bits/Cell.java +++ b/src/jexer/bits/Cell.java @@ -33,11 +33,45 @@ package jexer.bits; */ public final class Cell extends CellAttributes { + // ------------------------------------------------------------------------ + // Variables -------------------------------------------------------------- + // ------------------------------------------------------------------------ + /** * The character at this cell. */ private char ch; + // ------------------------------------------------------------------------ + // Constructors ----------------------------------------------------------- + // ------------------------------------------------------------------------ + + /** + * Public constructor sets default values of the cell to blank. + * + * @see #isBlank() + * @see #reset() + */ + public Cell() { + reset(); + } + + /** + * Public constructor sets the character. Attributes are the same as + * default. + * + * @param ch character to set to + * @see #reset() + */ + public Cell(final char ch) { + reset(); + this.ch = ch; + } + + // ------------------------------------------------------------------------ + // Cell ------------------------------------------------------------------- + // ------------------------------------------------------------------------ + /** * Getter for cell character. * @@ -80,6 +114,7 @@ public final class Cell extends CellAttributes { && !isReverse() && !isUnderline() && !isProtect() + && !isRGB() && (ch == ' ') ) { return true; @@ -149,28 +184,6 @@ public final class Cell extends CellAttributes { super.setTo(that); } - /** - * Public constructor sets default values of the cell to blank. - * - * @see #isBlank() - * @see #reset() - */ - public Cell() { - reset(); - } - - /** - * Public constructor sets the character. Attributes are the same as - * default. - * - * @param ch character to set to - * @see #reset() - */ - public Cell(final char ch) { - reset(); - this.ch = ch; - } - /** * Make human-readable description of this Cell. *