Crossfire JXClient, Trunk
|
Public Member Functions | |
Extent (@NotNull final Expression x, @NotNull final Expression y, @NotNull final Expression w, @NotNull final Expression h) | |
int | getH (final int width, final int height, final int prefWidth, final int prefHeight) |
int | getW (final int width, final int height, final int prefWidth, final int prefHeight) |
int | getX (final int width, final int height, final int prefWidth, final int prefHeight) |
int | getY (final int width, final int height, final int prefWidth, final int prefHeight) |
Private Attributes | |
final Expression | h |
final Expression | w |
final Expression | x |
final Expression | y |
Encapsulates the extent of a GUI element. It consists of a location and a size.
Definition at line 32 of file Extent.java.
com.realtime.crossfire.jxclient.gui.gui.Extent.Extent | ( | @NotNull final Expression | x, |
@NotNull final Expression | y, | ||
@NotNull final Expression | w, | ||
@NotNull final Expression | h | ||
) |
Creates a new instance.
x | the x coordinate |
y | the y coordinate |
w | the width |
h | thr height |
Definition at line 65 of file Extent.java.
References com.realtime.crossfire.jxclient.gui.gui.Extent.h, com.realtime.crossfire.jxclient.gui.gui.Extent.w, com.realtime.crossfire.jxclient.gui.gui.Extent.x, and com.realtime.crossfire.jxclient.gui.gui.Extent.y.
int com.realtime.crossfire.jxclient.gui.gui.Extent.getH | ( | final int | width, |
final int | height, | ||
final int | prefWidth, | ||
final int | prefHeight | ||
) |
Returns the height.
width | the screen width |
height | the screen height |
prefWidth | the preferred dialog width |
prefHeight | the preferred dialog height |
Definition at line 116 of file Extent.java.
References com.realtime.crossfire.jxclient.gui.gui.Expression.evaluate(), and com.realtime.crossfire.jxclient.gui.gui.Extent.h.
Referenced by com.realtime.crossfire.jxclient.gui.gui.Gui.autoSize().
int com.realtime.crossfire.jxclient.gui.gui.Extent.getW | ( | final int | width, |
final int | height, | ||
final int | prefWidth, | ||
final int | prefHeight | ||
) |
Returns the width.
width | the screen width |
height | the screen height |
prefWidth | the preferred dialog width |
prefHeight | the preferred dialog height |
Definition at line 104 of file Extent.java.
References com.realtime.crossfire.jxclient.gui.gui.Expression.evaluate(), and com.realtime.crossfire.jxclient.gui.gui.Extent.w.
Referenced by com.realtime.crossfire.jxclient.gui.gui.Gui.autoSize().
int com.realtime.crossfire.jxclient.gui.gui.Extent.getX | ( | final int | width, |
final int | height, | ||
final int | prefWidth, | ||
final int | prefHeight | ||
) |
Returns the x coordinate.
width | the screen width |
height | the screen height |
prefWidth | the preferred dialog width |
prefHeight | the preferred dialog height |
Definition at line 80 of file Extent.java.
References com.realtime.crossfire.jxclient.gui.gui.Expression.evaluate(), and com.realtime.crossfire.jxclient.gui.gui.Extent.x.
Referenced by com.realtime.crossfire.jxclient.gui.gui.Gui.autoSize().
int com.realtime.crossfire.jxclient.gui.gui.Extent.getY | ( | final int | width, |
final int | height, | ||
final int | prefWidth, | ||
final int | prefHeight | ||
) |
Returns the y coordinate.
width | the screen width |
height | the screen height |
prefWidth | the preferred dialog width |
prefHeight | the preferred dialog height |
Definition at line 92 of file Extent.java.
References com.realtime.crossfire.jxclient.gui.gui.Expression.evaluate(), and com.realtime.crossfire.jxclient.gui.gui.Extent.y.
Referenced by com.realtime.crossfire.jxclient.gui.gui.Gui.autoSize().
|
private |
The height.
Definition at line 56 of file Extent.java.
Referenced by com.realtime.crossfire.jxclient.gui.gui.Extent.Extent(), and com.realtime.crossfire.jxclient.gui.gui.Extent.getH().
|
private |
The width.
Definition at line 50 of file Extent.java.
Referenced by com.realtime.crossfire.jxclient.gui.gui.Extent.Extent(), and com.realtime.crossfire.jxclient.gui.gui.Extent.getW().
|
private |
The x coordinate.
Definition at line 38 of file Extent.java.
Referenced by com.realtime.crossfire.jxclient.gui.gui.Extent.Extent(), and com.realtime.crossfire.jxclient.gui.gui.Extent.getX().
|
private |
The y coordinate.
Definition at line 44 of file Extent.java.
Referenced by com.realtime.crossfire.jxclient.gui.gui.Extent.Extent(), and com.realtime.crossfire.jxclient.gui.gui.Extent.getY().