|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.ge.research.acuity.ui.PresentationObject
com.ge.research.acuity.ui.CellDecorator
This class describes and encapsulates all the information about how to decorate cells of a table whose contents meet a predefined criteria.
| Constructor Summary | |
CellDecorator()
Default constructor. |
|
| Method Summary | |
int |
getAlpha()
Returns the opaqueness component of the background Color
The component value is in the range 0-255 |
java.awt.Color |
getBackgroundColor()
Returns the color to be used for the background of the cell. |
int |
getBlueVal()
Returns the RGB blue value component of the background Color
The component value is in the range 0-255 |
CellFontDecorator |
getFontDecorator()
Returns the font decorator to apply to the cell. |
int |
getGreenVal()
Returns the RGB green value component of the background Color
The component value is in the range 0-255 |
java.lang.String |
getHtmlStyle()
Returns the HTML style class to be applied to the cell, if rendered by an HTML client. |
java.lang.String |
getIcon()
Returns the URL of an image file, to be displayed in place of the original cell contents. |
int |
getRedVal()
Returns the RGB red value component of the background Color
The component value is in the range 0-255 |
java.lang.Object |
getReplacement()
Returns the object to render in place of the original cell contents. |
void |
setAlpha(int alpha)
Sets the opaqueness component of the background Color
The component value must in the range 0-255.
|
void |
setBackgroundColor(java.awt.Color color)
Sets the color component values, for the cell background, from the argument color |
void |
setBackgroundColor(int red,
int green,
int blue)
Sets the RGB color component values, for the cell background |
void |
setBackgroundColor(int red,
int green,
int blue,
int alpha)
Sets the RGB color component values and opaqueness value, for the cell background |
void |
setBlueVal(int blueVal)
Sets the RGB blue value component of the background Color
The component value must in the range 0-255.
|
void |
setFontDecorator(CellFontDecorator font)
Sets the font decorator to apply to the cell. |
void |
setGreenVal(int greenVal)
Sets the RGB green value component of the background Color
The component value must in the range 0-255.
|
void |
setHtmlStyle(java.lang.String htmlStyle)
Sets the HTML style class to be applied to the cell, if rendered by an HTML client. |
void |
setIcon(java.lang.String icon)
Sets the URL of an image file, to be displayed in place of the original cell contents. |
void |
setIsDisplayed(boolean b)
Overrides the setIsDisplayed method in PresentationObject. |
void |
setRedVal(int redVal)
Sets the RGB red value component of the background Color
The component value must in the range 0-255.
|
void |
setReplacement(java.lang.Object replacement)
Sets the object to render in place of the original cell contents. |
| Methods inherited from class com.ge.research.acuity.ui.PresentationObject |
addLookupInfo, getHasPresentationNature, getIdentifier, getLookupInfo, getSubject, hasSubject, isDisplayed, isEditable, setEditability, setHasPresentationNature, setIdentifier |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public CellDecorator()
PresentationObject.setEditability(java.lang.String, boolean),
PresentationParameterConstants.ISDISPLAYED| Method Detail |
public int getAlpha()
Color
The component value is in the range 0-255
public java.awt.Color getBackgroundColor()
null if no background color decoration is to be appliedpublic int getBlueVal()
Color
The component value is in the range 0-255
public CellFontDecorator getFontDecorator()
public int getGreenVal()
Color
The component value is in the range 0-255
public java.lang.String getHtmlStyle()
public java.lang.String getIcon()
public int getRedVal()
Color
The component value is in the range 0-255
public java.lang.Object getReplacement()
public void setAlpha(int alpha)
Color
The component value must in the range 0-255.
Argument values less than zero will set the opaqueness to zero
Argument values greater than 255 will set the opaqueness to 255
alpha - the opaqueness component of the background colorpublic void setBackgroundColor(java.awt.Color color)
color - the new color for the cell backgroundsetBackgroundColor(int, int, int, int)
public void setBackgroundColor(int red,
int green,
int blue)
red - the new RGB red value for the cell background colorgreen - the new RGB green value for the cell background colorblue - the new RGB blue value for the cell background colorsetRedVal(int),
setGreenVal(int),
setBlueVal(int)
public void setBackgroundColor(int red,
int green,
int blue,
int alpha)
red - the new RGB red value for the cell background colorgreen - the new RGB green value for the cell background colorblue - the new RGB blue value for the cell background coloralpha - the new opaqueness value for the cell background colorsetBackgroundColor(int, int, int),
setAlpha(int)public void setBlueVal(int blueVal)
Color
The component value must in the range 0-255.
Argument values less than zero will set the blue component value to zero
Argument values greater than 255 will set the blue component value to 255
blueVal - the RGB blue value component of the background colorpublic void setFontDecorator(CellFontDecorator font)
font - the font decorator to apply to the cell contents.public void setGreenVal(int greenVal)
Color
The component value must in the range 0-255.
Argument values less than zero will set the green component value to zero
Argument values greater than 255 will set the green component value to 255
greenVal - the RGB green value component of the background colorpublic void setHtmlStyle(java.lang.String htmlStyle)
htmlStyle - the HTML style class to apply to an HTML table cell.public void setIcon(java.lang.String icon)
public final void setIsDisplayed(boolean b)
setIsDisplayed in class PresentationObjectb - IGNOREDpublic void setRedVal(int redVal)
Color
The component value must in the range 0-255.
Argument values less than zero will set the red component value to zero
Argument values greater than 255 will set the red component value to 255
redVal - the RGB red value component of the background colorpublic void setReplacement(java.lang.Object replacement)
replacement - the object to render in place of the original cell contents.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||