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.
  • Constructor Details

  • Method Details

    • onApply

      protected void onApply(long glyph, int localIndex, int globalIndex, float delta)
      Description copied from class: Effect
      Called when this effect should be applied to the given glyph.
      Specified by:
      onApply in class Effect