22 package com.realtime.crossfire.jxclient.gui.list;
34 import java.awt.Image;
35 import org.jetbrains.annotations.NotNull;
36 import org.jetbrains.annotations.Nullable;
143 public GUIFloorList(@NotNull
final TooltipManager tooltipManager, @NotNull
final GUIElementListener elementListener, @NotNull
final String name,
final int cellWidth,
final int cellHeight, @NotNull
final ItemView itemView, @Nullable
final AbstractLabel currentItem, @NotNull
final CommandQueue commandQueue, @NotNull
final ItemPainter itemPainter, @NotNull
final CrossfireServerConnection crossfireServerConnection, @NotNull
final FacesManager facesManager, @NotNull
final ItemSet itemSet, @NotNull
final Image nextGroupFace, @NotNull
final Image prevGroupFace) {
144 super(tooltipManager, elementListener, name, cellWidth, cellHeight, itemView, currentItem,
new GUIItemFloor(tooltipManager, elementListener, commandQueue, name+
"_template", itemPainter, -1, crossfireServerConnection, itemView, itemSet, facesManager, nextGroupFace, prevGroupFace, cellHeight));
165 return Math.max(getWidth()/cellWidth, 1)*Math.max(getHeight()/cellHeight, 1);
174 return new GUIItemFloor(tooltipManager, elementListener, commandQueue, name+index, itemPainter, index, crossfireServerConnection, itemView, itemSet, facesManager, nextGroupFace, prevGroupFace, 0);
Listener for GUIElement related events.
Abstract base class for all label classes.
A GUIElement representing an in-game object in the ground view.
final int cellWidth
The width of cells.
final Image prevGroupFace
The Image for "prev group of items".
Manages image information ("faces") needed to display the map view, items, and spell icons...
A GUIItemList for floor views.
final FacesManager facesManager
The FacesManager to use.
final ItemPainter itemPainter
The ItemPainter to use.
A GUIList instance that displays GUIItemItem instances.
final TooltipManager tooltipManager
The tooltip manager to update.
GUIItemFloor newItem(final int index)
static final long serialVersionUID
The serial version UID.
final GUIElementListener elementListener
The GUIElementListener to notify.
GUIFloorList(@NotNull final TooltipManager tooltipManager, @NotNull final GUIElementListener elementListener, @NotNull final String name, final int cellWidth, final int cellHeight, @NotNull final ItemView itemView, @Nullable final AbstractLabel currentItem, @NotNull final CommandQueue commandQueue, @NotNull final ItemPainter itemPainter, @NotNull final CrossfireServerConnection crossfireServerConnection, @NotNull final FacesManager facesManager, @NotNull final ItemSet itemSet, @NotNull final Image nextGroupFace, @NotNull final Image prevGroupFace)
Creates a new instance.
final ItemSet itemSet
The ItemSet to use.
final Image nextGroupFace
The Image for "next group of items".
final ItemView itemView
The ItemView to use.
final String name
The base name.
Adds encoding/decoding of crossfire protocol packets to a ServerConnection.
Model class maintaining the CfItems known to the player.
Maintains the pending (ncom) commands sent to the server.
int getNumLookObjects()
Returns the preferred number of objects to display.
final int cellHeight
The height of cells.
final CrossfireServerConnection crossfireServerConnection
The CrossfireServerConnection to use.
Paints Crossfire item images.
final CommandQueue commandQueue
The CommandQueue for sending commands.
final AbstractLabel currentItem
The label to update with information about the selected item.
Maintains a mapping of face numbers to face data.