20 package net.sf.gridarta.gui.panel.connectionview;
22 import java.util.Comparator;
30 import org.jetbrains.annotations.NotNull;
52 super(
new Comparator<Integer>() {
55 public int compare(@NotNull
final Integer o1, @NotNull
final Integer o2) {
85 for (
final int value : values) {
99 private static final long serialVersionUID = 1L;
103 protected String
formatKey(@NotNull
final Integer key) {
104 return key.toString();
110 return gameObject.getBestName();
void scanGameObjectForConnections(@NotNull final G gameObject)
static int [] parseConnections(@NotNull final BaseObject<?, ?, ?, ?> gameObject)
Extract the "connected" value(s) from a given game object.
Graphical User Interface of Gridarta.
A CellRenderer for the connection view.
void scanGameObject(@NotNull final GameObject< G, A, R > gameObject)
Add the given game object as a connection if it has a "connected" field.
Abstract base class for a panel that holds information about connections of the selected key on the s...
String formatKey(@NotNull final Integer key)
Base package of all Gridarta classes.
Reflects a game object (object on a map).
static final long serialVersionUID
The serial version UID.
A DefaultListCellRenderer for rendering Connection objects in a list.
GameObjects are the objects based on Archetypes found on maps.
void addConnection( @NotNull final K key, @NotNull final GameObject< G, A, R > gameObject)
Base classes for rendering maps.
String formatValue(@NotNull final BaseObject<?, ?, ?, ?> gameObject)
Iterable< G > recursive()
Return an object that is a recursive representation.
Utility class to parse "connected" fields in game objects.
ConnectionView(@NotNull final MapViewManager< G, A, R > mapViewManager, @NotNull final DelayedMapModelListenerManager< G, A, R > delayedMapModelListenerManager)
Create a ConnectionView.
The view of the connection view control.
Provides support for delayed notification of MapModel changes.
Interface for MapArchObjects.