Class LinkEffect
java.lang.Object
com.github.tommyettinger.textra.Effect
com.github.tommyettinger.textra.effects.LinkEffect
public class LinkEffect extends Effect
Allows clicking the affected text to open a URL in the browser. You may want to use other markup with this, such as
underlining or especially a color change. Doesn't change over time. This doesn't validate the URL or sanity-check it
in any way, so try not to allow users to write arbitrary URLS and send them to other users.
-
Nested Class Summary
Nested classes/interfaces inherited from class com.github.tommyettinger.textra.Effect
Effect.EffectBuilder -
Field Summary
-
Constructor Summary
Constructors Constructor Description LinkEffect(TypingLabel label, java.lang.String[] params) -
Method Summary
Modifier and Type Method Description protected voidonApply(long glyph, int localIndex, int globalIndex, float delta)Called when this effect should be applied to the given glyph.Methods inherited from class com.github.tommyettinger.textra.Effect
apply, assignTokenName, calculateFadeout, calculateProgress, calculateProgress, calculateProgress, isFinished, paramAsBoolean, paramAsColor, paramAsFloat, updateMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait