 |
Gridarta Editor
|
Go to the documentation of this file.
20 package net.sf.gridarta.gui.panel.connectionview;
22 import java.awt.BorderLayout;
23 import java.awt.event.MouseListener;
24 import java.util.ArrayList;
25 import java.util.Comparator;
27 import java.util.TreeMap;
28 import java.util.Vector;
29 import javax.swing.JList;
30 import javax.swing.JPanel;
31 import javax.swing.JScrollPane;
32 import javax.swing.event.ListSelectionListener;
43 import org.jetbrains.annotations.NotNull;
44 import org.jetbrains.annotations.Nullable;
132 setLayout(
new BorderLayout());
180 for (
final Iterable<G> mapSquare : mapModel) {
181 for (
final G gameObject : mapSquare) {
abstract void scanGameObjectForConnections(@NotNull G gameObject)
Scans the given game object for connections.
A MapModel reflects the data of a map.
Iterable< Connection< K > > getSelectedConnections()
Returns a list of all selected connections.
Abstract base class for a panel that holds information about connections of the selected key on the s...
MapView< G, A, R > getMapView()
Returns the current map view.
MapControl< G, A, R > getMapControl()
Return the controller of this view.
Base package of all Gridarta classes.
final Map< K, Connection< K > > connections
The connections.
View(@NotNull final Comparator< K > keyComparator, @NotNull final CellRenderer< K > cellRenderer, @NotNull final MapViewManager< G, A, R > mapViewManager, @NotNull final DelayedMapModelListenerManager< G, A, R > delayedMapModelListenerManager)
Creates a new instance.
Interface for listeners interested in events related to {} instances.
Reflects a game object (object on a map).
Graphical User Interface of Gridarta.
void addConnection(@NotNull final K key, @NotNull final GameObject< G, A, R > gameObject)
GameObjects are the objects based on Archetypes found on maps.
static final long serialVersionUID
The serial version UID.
final DelayedMapModelListener< G, A, R > delayedMapModelListener
The map model listener to detect map changes.
Interface for MapArchObjects.
void scanMapForConnections()
Scans the current map (mapView) for the contained connections.
A map view consists of a map grid and a map cursor, and is attached to a map control.
final JList< Connection< K > > connectionList
The List with the connections.
void addListSelectionListener(@NotNull final ListSelectionListener listener)
Registers a ListSelectionListener for the connection list.
Provides support for delayed notification of MapModel changes.
void addListMouseListener(@NotNull final MouseListener listener)
Registers a MouseListener for the connection list.
Stores GameObjects related to key values.
MapView< G, A, R > mapView
Map view corresponding to connectionList.
Base classes for rendering maps.
MapModel< G, A, R > getMapModel()
Returns the map model.
Interface for listeners interested in delayed map model change events.
void scanMapForConnections(@NotNull final Iterable< MapSquare< G, A, R >> mapModel)
Scans the given map for the contained connections.
A DefaultListCellRenderer for rendering Connection objects in a list.
final MapViewManagerListener< G, A, R > mapViewManagerListener
The map view listener to detect changed active maps.