

Public Member Functions | |
| ColoredIntegerEditor () | |
| void | setAsText (String text) |
| Color | getBackgroundColor () |
| Color | getForegroundColor () |
| boolean | isPaintable () |
| void | paintValue (Graphics gfx, Rectangle rect) |
Private Attributes | |
| final ColoredEditorHelper | helper |
| cern::gp::explorer::test::helpers::ColoredIntegerEditor::ColoredIntegerEditor | ( | ) | [inline] |
Creates a new instance of ColoredInteger
References helper.
| Color cern::gp::explorer::test::helpers::ColoredIntegerEditor::getBackgroundColor | ( | ) | [inline] |
based on the Integer value, this method returns the background color. THe color is null if the value is 0, cyan if the value is dividable by 2 and magenta if not
Implements cern::gp::beans::editors::support::ColorMaster.
| Color cern::gp::explorer::test::helpers::ColoredIntegerEditor::getForegroundColor | ( | ) | [inline] |
the foreground color to be used or null for no change in color
Implements cern::gp::beans::editors::support::ColorMaster.
| boolean cern::gp::explorer::test::helpers::ColoredIntegerEditor::isPaintable | ( | ) | [inline] |
| void cern::gp::explorer::test::helpers::ColoredIntegerEditor::paintValue | ( | Graphics | gfx, | |
| Rectangle | rect | |||
| ) | [inline] |
| void cern::gp::explorer::test::helpers::ColoredIntegerEditor::setAsText | ( | String | text | ) | [inline] |
sets the Integer value from a text
Referenced by ColoredIntegerEditor(), isPaintable(), and paintValue().
1.6.2