public class Cell
extends java.lang.Object
CellAttributes class to reduce memory usage
(pattern "Flyweight" [Gamma94]).| Constructor and Description |
|---|
Cell()
Creates
Cell object having '\000' value
with default attributes. |
Cell(Cell cell)
Copy constructor.
|
Cell(char value)
Creates
Cell object giving it's value. |
Cell(char value,
CellAttributes attributes)
Creates
Cell object giving value and attributes. |
| Modifier and Type | Method and Description |
|---|---|
CellAttributes |
getAttributes()
Returns current attributes of
Cell object. |
char |
getValue()
Returns current value of
Cell object. |
boolean |
isTabstop()
Checks if this
Cell object has tabstop. |
void |
reset()
Resets value and attributes to default.
|
void |
setAttributes(CellAttributes attributes)
Sets current
Cell object attributes. |
void |
setTabstop(boolean tabstop)
Sets tabstop to this
Cell object. |
void |
setValue(char value)
Sets value of
Cell object. |
public Cell(char value,
CellAttributes attributes)
Cell object giving value and attributes.value - char value of created Cell object.attributes - Cell object attributes.public Cell(char value)
Cell object giving it's value.value - char value of created Cell object.public Cell()
Cell object having '\000' value
with default attributes.public Cell(Cell cell)
cell - Cell object to be copied.public void reset()
public char getValue()
Cell object.public void setValue(char value)
Cell object.value - new char value.public CellAttributes getAttributes()
Cell object.CellAttributes object that represent current
Cell object attributes.public void setAttributes(CellAttributes attributes)
Cell object attributes.attributes - CellAttributes object that must be used.public boolean isTabstop()
Cell object has tabstop.Cell object has tabstop.public void setTabstop(boolean tabstop)
Cell object.tabstop - true if this Cell object must have tabstop.Copyright © JSCAPE LLC. 1999-2021. All Rights Reserved