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);
}
Aggregations