|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.enough.polish.ui.TextEffect
de.enough.polish.ui.texteffects.DropShadowTextEffect
public class DropShadowTextEffect
Paints a dropshadow behind a text, whereas you are able to specify the shadows inner and outer color.
Activate the shadow text effect by specifying text-effect: drop-shadow; in your polish.css file.
You can finetune the effect with following attributes:
Choosing the same inner and outer color and varying the transparency is recommended. Dropshadow just works, if the Text is opaque.
Copyright Enough Software 2006 - 2009
history
11-Jul-2006
| Field Summary |
|---|
| Fields inherited from class de.enough.polish.ui.TextEffect |
|---|
isTextSensitive, style |
| Constructor Summary | |
|---|---|
DropShadowTextEffect()
Creates a new drop shadow effect |
|
| Method Summary | |
|---|---|
void |
drawString(String text,
int textColor,
int x,
int y,
int orientation,
Graphics g)
Paints the text and applies the text effect. |
void |
releaseResources()
Releases any resources this effect might contain. |
void |
setStyle(Style style,
boolean resetStyle)
Sets the style of this item without assuming defaults for non-set style elements. |
| Methods inherited from class de.enough.polish.ui.TextEffect |
|---|
animate, animate, calculateLinesHeight, charWidth, drawChar, drawStrings, drawStrings, drawStrings, getFont, getFontHeight, getLeftX, getRgbData, getRgbData, getRgbData, getTopY, getTopY, hideNotify, onAttach, onDetach, setStyle, showNotify, stringWidth, wrap, wrap |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DropShadowTextEffect()
| Method Detail |
|---|
public void drawString(String text,
int textColor,
int x,
int y,
int orientation,
Graphics g)
TextEffect
drawString in class TextEffecttext - the texttextColor - the color of the textx - x coordinatey - y coordinateorientation - the orientation, e.g. Graphics.TOP | Graphics.LEFT or Graphics.TOP | Graphics.HCENTERg - the graphics context
public void setStyle(Style style,
boolean resetStyle)
TextEffect
setStyle in class TextEffectstyle - the new style for this item.resetStyle - true when all style elements should be reset to their default when no CSS attributes are defined.public void releaseResources()
TextEffect
releaseResources in class TextEffect
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||