Crossfire JXClient, Trunk
|
Public Member Functions | |
TooltipText | getTooltip () |
GUIMapDirections (@NotNull final TooltipManager tooltipManager, @NotNull final GUIElementListener elementListener, @NotNull final String name, @NotNull final FacesProvider facesProvider, @NotNull final PendingDirections pendingDirections, @NotNull final GuiFactory guiFactory) | |
void | notifyOpen () |
Public Member Functions inherited from com.realtime.crossfire.jxclient.gui.gui.AbstractGUIElement | |
void | dispose () |
int | getDialogBorderBottom () |
int | getDialogBorderLeft () |
int | getDialogBorderRight () |
int | getDialogBorderTop () |
String | getName () |
void | inhibitListeners () |
boolean | isDefault () |
boolean | isIgnore () |
void | mouseClicked (@NotNull final MouseEvent e) |
void | mouseDragged (@NotNull final MouseEvent e) |
void | mouseEntered (@NotNull final MouseEvent e) |
void | mouseExited (@NotNull final MouseEvent e) |
void | mouseMoved (@NotNull final MouseEvent e) |
void | mousePressed (@NotNull final MouseEvent e) |
void | mouseReleased (@NotNull final MouseEvent e) |
void | mouseWheelMoved (final int wheelRotation) |
void | setChanged () |
void | setChangedListener (@Nullable final GUIElementChangedListener changedListener) |
void | setDefault (final boolean isDefault) |
void | setIgnore () |
String | toString () |
Protected Member Functions | |
void | paintComponent (@NotNull final Graphics g) |
Protected Member Functions inherited from com.realtime.crossfire.jxclient.gui.gui.AbstractGUIElement | |
AbstractGUIElement (@NotNull final TooltipManager tooltipManager, @NotNull final GUIElementListener elementListener, @NotNull final String name, final boolean opaque, @NotNull final GuiFactory guiFactory) | |
TooltipText | newTooltipText (@Nullable final String tooltipText) |
void | tooltipChanged () |
Private Attributes | |
final PendingDirections | pendingDirections |
final int | tileSize |
Static Private Attributes | |
static final int[] | DX = {0, 1, 1, 1, 0, -1, -1, -1,} |
static final int[] | DY = {-1, -1, 0, 1, 1, 1, 0, -1,} |
static final long | serialVersionUID = 1 |
Displays the pending movements on a map view.
Definition at line 46 of file GUIMapDirections.java.
com.realtime.crossfire.jxclient.gui.map.GUIMapDirections.GUIMapDirections | ( | @NotNull final TooltipManager | tooltipManager, |
@NotNull final GUIElementListener | elementListener, | ||
@NotNull final String | name, | ||
@NotNull final FacesProvider | facesProvider, | ||
@NotNull final PendingDirections | pendingDirections, | ||
@NotNull final GuiFactory | guiFactory | ||
) |
Creates a new instance.
tooltipManager | the tooltip manager to update |
elementListener | the element listener to notify |
name | the name of this element |
facesProvider | the faces provider for looking up faces |
pendingDirections | the pending directions instance to visualize |
guiFactory | the global GUI factory instance |
Definition at line 83 of file GUIMapDirections.java.
References com.realtime.crossfire.jxclient.gui.gui.AbstractGUIElement.elementListener, com.realtime.crossfire.jxclient.gui.gui.AbstractGUIElement.guiFactory, com.realtime.crossfire.jxclient.gui.gui.AbstractGUIElement.name, com.realtime.crossfire.jxclient.gui.map.GUIMapDirections.pendingDirections, com.realtime.crossfire.jxclient.gui.map.GUIMapDirections.tileSize, and com.realtime.crossfire.jxclient.gui.gui.AbstractGUIElement.tooltipManager.
TooltipText com.realtime.crossfire.jxclient.gui.map.GUIMapDirections.getTooltip | ( | ) |
Returns the current tooltip text.
Reimplemented from com.realtime.crossfire.jxclient.gui.gui.AbstractGUIElement.
Definition at line 138 of file GUIMapDirections.java.
void com.realtime.crossfire.jxclient.gui.map.GUIMapDirections.notifyOpen | ( | ) |
Called each time the enclosing dialog is opened (or raised).
Implements com.realtime.crossfire.jxclient.gui.gui.GUIElement.
Definition at line 143 of file GUIMapDirections.java.
|
protected |
Definition at line 90 of file GUIMapDirections.java.
References com.realtime.crossfire.jxclient.gui.map.GUIMapDirections.DX, com.realtime.crossfire.jxclient.gui.map.GUIMapDirections.DY, com.realtime.crossfire.jxclient.map.PendingDirections.getPendingDirections(), com.realtime.crossfire.jxclient.map.PendingDirections.getRunDirection(), com.realtime.crossfire.jxclient.gui.map.GUIMapDirections.pendingDirections, and com.realtime.crossfire.jxclient.gui.map.GUIMapDirections.tileSize.
|
staticprivate |
Maps movement direction to x coordinate change.
Definition at line 56 of file GUIMapDirections.java.
Referenced by com.realtime.crossfire.jxclient.gui.map.GUIMapDirections.paintComponent().
|
staticprivate |
Maps movement direction to y coordinate change.
Definition at line 61 of file GUIMapDirections.java.
Referenced by com.realtime.crossfire.jxclient.gui.map.GUIMapDirections.paintComponent().
|
private |
The PendingDirections instance that is shown.
Definition at line 67 of file GUIMapDirections.java.
Referenced by com.realtime.crossfire.jxclient.gui.map.GUIMapDirections.GUIMapDirections(), and com.realtime.crossfire.jxclient.gui.map.GUIMapDirections.paintComponent().
|
staticprivate |
The serial version UID.
Definition at line 51 of file GUIMapDirections.java.
|
private |
The size of one tile.
Definition at line 72 of file GUIMapDirections.java.
Referenced by com.realtime.crossfire.jxclient.gui.map.GUIMapDirections.GUIMapDirections(), and com.realtime.crossfire.jxclient.gui.map.GUIMapDirections.paintComponent().