Crossfire JXClient, Trunk
|
Public Member Functions | |
Cell (SpreadSheet app, Color bgColor, Color fgColor, Color highlightColor, int width, int height) | |
void | deselect () |
String | getPrintString () |
String | getValueString () |
void | paint (Graphics g, int x, int y) |
String | parseFormula (String formula, Node node) |
String | parseValue (String formula, Node node) |
void | select () |
void | setRawValue (float f) |
void | setTransientValue (float f) |
void | setUnparsedValue (String s) |
void | setValue (float f) |
void | setValue (int type, String s) |
Public Attributes | |
int | type = Cell.VALUE |
Static Public Attributes | |
static final int | FORMULA = 3 |
static final int | LABEL = 1 |
static final int | URL = 2 |
static final int | VALUE = 0 |
Package Attributes | |
SpreadSheet | app |
Color | bgColor |
Color | fgColor |
int | height |
Color | highlightColor |
boolean | needRedisplay |
Node | parseRoot |
boolean | paused = false |
String | printString = "v" |
boolean | selected = false |
boolean | transientValue = false |
CellUpdater | updaterThread |
float | value |
String | valueString = "" |
int | width |
Definition at line 455 of file SpreadSheet.java.
Cell.Cell | ( | SpreadSheet | app, |
Color | bgColor, | ||
Color | fgColor, | ||
Color | highlightColor, | ||
int | width, | ||
int | height | ||
) |
Definition at line 478 of file SpreadSheet.java.
References app, bgColor, fgColor, height, highlightColor, needRedisplay, and width.
void Cell.deselect | ( | ) |
Definition at line 718 of file SpreadSheet.java.
References app, needRedisplay, paused, and selected.
Referenced by SpreadSheet.mousePressed().
String Cell.getPrintString | ( | ) |
Definition at line 709 of file SpreadSheet.java.
References printString.
Referenced by SpreadSheet.mousePressed().
String Cell.getValueString | ( | ) |
Definition at line 705 of file SpreadSheet.java.
References valueString.
Referenced by CellUpdater.run().
void Cell.paint | ( | Graphics | g, |
int | x, | ||
int | y | ||
) |
Definition at line 725 of file SpreadSheet.java.
References bgColor, fgColor, FORMULA, height, highlightColor, LABEL, needRedisplay, selected, transientValue, type, URL, VALUE, value, valueString, and width.
Referenced by SpreadSheet.paint(), and SpreadSheet.update().
String Cell.parseFormula | ( | String | formula, |
Node | node | ||
) |
Parse a spreadsheet formula. The syntax is defined as:
formula -> value formula -> value op value value -> '(' formula ')' value -> cell value -> <number> op -> '+' | '*' | '/' | '-' cell -> <letter><number>
Definition at line 542 of file SpreadSheet.java.
References Node.left, Node.OP, Node.op, parseValue(), Node.right, and Node.type.
Referenced by parseValue(), and setValue().
String Cell.parseValue | ( | String | formula, |
Node | node | ||
) |
Definition at line 598 of file SpreadSheet.java.
References Node.CELL, Node.column, parseFormula(), Node.row, Node.type, Node.VALUE, and Node.value.
Referenced by parseFormula().
void Cell.select | ( | ) |
Definition at line 713 of file SpreadSheet.java.
References paused, and selected.
Referenced by SpreadSheet.mousePressed().
void Cell.setRawValue | ( | float | f | ) |
Definition at line 493 of file SpreadSheet.java.
References value, and valueString.
Referenced by SpreadSheet.recalculate(), and setValue().
void Cell.setTransientValue | ( | float | f | ) |
Definition at line 507 of file SpreadSheet.java.
References app, needRedisplay, SpreadSheet.recalculate(), transientValue, and value.
Referenced by CellUpdater.run().
void Cell.setUnparsedValue | ( | String | s | ) |
Definition at line 514 of file SpreadSheet.java.
References FORMULA, LABEL, setValue(), URL, and VALUE.
Referenced by SpreadSheet.init().
void Cell.setValue | ( | float | f | ) |
Definition at line 498 of file SpreadSheet.java.
References app, needRedisplay, paused, printString, SpreadSheet.recalculate(), setRawValue(), type, VALUE, and valueString.
Referenced by SpreadSheet.setCurrentValue(), setUnparsedValue(), and setValue().
void Cell.setValue | ( | int | type, |
String | s | ||
) |
Definition at line 675 of file SpreadSheet.java.
References app, FORMULA, LABEL, needRedisplay, parseFormula(), parseRoot, paused, printString, SpreadSheet.recalculate(), CellUpdater.run, setValue(), type, updaterThread, URL, VALUE, and valueString.
|
package |
Definition at line 474 of file SpreadSheet.java.
Referenced by Cell(), deselect(), CellUpdater.run(), setTransientValue(), and setValue().
|
package |
Definition at line 469 of file SpreadSheet.java.
|
package |
Definition at line 470 of file SpreadSheet.java.
|
static |
Definition at line 460 of file SpreadSheet.java.
Referenced by paint(), SpreadSheet.recalculate(), SpreadSheetInput.selected(), setUnparsedValue(), and setValue().
|
package |
Definition at line 473 of file SpreadSheet.java.
|
package |
Definition at line 471 of file SpreadSheet.java.
|
static |
Definition at line 458 of file SpreadSheet.java.
Referenced by paint(), SpreadSheetInput.selected(), setUnparsedValue(), and setValue().
|
package |
Definition at line 462 of file SpreadSheet.java.
Referenced by Cell(), deselect(), paint(), SpreadSheet.recalculate(), setTransientValue(), and setValue().
|
package |
Definition at line 461 of file SpreadSheet.java.
Referenced by setValue().
|
package |
Definition at line 476 of file SpreadSheet.java.
Referenced by deselect(), CellUpdater.run(), select(), and setValue().
|
package |
Definition at line 467 of file SpreadSheet.java.
Referenced by getPrintString(), and setValue().
|
package |
Definition at line 463 of file SpreadSheet.java.
Referenced by deselect(), paint(), and select().
|
package |
Definition at line 464 of file SpreadSheet.java.
Referenced by paint(), and setTransientValue().
int Cell.type = Cell.VALUE |
Definition at line 465 of file SpreadSheet.java.
Referenced by paint(), and setValue().
|
package |
Definition at line 475 of file SpreadSheet.java.
Referenced by SpreadSheet.destroy(), and setValue().
|
static |
Definition at line 459 of file SpreadSheet.java.
Referenced by SpreadSheet.destroy(), paint(), SpreadSheetInput.selected(), setUnparsedValue(), and setValue().
|
static |
Definition at line 457 of file SpreadSheet.java.
Referenced by paint(), setUnparsedValue(), and setValue().
|
package |
Definition at line 468 of file SpreadSheet.java.
Referenced by SpreadSheet.evaluateFormula(), paint(), setRawValue(), and setTransientValue().
|
package |
Definition at line 466 of file SpreadSheet.java.
Referenced by getValueString(), paint(), setRawValue(), and setValue().
|
package |
Definition at line 472 of file SpreadSheet.java.