Class TooltipText
- java.lang.Object
-
- com.realtime.crossfire.jxclient.gui.gui.TooltipText
-
public class TooltipText extends java.lang.ObjectInformation for displaying tooltips.
-
-
Constructor Summary
Constructors Constructor Description TooltipText(@NotNull java.lang.String text, int x, int y, int w, int h)Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetH()Returns the height of the associated gui element.@NotNull java.lang.StringgetText()Returns the text.intgetW()Returns the width of the associated gui element.intgetX()Returns the x coordinate of the associated gui element.intgetY()Returns the y coordinate of the associated gui element.
-
-
-
Constructor Detail
-
TooltipText
public TooltipText(@NotNull @NotNull java.lang.String text, int x, int y, int w, int h)Creates a new instance.- Parameters:
text- the textx- the x coordinate of the associated gui elementy- the y coordinate of the associated gui elementw- the width of the associated gui elementh- the height of the associated gui element
-
-
Method Detail
-
getText
@NotNull public @NotNull java.lang.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
-
-