Search in sources :

Example 1 with CardInfoPaneImpl

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();
}
Also used : CardInfoPaneImpl(org.mage.plugins.card.info.CardInfoPaneImpl) ChatPanelBasic(mage.client.chat.ChatPanelBasic) SocketException(java.net.SocketException) IOException(java.io.IOException) MageException(mage.MageException)

Aggregations

IOException (java.io.IOException)1 SocketException (java.net.SocketException)1 MageException (mage.MageException)1 ChatPanelBasic (mage.client.chat.ChatPanelBasic)1 CardInfoPaneImpl (org.mage.plugins.card.info.CardInfoPaneImpl)1