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

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
 

Detailed Description

Displays the pending movements on a map view.

Author
Andreas Kirschbaum

Definition at line 46 of file GUIMapDirections.java.

Constructor & Destructor Documentation

◆ GUIMapDirections()

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.

Parameters
tooltipManagerthe tooltip manager to update
elementListenerthe element listener to notify
namethe name of this element
facesProviderthe faces provider for looking up faces
pendingDirectionsthe pending directions instance to visualize
guiFactorythe 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.

Member Function Documentation

◆ getTooltip()

TooltipText com.realtime.crossfire.jxclient.gui.map.GUIMapDirections.getTooltip ( )

Returns the current tooltip text.

Returns
the tooltip text or
null
to not show a tooltip

Reimplemented from com.realtime.crossfire.jxclient.gui.gui.AbstractGUIElement.

Definition at line 138 of file GUIMapDirections.java.

◆ notifyOpen()

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.

◆ paintComponent()

void com.realtime.crossfire.jxclient.gui.map.GUIMapDirections.paintComponent ( @NotNull final Graphics  g)
protected

Member Data Documentation

◆ DX

final int [] com.realtime.crossfire.jxclient.gui.map.GUIMapDirections.DX = {0, 1, 1, 1, 0, -1, -1, -1,}
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().

◆ DY

final int [] com.realtime.crossfire.jxclient.gui.map.GUIMapDirections.DY = {-1, -1, 0, 1, 1, 1, 0, -1,}
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().

◆ pendingDirections

final PendingDirections com.realtime.crossfire.jxclient.gui.map.GUIMapDirections.pendingDirections
private

◆ serialVersionUID

final long com.realtime.crossfire.jxclient.gui.map.GUIMapDirections.serialVersionUID = 1
staticprivate

The serial version UID.

Definition at line 51 of file GUIMapDirections.java.

◆ tileSize

final int com.realtime.crossfire.jxclient.gui.map.GUIMapDirections.tileSize
private

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