cern::gp::explorer::test::helpers::ColoredIntegerEditor Class Reference

Inheritance diagram for cern::gp::explorer::test::helpers::ColoredIntegerEditor:
Inheritance graph
[legend]
Collaboration diagram for cern::gp::explorer::test::helpers::ColoredIntegerEditor:
Collaboration graph
[legend]

List of all members.

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

Detailed Description

Author:
Vito Baggiolini
Version:
Revision
1.2
Date
2006/09/25 08:52:36

Constructor & Destructor Documentation

cern::gp::explorer::test::helpers::ColoredIntegerEditor::ColoredIntegerEditor (  )  [inline]

Creates a new instance of ColoredInteger

References helper.


Member Function Documentation

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

Returns:
the background color or null for no backgound color

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


Member Data Documentation


The documentation for this class was generated from the following file:

Generated by  doxygen 1.6.2