//# 0 errors, 27 messages
//#
/*
    //#LagDisplayPanel.java:1:1: class: com.dmdirc.addons.lagdisplay.LagDisplayPanel
    //#LagDisplayPanel.java:1:1: method: com.dmdirc.addons.lagdisplay.LagDisplayPanel.com.dmdirc.addons.lagdisplay.LagDisplayPanel__static_init
 * Copyright (c) 2006-2009 Chris Smith, Shane Mc Cormack, Gregory Holmes
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to deal
 * in the Software without restriction, including without limitation the rights
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in
 * all copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
 * SOFTWARE.
 */
package com.dmdirc.addons.lagdisplay;

import com.dmdirc.addons.ui_swing.components.statusbar.StatusbarPopupPanel;
import com.dmdirc.addons.ui_swing.components.statusbar.StatusbarPopupWindow;

/**
 * Shows the user's lag in the status bar, and reveals details of all servers
 * when the user hovers over it.
 * 
 * @author chris
 */
public class LagDisplayPanel extends StatusbarPopupPanel {

    /**
     * A version number for this class. It should be changed whenever the class
     * structure is changed (or anything else that would prevent serialized
     * objects being unserialized with the new class).
     */
    private static final long serialVersionUID = 2;

    /** Lag display plugin. */
    private LagDisplayPlugin plugin;

    /**
     * Creates a new {@link LagDisplayPanel} for the specified plugin.
     *
     * @param plugin The plugin that owns this panel
     */
    public LagDisplayPanel(final LagDisplayPlugin plugin) {
        super();
    //#LagDisplayPanel.java:51: method: void com.dmdirc.addons.lagdisplay.LagDisplayPanel.com.dmdirc.addons.lagdisplay.LagDisplayPanel(LagDisplayPlugin)
    //#LagDisplayPanel.java:51: Warning: method not available - call not analyzed
    //#    call on void com.dmdirc.addons.ui_swing.components.statusbar.StatusbarPopupPanel()
    //#    severity: INFORMATIONAL
    //#    class: com.dmdirc.addons.lagdisplay.LagDisplayPanel
    //#    method: void com.dmdirc.addons.lagdisplay.LagDisplayPanel(LagDisplayPlugin)
    //#    unanalyzed callee: void com.dmdirc.addons.ui_swing.components.statusbar.StatusbarPopupPanel()
    //#input(void com.dmdirc.addons.lagdisplay.LagDisplayPanel(LagDisplayPlugin)): plugin
    //#input(void com.dmdirc.addons.lagdisplay.LagDisplayPanel(LagDisplayPlugin)): this
    //#output(void com.dmdirc.addons.lagdisplay.LagDisplayPanel(LagDisplayPlugin)): this.plugin
    //#post(void com.dmdirc.addons.lagdisplay.LagDisplayPanel(LagDisplayPlugin)): this.plugin == plugin
    //#post(void com.dmdirc.addons.lagdisplay.LagDisplayPanel(LagDisplayPlugin)): init'ed(this.plugin)
        
        this.plugin = plugin;
    }
    //#LagDisplayPanel.java:54: end of method: void com.dmdirc.addons.lagdisplay.LagDisplayPanel.com.dmdirc.addons.lagdisplay.LagDisplayPanel(LagDisplayPlugin)

    /** {@inheritDoc} */
    @Override
    protected StatusbarPopupWindow getWindow() {
        return new ServerInfoDialog(plugin, this);
    //#LagDisplayPanel.java:59: method: StatusbarPopupWindow com.dmdirc.addons.lagdisplay.LagDisplayPanel.getWindow()
    //#LagDisplayPanel.java:59: Warning: method not available - call not analyzed
    //#    call on void com.dmdirc.addons.lagdisplay.ServerInfoDialog(LagDisplayPlugin, StatusbarPopupPanel)
    //#    severity: INFORMATIONAL
    //#    class: com.dmdirc.addons.lagdisplay.LagDisplayPanel
    //#    method: StatusbarPopupWindow getWindow()
    //#    unanalyzed callee: void com.dmdirc.addons.lagdisplay.ServerInfoDialog(LagDisplayPlugin, StatusbarPopupPanel)
    //#input(StatusbarPopupWindow getWindow()): this
    //#input(StatusbarPopupWindow getWindow()): this.plugin
    //#output(StatusbarPopupWindow getWindow()): new ServerInfoDialog(getWindow#1) num objects
    //#output(StatusbarPopupWindow getWindow()): return_value
    //#new obj(StatusbarPopupWindow getWindow()): new ServerInfoDialog(getWindow#1)
    //#pre[2] (StatusbarPopupWindow getWindow()): init'ed(this.plugin)
    //#post(StatusbarPopupWindow getWindow()): return_value == &new ServerInfoDialog(getWindow#1)
    //#post(StatusbarPopupWindow getWindow()): new ServerInfoDialog(getWindow#1) num objects == 1
    //#LagDisplayPanel.java:59: end of method: StatusbarPopupWindow com.dmdirc.addons.lagdisplay.LagDisplayPanel.getWindow()
    }
    
  
}    //#output(com.dmdirc.addons.lagdisplay.LagDisplayPanel__static_init): __Descendant_Table[com/dmdirc/addons/lagdisplay/LagDisplayPanel]
    //#output(com.dmdirc.addons.lagdisplay.LagDisplayPanel__static_init): __Dispatch_Table.getWindow()Lcom/dmdirc/addons/ui_swing/components/statusbar/StatusbarPopupWindow;
    //#post(com.dmdirc.addons.lagdisplay.LagDisplayPanel__static_init): __Descendant_Table[com/dmdirc/addons/lagdisplay/LagDisplayPanel] == &__Dispatch_Table
    //#post(com.dmdirc.addons.lagdisplay.LagDisplayPanel__static_init): __Dispatch_Table.getWindow()Lcom/dmdirc/addons/ui_swing/components/statusbar/StatusbarPopupWindow; == &getWindow
    //#LagDisplayPanel.java:: end of method: com.dmdirc.addons.lagdisplay.LagDisplayPanel.com.dmdirc.addons.lagdisplay.LagDisplayPanel__static_init
    //#LagDisplayPanel.java:: end of class: com.dmdirc.addons.lagdisplay.LagDisplayPanel
