TextEffect

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

FieldDescription
BLINKING_BACKGROUND
LAS_VEGAS_LIGHTS
MARCHING_BLACK_ANTS
MARCHING_RED_ANTS
NONE
SHIMMER
SPARKLE_TEXT
length

Methods

MethodDescription
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:

ParameterTypeDescription
textEffectNamejava.lang.String

Returns: int

getName(int textEffect)

public static String getName(int textEffect)

Parameters:

ParameterTypeDescription
textEffectint

Returns: java.lang.String

getValues()

public static int[] getValues()

Returns: int[]

toString(int textEffect)

public static String toString(int textEffect)

Parameters:

ParameterTypeDescription
textEffectint

Returns: java.lang.String