Crossfire JXClient, Trunk
Public Member Functions | Private Attributes | List of all members
com.realtime.crossfire.jxclient.gui.gui.Extent Class Reference
Collaboration diagram for com.realtime.crossfire.jxclient.gui.gui.Extent:
Collaboration graph

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
 

Detailed Description

Encapsulates the extent of a GUI element. It consists of a location and a size.

Author
Andreas Kirschbaum

Definition at line 32 of file Extent.java.

Constructor & Destructor Documentation

◆ Extent()

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.

Parameters
xthe x coordinate
ythe y coordinate
wthe width
hthr 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.

Member Function Documentation

◆ getH()

int com.realtime.crossfire.jxclient.gui.gui.Extent.getH ( final int  width,
final int  height,
final int  prefWidth,
final int  prefHeight 
)

Returns the height.

Parameters
widththe screen width
heightthe screen height
prefWidththe preferred dialog width
prefHeightthe preferred dialog height
Returns
the 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().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getW()

int com.realtime.crossfire.jxclient.gui.gui.Extent.getW ( final int  width,
final int  height,
final int  prefWidth,
final int  prefHeight 
)

Returns the width.

Parameters
widththe screen width
heightthe screen height
prefWidththe preferred dialog width
prefHeightthe preferred dialog height
Returns
the width

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().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getX()

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.

Parameters
widththe screen width
heightthe screen height
prefWidththe preferred dialog width
prefHeightthe preferred dialog height
Returns
the x coordinate

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().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getY()

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.

Parameters
widththe screen width
heightthe screen height
prefWidththe preferred dialog width
prefHeightthe preferred dialog height
Returns
the y coordinate

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().

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ h

final Expression com.realtime.crossfire.jxclient.gui.gui.Extent.h
private

◆ w

final Expression com.realtime.crossfire.jxclient.gui.gui.Extent.w
private

◆ x

final Expression com.realtime.crossfire.jxclient.gui.gui.Extent.x
private

◆ y

final Expression com.realtime.crossfire.jxclient.gui.gui.Extent.y
private

The documentation for this class was generated from the following file: