com.realtime.crossfire.jxclient.gui.gui
Class TooltipText

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

public class TooltipText
extends java.lang.Object

Information for displaying tooltips.


Field Summary
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 Summary
TooltipText(java.lang.String text, int x, int y, int w, int h)
          Creates a new instance.
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

h

private final int h
The height of the associated gui element.


text

@NotNull
private final java.lang.String text
The text.


w

private final int w
The width of the associated gui element.


x

private final int x
The x coordinate of the associated gui element.


y

private final int y
The y coordinate of the associated gui element.

Constructor Detail

TooltipText

public TooltipText(@NotNull
                   java.lang.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 Detail

getH

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

Returns:
the height

getText

@NotNull
public java.lang.String getText()
Returns the text.

Returns:
the text

getW

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

Returns:
the width

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