20 package net.sf.gridarta.gui.panel.archetypechooser;
22 import java.awt.Component;
23 import javax.swing.JList;
30 import org.jetbrains.annotations.NotNull;
60 public Component
getListCellRendererComponent(
final JList<?> list,
final Object value,
final int index,
final boolean isSelected,
final boolean cellHasFocus) {
61 super.getListCellRendererComponent(list, value, index, isSelected, cellHasFocus);
65 setIcon(faceObjectProviders.getFace(archetype));
81 return JList.VERTICAL;
String getArchetypeName()
Returns the name of this archetype.
static final long serialVersionUID
Serial Version UID.
Base package of all Gridarta classes.
Reflects a game object (object on a map).
int getLayoutOrientation()
GameObjects are the objects based on Archetypes found on maps.
final FaceObjectProviders faceObjectProviders
The FaceObjectProviders for looking up faces.
String getBestName()
Returns the name which is best appropriate to describe this GameObject.
Abstract base class for classes implementing display modes of the archetype chooser.
Component getListCellRendererComponent(final JList<?> list, final Object value, final int index, final boolean isSelected, final boolean cellHasFocus)
Provider for faces of GameObjects and Archetypes.
The face is the appearance of an object.
int compare(final Archetype< G, A, R > o1, final Archetype< G, A, R > o2)
DisplayNameCellRenderer(@NotNull final FaceObjectProviders faceObjectProviders)
Creates a new instance.
A DisplayMode showing archetypes as images and in-game game object name.
Interface for MapArchObjects.