use of org.mage.plugins.card.info.CardInfoPaneImpl in project mage by magefree.
the class MagePaneMenuItem method changeGUISize.
public void changeGUISize() {
ImageCaches.flush();
setGUISize();
setGUISizeTooltipContainer();
Plugins.instance.changeGUISize();
CountryUtil.changeGUISize();
for (Component component : desktopPane.getComponents()) {
if (component instanceof MageDialog) {
((MageDialog) component).changeGUISize();
}
if (component instanceof MagePane) {
((MagePane) component).changeGUISize();
}
}
for (ChatPanelBasic chatPanel : CHATS.values()) {
chatPanel.changeGUISize(GUISizeHelper.chatFont);
}
try {
CardInfoPaneImpl cardInfoPane = (CardInfoPaneImpl) UI.getComponent(MageComponents.CARD_INFO_PANE);
if (cardInfoPane != null) {
cardInfoPane.changeGUISize();
}
} catch (Exception ex) {
ex.printStackTrace();
}
this.revalidate();
this.repaint();
}
Aggregations