|
||||||||||
| 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.CellFontDecorator
This class describes and encapsulates all the information about how to decorate the font property of cells of a table whose contents meet a predefined criteria.
| Constructor Summary | |
CellFontDecorator()
Default constructor. |
|
| Method Summary | |
boolean |
fontBlink()
Returns the value of the flag indicating whether or not the contents should blink |
boolean |
fontBold()
Returns the value of the flag indicating whether or not the font should be bold type |
boolean |
fontEmphasis()
Returns the value of the flag indicating whether or not the font should be of an emphasized type |
boolean |
fontItalic()
Returns the value of the flag indicating whether or not the font should be italic type |
boolean |
fontStrikethrough()
Returns the value of the flag indicating whether or not the font should be strikethrough type |
boolean |
fontSubscript()
Returns the value of the flag indicating whether or not the font should be subscript type |
boolean |
fontSuperscript()
Returns the value of the flag indicating whether or not the font should be superscript type |
boolean |
fontUnderline()
Returns the value of the flag indicating whether or not the font should be underline type |
int |
getAlpha()
Returns the opaqueness component of the font Color
The component value is in the range 0-255 |
int |
getBlueVal()
Returns the RGB blue value component of the font Color
The component value is in the range 0-255 |
java.lang.String |
getFont()
Returns the name of the font type to use. |
java.awt.Color |
getFontColor()
Returns the color to be used for the font. |
int |
getFontSize()
Returns the font size specification. |
int |
getGreenVal()
Returns the RGB green value component of the font Color
The component value is in the range 0-255 |
int |
getRedVal()
Returns the RGB red value component of the font Color
The component value is in the range 0-255 |
void |
setAlpha(int alpha)
Sets the opaqueness component of the font Color
The component value must in the range 0-255.
|
void |
setBlueVal(int blueVal)
Sets the RGB blue value component of the font Color
The component value must in the range 0-255.
|
void |
setFont(java.lang.String fontName)
Sets the name of the font type to use |
void |
setFontBlink(boolean fontBlink)
Sets the value of the flag indicating whether or not the contents should blink |
void |
setFontBold(boolean fontBold)
Sets the value of the flag indicating whether or not the font should be bold type |
void |
setFontColor(java.awt.Color color)
Sets the color component values, for the cell font, from the argument color |
void |
setFontColor(int red,
int green,
int blue)
Sets the RGB color component values, for the cell font |
void |
setFontColor(int red,
int green,
int blue,
int alpha)
Sets the RGB color component values and opaqueness value, for the cell font |
void |
setFontEmphasis(boolean fontEmphasis)
Sets the value of the flag indicating whether or not the font should be of an emphasized type |
void |
setFontItalic(boolean fontItalic)
Sets the value of the flag indicating whether or not the font should be italic type |
void |
setFontSize(int fontSize)
Sets the font size specification |
void |
setFontStrikethrough(boolean fontStrikethrough)
Sets the value of the flag indicating whether or not the font should be strikethrough type |
void |
setFontSubscript(boolean fontSubscript)
Sets the value of the flag indicating whether or not the font should be subscript type |
void |
setFontSuperscript(boolean fontSuperscript)
Sets the value of the flag indicating whether or not the font should be superscript type |
void |
setFontUnderline(boolean fontUnderline)
Sets the value of the flag indicating whether or not the font should be underline type |
void |
setGreenVal(int greenVal)
Sets the RGB green value component of the font Color
The component value must in the range 0-255.
|
void |
setIsDisplayed(boolean b)
Overrides the setIsDisplayed method in PresentationObject. |
void |
setRedVal(int redVal)
Sets the RGB red value component of the font Color
The component value must in the range 0-255.
|
| 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 CellFontDecorator()
PresentationObject.setEditability(java.lang.String, boolean),
PresentationParameterConstants.ISDISPLAYED| Method Detail |
public boolean fontBlink()
true if the cell contents should blink; false otherwise.public boolean fontBold()
true if the font should be bold type; false otherwise.public boolean fontEmphasis()
true if the font should be of an emphasized type; false otherwise.public boolean fontItalic()
true if the font should be italic type; false otherwise.public boolean fontStrikethrough()
true if the font should be strikethrough type; false otherwise.public boolean fontSubscript()
true if the font should be subscript type; false otherwise.public boolean fontSuperscript()
true if the font should be superscript type; false otherwise.public boolean fontUnderline()
true if the font should be underline type; false otherwise.public int getAlpha()
Color
The component value is in the range 0-255
public int getBlueVal()
Color
The component value is in the range 0-255
public java.lang.String getFont()
public java.awt.Color getFontColor()
null if no font color decoration is to be appliedpublic int getFontSize()
public int getGreenVal()
Color
The component value is in the range 0-255
public int getRedVal()
Color
The component value is in the range 0-255
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 font colorpublic 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 font colorpublic void setFont(java.lang.String fontName)
fontName - the name of the font type to usepublic void setFontBlink(boolean fontBlink)
fontBlink - true if the cell contents should blink; false otherwisepublic void setFontBold(boolean fontBold)
fontBold - true if the font should be bold type; false otherwisepublic void setFontColor(java.awt.Color color)
color - the new color for the cell fontsetFontColor(int, int, int, int)
public void setFontColor(int red,
int green,
int blue)
red - the new RGB red value for the cell font colorgreen - the new RGB green value for the cell font colorblue - the new RGB blue value for the cell font colorsetRedVal(int),
setGreenVal(int),
setBlueVal(int)
public void setFontColor(int red,
int green,
int blue,
int alpha)
red - the new RGB red value for the cell font colorgreen - the new RGB green value for the cell font colorblue - the new RGB blue value for the cell font coloralpha - the new opaqueness value for the cell font colorsetFontColor(int, int, int),
setAlpha(int)public void setFontEmphasis(boolean fontEmphasis)
fontEmphasis - true if the font should be of an emphasized type; false otherwisepublic void setFontItalic(boolean fontItalic)
fontItalic - true if the font should be italic type; false otherwisepublic void setFontSize(int fontSize)
fontSize - the size at which to render the fontpublic void setFontStrikethrough(boolean fontStrikethrough)
fontStrikethrough - true if the font should be strikethrough type; false otherwisepublic void setFontSubscript(boolean fontSubscript)
fontSubscript - true if the font should be subscript type; false otherwisepublic void setFontSuperscript(boolean fontSuperscript)
fontSuperscript - true if the font should be superscript type; false otherwisepublic void setFontUnderline(boolean fontUnderline)
fontUnderline - true if the font should be underline type; false otherwisepublic 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 font colorpublic 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 font color
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||