Search in sources :

Example 1 with SimpleUnitPanel

use of games.strategy.triplea.ui.SimpleUnitPanel in project triplea by triplea-game.

the class HistoryDetailsPanel method renderUnits.

private void renderUnits(final GridBagConstraints mainConstraints, final Collection<Unit> units) {
    final Collection<UnitCategory> unitsCategories = UnitSeperator.categorize(units);
    final SimpleUnitPanel unitsPanel = new SimpleUnitPanel(mapPanel.getUiContext());
    unitsPanel.setUnitsFromCategories(unitsCategories);
    add(unitsPanel, mainConstraints);
}
Also used : SimpleUnitPanel(games.strategy.triplea.ui.SimpleUnitPanel) UnitCategory(games.strategy.triplea.util.UnitCategory)

Aggregations

SimpleUnitPanel (games.strategy.triplea.ui.SimpleUnitPanel)1 UnitCategory (games.strategy.triplea.util.UnitCategory)1