*/
public class CellAttributes {
+ // ------------------------------------------------------------------------
+ // Variables --------------------------------------------------------------
+ // ------------------------------------------------------------------------
+
/**
* Bold attribute.
*/
private boolean bold;
+ /**
+ * Blink attribute.
+ */
+ private boolean blink;
+
+ /**
+ * Reverse attribute.
+ */
+ private boolean reverse;
+
+ /**
+ * Underline attribute.
+ */
+ private boolean underline;
+
+ /**
+ * Protected attribute.
+ */
+ private boolean protect;
+
+ /**
+ * Foreground color. Color.WHITE, Color.RED, etc.
+ */
+ private Color foreColor;
+
+ /**
+ * Background color. Color.WHITE, Color.RED, etc.
+ */
+ private Color backColor;
+
+ // ------------------------------------------------------------------------
+ // Constructors -----------------------------------------------------------
+ // ------------------------------------------------------------------------
+
+ /**
+ * Public constructor sets default values of the cell to white-on-black,
+ * no bold/blink/reverse/underline/protect.
+ *
+ * @see #reset()
+ */
+ public CellAttributes() {
+ reset();
+ }
+
+ /**
+ * Public constructor makes a copy from another instance.
+ *
+ * @param that another CellAttributes instance
+ * @see #reset()
+ */
+ public CellAttributes(final CellAttributes that) {
+ setTo(that);
+ }
+
+ // ------------------------------------------------------------------------
+ // CellAttributes ---------------------------------------------------------
+ // ------------------------------------------------------------------------
+
/**
* Getter for bold.
*
this.bold = bold;
}
- /**
- * Blink attribute.
- */
- private boolean blink;
-
/**
* Getter for blink.
*
this.blink = blink;
}
- /**
- * Reverse attribute.
- */
- private boolean reverse;
-
/**
* Getter for reverse.
*
this.reverse = reverse;
}
- /**
- * Underline attribute.
- */
- private boolean underline;
-
/**
* Getter for underline.
*
this.underline = underline;
}
- /**
- * Protected attribute.
- */
- private boolean protect;
-
/**
* Getter for protect.
*
this.protect = protect;
}
- /**
- * Foreground color. Color.WHITE, Color.RED, etc.
- */
- private Color foreColor;
-
/**
* Getter for foreColor.
*
this.foreColor = foreColor;
}
- /**
- * Background color. Color.WHITE, Color.RED, etc.
- */
- private Color backColor;
-
/**
* Getter for backColor.
*
backColor = Color.BLACK;
}
- /**
- * Public constructor sets default values of the cell to white-on-black,
- * no bold/blink/reverse/underline/protect.
- *
- * @see #reset()
- */
- public CellAttributes() {
- reset();
- }
-
- /**
- * Public constructor makes a copy from another instance.
- *
- * @param that another CellAttributes instance
- * @see #reset()
- */
- public CellAttributes(final CellAttributes that) {
- setTo(that);
- }
-
/**
* Comparison check. All fields must match to return true.
*