public class TooltipText
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private int |
h
The height of the associated gui element.
|
private java.lang.String |
text
The text.
|
private int |
w
The width of the associated gui element.
|
private int |
x
The x coordinate of the associated gui element.
|
private int |
y
The y coordinate of the associated gui element.
|
Constructor and Description |
---|
TooltipText(java.lang.String text,
int x,
int y,
int w,
int h)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
int |
getH()
Returns the height of the associated gui element.
|
java.lang.String |
getText()
Returns the text.
|
int |
getW()
Returns the width of the associated gui element.
|
int |
getX()
Returns the x coordinate of the associated gui element.
|
int |
getY()
Returns the y coordinate of the associated gui element.
|
private final int h
@NotNull private final java.lang.String text
private final int w
private final int x
private final int y
public TooltipText(@NotNull java.lang.String text, int x, int y, int w, int h)
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 elementpublic int getH()
@NotNull public java.lang.String getText()
public int getW()
public int getX()
public int getY()