public class TextEffect
extends java.lang.Object
Examples:
Shows how to apply a visual effect to a run.
Document doc = new Document();
DocumentBuilder builder = new DocumentBuilder(doc);
builder.getFont().setSize(36.0);
builder.getFont().setTextEffect(TextEffect.SPARKLE_TEXT);
builder.writeln("Text with a sparkle effect.");
// Older versions of Microsoft Word only support font animation effects.
doc.save(getArtifactsDir() + "Font.SparklingText.doc");
| Modifier and Type | Field and Description |
|---|---|
static int |
BLINKING_BACKGROUND |
static int |
LAS_VEGAS_LIGHTS |
static int |
length |
static int |
MARCHING_BLACK_ANTS |
static int |
MARCHING_RED_ANTS |
static int |
NONE |
static int |
SHIMMER |
static int |
SPARKLE_TEXT |
| Modifier and Type | Method and Description |
|---|---|
static int |
fromName(java.lang.String textEffectName) |
static java.lang.String |
getName(int textEffect) |
static int[] |
getValues() |
static java.lang.String |
toString(int textEffect) |
public static int NONE
public static int LAS_VEGAS_LIGHTS
public static int BLINKING_BACKGROUND
public static int SPARKLE_TEXT
public static int MARCHING_BLACK_ANTS
public static int MARCHING_RED_ANTS
public static int SHIMMER
public static int length