TextEffect
Contents
[
Hide
]Inheritance: java.lang.Object
public class TextEffect
Animation effect for text runs.
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");
Fields
| Field | Description |
|---|---|
| BLINKING_BACKGROUND | |
| LAS_VEGAS_LIGHTS | |
| MARCHING_BLACK_ANTS | |
| MARCHING_RED_ANTS | |
| NONE | |
| SHIMMER | |
| SPARKLE_TEXT | |
| length |
Methods
| Method | Description |
|---|---|
| fromName(String textEffectName) | |
| getName(int textEffect) | |
| getValues() | |
| toString(int textEffect) |
BLINKING_BACKGROUND
public static int BLINKING_BACKGROUND
LAS_VEGAS_LIGHTS
public static int LAS_VEGAS_LIGHTS
MARCHING_BLACK_ANTS
public static int MARCHING_BLACK_ANTS
MARCHING_RED_ANTS
public static int MARCHING_RED_ANTS
NONE
public static int NONE
SHIMMER
public static int SHIMMER
SPARKLE_TEXT
public static int SPARKLE_TEXT
length
public static int length
fromName(String textEffectName)
public static int fromName(String textEffectName)
Parameters:
| Parameter | Type | Description |
|---|---|---|
| textEffectName | java.lang.String |
Returns: int
getName(int textEffect)
public static String getName(int textEffect)
Parameters:
| Parameter | Type | Description |
|---|---|---|
| textEffect | int |
Returns: java.lang.String
getValues()
public static int[] getValues()
Returns: int[]
toString(int textEffect)
public static String toString(int textEffect)
Parameters:
| Parameter | Type | Description |
|---|---|---|
| textEffect | int |
Returns: java.lang.String