Class TooltipText

java.lang.Object
com.realtime.crossfire.jxclient.gui.gui.TooltipText

public class TooltipText extends Object
Information for displaying tooltips.
  • Constructor Summary

    Constructors
    Constructor
    Description
    TooltipText(@NotNull String text, int x, int y, int w, int h)
    Creates a new instance.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Returns the height of the associated gui element.
    @NotNull String
    Returns the text.
    int
    Returns the width of the associated gui element.
    int
    Returns the x coordinate of the associated gui element.
    int
    Returns the y coordinate of the associated gui element.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • TooltipText

      public TooltipText(@NotNull @NotNull String text, int x, int y, int w, int h)
      Creates a new instance.
      Parameters:
      text - the text
      x - the x coordinate of the associated gui element
      y - the y coordinate of the associated gui element
      w - the width of the associated gui element
      h - the height of the associated gui element
  • Method Details

    • getText

      @NotNull public @NotNull String getText()
      Returns the text.
      Returns:
      the text
    • getX

      public int getX()
      Returns the x coordinate of the associated gui element.
      Returns:
      the x coordinate
    • getY

      public int getY()
      Returns the y coordinate of the associated gui element.
      Returns:
      the y coordinate
    • getW

      public int getW()
      Returns the width of the associated gui element.
      Returns:
      the width
    • getH

      public int getH()
      Returns the height of the associated gui element.
      Returns:
      the height