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