#49 reduce use of synchronized
[fanfix.git] / src / jexer / bits / Cell.java
index 5db5f4387bdcfbf00f785834918d16407f488547..4be433c7d33d8d05201fd6d3b869ff37e06cfa54 100644 (file)
@@ -134,6 +134,15 @@ public final class Cell extends CellAttributes {
         this.ch = ch;
     }
 
+    /**
+     * Public constructor creates a duplicate.
+     *
+     * @param cell the instance to copy
+     */
+    public Cell(final Cell cell) {
+        setTo(cell);
+    }
+
     // ------------------------------------------------------------------------
     // Cell -------------------------------------------------------------------
     // ------------------------------------------------------------------------
@@ -260,7 +269,7 @@ public final class Cell extends CellAttributes {
     /**
      * Setter for cell width.
      *
-     * @param ch new cell width, one of Width.SINGLE, Width.LEFT, or
+     * @param width new cell width, one of Width.SINGLE, Width.LEFT, or
      * Width.RIGHT
      */
     public void setWidth(final Width width) {