//# 0 errors, 172 messages
//#
/*
    //#StatusbarPopupWindow.java:1:1: class: com.dmdirc.addons.ui_swing.components.statusbar.StatusbarPopupWindow$1
    //#StatusbarPopupWindow.java:1:1: method: com.dmdirc.addons.ui_swing.components.statusbar.StatusbarPopupWindow$1.com.dmdirc.addons.ui_swing.components.statusbar.StatusbarPopupWindow$1__static_init
    //#StatusbarPopupWindow.java:1:1: class: com.dmdirc.addons.ui_swing.components.statusbar.StatusbarPopupWindow$GappedEtchedBorder
    //#StatusbarPopupWindow.java:1:1: method: com.dmdirc.addons.ui_swing.components.statusbar.StatusbarPopupWindow$GappedEtchedBorder.com.dmdirc.addons.ui_swing.components.statusbar.StatusbarPopupWindow$GappedEtchedBorder__static_init
    //#StatusbarPopupWindow.java:1:1: class: com.dmdirc.addons.ui_swing.components.statusbar.StatusbarPopupWindow
    //#StatusbarPopupWindow.java:1:1: method: com.dmdirc.addons.ui_swing.components.statusbar.StatusbarPopupWindow.com.dmdirc.addons.ui_swing.components.statusbar.StatusbarPopupWindow__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.ui_swing.components.statusbar;

import com.dmdirc.addons.ui_swing.components.StandardDialog;

import java.awt.Component;
import java.awt.Graphics;
import java.awt.Point;
import java.awt.Window;

import javax.swing.JDialog;
import javax.swing.JPanel;
import javax.swing.UIManager;
import javax.swing.border.EtchedBorder;

import net.miginfocom.swing.MigLayout;


    /**
 * A popup window which is shown above a status bar component to provide more
 * detailed information.
 *
 * @since 0.6.3m1
 * @author chris
 */
public abstract class StatusbarPopupWindow extends StandardDialog {
    //#StatusbarPopupWindow.java:47: method: JPanel com.dmdirc.addons.ui_swing.components.statusbar.StatusbarPopupWindow.access$100(StatusbarPopupWindow)
    //#input(JPanel access$100(StatusbarPopupWindow)): x0
    //#input(JPanel access$100(StatusbarPopupWindow)): x0.parent
    //#output(JPanel access$100(StatusbarPopupWindow)): return_value
    //#pre[1] (JPanel access$100(StatusbarPopupWindow)): x0 != null
    //#post(JPanel access$100(StatusbarPopupWindow)): return_value == x0.parent
    //#post(JPanel access$100(StatusbarPopupWindow)): init'ed(return_value)
    //#StatusbarPopupWindow.java:47: end of method: JPanel com.dmdirc.addons.ui_swing.components.statusbar.StatusbarPopupWindow.access$100(StatusbarPopupWindow)

    /**
     * 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 = 1;

    /** The parent JPanel. */
    private final JPanel parent;
    /** Parent window. */
    private Window parentWindow;

    /**
     * Creates a new status bar popup window.
     *
     * @param parent The {@link JPanel} to use for positioning
     * @param parentWindow Parent window
     */
    public StatusbarPopupWindow(final JPanel parent, final Window parentWindow) {
        super(parentWindow, ModalityType.MODELESS);
    //#StatusbarPopupWindow.java:68: method: void com.dmdirc.addons.ui_swing.components.statusbar.StatusbarPopupWindow.com.dmdirc.addons.ui_swing.components.statusbar.StatusbarPopupWindow(JPanel, Window)
    //#StatusbarPopupWindow.java:68: Warning: method not available - call not analyzed
    //#    call on void com.dmdirc.addons.ui_swing.components.StandardDialog(Window, Dialog$ModalityType)
    //#    severity: INFORMATIONAL
    //#    class: com.dmdirc.addons.ui_swing.components.statusbar.StatusbarPopupWindow
    //#    method: void com.dmdirc.addons.ui_swing.components.statusbar.StatusbarPopupWindow(JPanel, Window)
    //#    unanalyzed callee: void com.dmdirc.addons.ui_swing.components.StandardDialog(Window, Dialog$ModalityType)
    //#input(void com.dmdirc.addons.ui_swing.components.statusbar.StatusbarPopupWindow(JPanel, Window)): java.awt.Dialog$ModalityType.MODELESS
    //#input(void com.dmdirc.addons.ui_swing.components.statusbar.StatusbarPopupWindow(JPanel, Window)): parent
    //#input(void com.dmdirc.addons.ui_swing.components.statusbar.StatusbarPopupWindow(JPanel, Window)): parentWindow
    //#input(void com.dmdirc.addons.ui_swing.components.statusbar.StatusbarPopupWindow(JPanel, Window)): this
    //#output(void com.dmdirc.addons.ui_swing.components.statusbar.StatusbarPopupWindow(JPanel, Window)): this.parent
    //#output(void com.dmdirc.addons.ui_swing.components.statusbar.StatusbarPopupWindow(JPanel, Window)): this.parentWindow
    //#presumption(void com.dmdirc.addons.ui_swing.components.statusbar.StatusbarPopupWindow(JPanel, Window)): init'ed(java.awt.Dialog$ModalityType.MODELESS)
    //#post(void com.dmdirc.addons.ui_swing.components.statusbar.StatusbarPopupWindow(JPanel, Window)): this.parent == parent
    //#post(void com.dmdirc.addons.ui_swing.components.statusbar.StatusbarPopupWindow(JPanel, Window)): init'ed(this.parent)
    //#post(void com.dmdirc.addons.ui_swing.components.statusbar.StatusbarPopupWindow(JPanel, Window)): this.parentWindow == parentWindow
    //#post(void com.dmdirc.addons.ui_swing.components.statusbar.StatusbarPopupWindow(JPanel, Window)): init'ed(this.parentWindow)

        this.parent = parent;
        this.parentWindow = parentWindow;

        setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE);
    //#StatusbarPopupWindow.java:73: Warning: method not available - call not analyzed
    //#    call on void com.dmdirc.addons.ui_swing.components.statusbar.StatusbarPopupWindow:setDefaultCloseOperation(int)
    //#    severity: INFORMATIONAL
    //#    class: com.dmdirc.addons.ui_swing.components.statusbar.StatusbarPopupWindow
    //#    method: void com.dmdirc.addons.ui_swing.components.statusbar.StatusbarPopupWindow(JPanel, Window)
    //#    unanalyzed callee: void com.dmdirc.addons.ui_swing.components.statusbar.StatusbarPopupWindow:setDefaultCloseOperation(int)
    }
    //#StatusbarPopupWindow.java:74: end of method: void com.dmdirc.addons.ui_swing.components.statusbar.StatusbarPopupWindow.com.dmdirc.addons.ui_swing.components.statusbar.StatusbarPopupWindow(JPanel, Window)

    /** {@inheritDoc} */
    @Override
    public void setVisible(boolean b) {
        if (b) {
    //#StatusbarPopupWindow.java:79: method: void com.dmdirc.addons.ui_swing.components.statusbar.StatusbarPopupWindow.setVisible(bool)
    //#StatusbarPopupWindow.java:79: Warning: suspicious precondition
    //#    The precondition for this.__Tag is not a contiguous range of values
    //#    severity: SUPPRESSED
    //#    class: com.dmdirc.addons.ui_swing.components.statusbar.StatusbarPopupWindow
    //#    method: void setVisible(bool)
    //#    suspicious precondition index: [3]
    //#    Attribs:  Soft
    //#input(void setVisible(bool)): " ago"._tainted
    //#input(void setVisible(bool)): __Descendant_Table[com/dmdirc/addons/ui_swing/components/statusbar/ErrorPopup]
    //#input(void setVisible(bool)): __Descendant_Table[com/dmdirc/addons/ui_swing/components/statusbar/InvitePopup]
    //#input(void setVisible(bool)): __Descendant_Table[com/dmdirc/addons/ui_swing/components/statusbar/StatusbarPopupWindow]
    //#input(void setVisible(bool)): __Descendant_Table[others]
    //#input(void setVisible(bool)): __Dispatch_Table.initContent(Ljavax/swing/JPanel;)V
    //#input(void setVisible(bool)): b
    //#input(void setVisible(bool)): com/dmdirc/addons/ui_swing/components/statusbar/ErrorPopup.__Dispatch_Table.initContent(Ljavax/swing/JPanel;)V
    //#input(void setVisible(bool)): com/dmdirc/addons/ui_swing/components/statusbar/InvitePopup.__Dispatch_Table.initContent(Ljavax/swing/JPanel;)V
    //#input(void setVisible(bool)): this
    //#input(void setVisible(bool)): this.__Tag
    //#input(void setVisible(bool)): this.parent
    //#input(void setVisible(bool)): this.parentWindow
    //#input(void setVisible(bool)): this.server
    //#pre[3] (void setVisible(bool)): (soft) this.__Tag in {com/dmdirc/addons/ui_swing/components/statusbar/ErrorPopup, com/dmdirc/addons/ui_swing/components/statusbar/InvitePopup, com/dmdirc/addons/ui_swing/components/statusbar/StatusbarPopupWindow}
    //#pre[4] (void setVisible(bool)): (soft) this.parent != null
    //#pre[5] (void setVisible(bool)): (soft) this.parentWindow != null
    //#presumption(void setVisible(bool)): com.dmdirc.addons.ui_swing.components.statusbar.StatusbarPopupWindow:getHeight(...)@99 <= 2_147_483_648
    //#presumption(void setVisible(bool)): com.dmdirc.addons.ui_swing.components.statusbar.StatusbarPopupWindow:getWidth(...)@100 - (java.awt.Window:getWidth(...)@100 + java.awt.Window:getLocationOnScreen(...).x@100) in {-4_294_967_305..2_147_483_638}
    //#presumption(void setVisible(bool)): javax.swing.JPanel:getWidth(...)@100 + javax.swing.JPanel:getLocationOnScreen(...).x@100 <= com.dmdirc.addons.ui_swing.components.statusbar.StatusbarPopupWindow:getWidth(...)@100 + 4_294_967_296
    //#presumption(void setVisible(bool)): com.dmdirc.addons.ui_swing.components.statusbar.StatusbarPopupWindow:getWidth(...)@99/2 - javax.swing.JPanel:getWidth(...)@99/2 in {-3_221_225_471..2_147_483_648}
    //#presumption(void setVisible(bool)): java.awt.Window:getLocationOnScreen(...)@100 != null
    //#presumption(void setVisible(bool)): java.awt.Window:getWidth(...)@100 + java.awt.Window:getLocationOnScreen(...).x@100 in {-4_294_967_286..8_589_934_590}
    //#presumption(void setVisible(bool)): javax.swing.JPanel:getLocationOnScreen(...)@100 != null
    //#presumption(void setVisible(bool)): javax.swing.JPanel:getLocationOnScreen(...)@98 != null
    //#presumption(void setVisible(bool)): javax.swing.JPanel:getWidth(...)@100 + javax.swing.JPanel:getLocationOnScreen(...).x@100 in {-4_294_967_295..8_589_934_590}
    //#unanalyzed(void setVisible(bool)): Effects-of-calling:com.dmdirc.Server:getInvites
    //#unanalyzed(void setVisible(bool)): Effects-of-calling:java.util.List:iterator
    //#unanalyzed(void setVisible(bool)): Effects-of-calling:java.util.Iterator:hasNext
    //#unanalyzed(void setVisible(bool)): Effects-of-calling:java.util.Iterator:next
    //#unanalyzed(void setVisible(bool)): Effects-of-calling:com.dmdirc.Invite:getChannel
    //#unanalyzed(void setVisible(bool)): Effects-of-calling:javax.swing.JLabel
    //#unanalyzed(void setVisible(bool)): Effects-of-calling:javax.swing.JPanel:add
    //#unanalyzed(void setVisible(bool)): Effects-of-calling:com.dmdirc.Invite:getSource
    //#unanalyzed(void setVisible(bool)): Effects-of-calling:java.lang.StringBuilder
    //#unanalyzed(void setVisible(bool)): Effects-of-calling:java.lang.System:currentTimeMillis
    //#unanalyzed(void setVisible(bool)): Effects-of-calling:com.dmdirc.Invite:getTimestamp
    //#unanalyzed(void setVisible(bool)): Effects-of-calling:com.dmdirc.ui.messages.Formatter:formatDuration
    //#unanalyzed(void setVisible(bool)): Effects-of-calling:java.lang.StringBuilder:append
    //#unanalyzed(void setVisible(bool)): Effects-of-calling:java.lang.StringBuilder:toString
    //#unanalyzed(void setVisible(bool)): Effects-of-calling:com.dmdirc.logger.ErrorManager:getErrorManager
    //#unanalyzed(void setVisible(bool)): Effects-of-calling:com.dmdirc.logger.ErrorManager:getErrors
    //#unanalyzed(void setVisible(bool)): Effects-of-calling:com.dmdirc.util.MapList
    //#unanalyzed(void setVisible(bool)): Effects-of-calling:com.dmdirc.logger.ProgramError:getLevel
    //#unanalyzed(void setVisible(bool)): Effects-of-calling:com.dmdirc.util.MapList:add
    //#unanalyzed(void setVisible(bool)): Effects-of-calling:com.dmdirc.logger.ProgramError:getReportStatus
    //#unanalyzed(void setVisible(bool)): Effects-of-calling:javax.swing.JLabel:getFont
    //#unanalyzed(void setVisible(bool)): Effects-of-calling:java.awt.Font:deriveFont
    //#unanalyzed(void setVisible(bool)): Effects-of-calling:javax.swing.JLabel:setFont
    //#unanalyzed(void setVisible(bool)): Effects-of-calling:com.dmdirc.logger.ErrorLevel:values
    //#unanalyzed(void setVisible(bool)): Effects-of-calling:com.dmdirc.util.MapList:containsKey
    //#unanalyzed(void setVisible(bool)): Effects-of-calling:com.dmdirc.util.MapList:values
    //#unanalyzed(void setVisible(bool)): Effects-of-calling:java.util.Collection:size
    //#unanalyzed(void setVisible(bool)): Effects-of-calling:com.dmdirc.logger.ErrorLevel:toString
    //#unanalyzed(void setVisible(bool)): Effects-of-calling:com.dmdirc.logger.ErrorLevel:getIcon
    //#unanalyzed(void setVisible(bool)): Effects-of-calling:java.lang.String:valueOf
    //#unanalyzed(void setVisible(bool)): Effects-of-calling:javax.swing.JSeparator
    //#unanalyzed(void setVisible(bool)): Effects-of-calling:com.dmdirc.logger.ErrorReportStatus:values
    //#unanalyzed(void setVisible(bool)): Effects-of-calling:com.dmdirc.logger.ErrorReportStatus:toString
    //#unanalyzed(void setVisible(bool)): Effects-of-calling:javax.swing.border.EtchedBorder
    //#test_vector(void setVisible(bool)): b: {0}, {1}
            final JPanel panel = new JPanel();

            panel.setLayout(new MigLayout("ins 3 5 6 10, gap 10 5"));
    //#StatusbarPopupWindow.java:82: Warning: method not available - call not analyzed
    //#    call on void net.miginfocom.swing.MigLayout(String)
    //#    severity: INFORMATIONAL
    //#    class: com.dmdirc.addons.ui_swing.components.statusbar.StatusbarPopupWindow
    //#    method: void setVisible(bool)
    //#    unanalyzed callee: void net.miginfocom.swing.MigLayout(String)

            panel.setBackground(UIManager.getColor("ToolTip.background"));
            panel.setForeground(UIManager.getColor("ToolTip.foreground"));

            initContent(panel);

            add(panel);
    //#StatusbarPopupWindow.java:89: Warning: method not available - call not analyzed
    //#    call on Component com.dmdirc.addons.ui_swing.components.statusbar.StatusbarPopupWindow:add(Component)
    //#    severity: INFORMATIONAL
    //#    class: com.dmdirc.addons.ui_swing.components.statusbar.StatusbarPopupWindow
    //#    method: void setVisible(bool)
    //#    unanalyzed callee: Component com.dmdirc.addons.ui_swing.components.statusbar.StatusbarPopupWindow:add(Component)

            setUndecorated(true);
    //#StatusbarPopupWindow.java:91: Warning: method not available - call not analyzed
    //#    call on void com.dmdirc.addons.ui_swing.components.statusbar.StatusbarPopupWindow:setUndecorated(bool)
    //#    severity: INFORMATIONAL
    //#    class: com.dmdirc.addons.ui_swing.components.statusbar.StatusbarPopupWindow
    //#    method: void setVisible(bool)
    //#    unanalyzed callee: void com.dmdirc.addons.ui_swing.components.statusbar.StatusbarPopupWindow:setUndecorated(bool)
            setFocusableWindowState(false);
    //#StatusbarPopupWindow.java:92: Warning: method not available - call not analyzed
    //#    call on void com.dmdirc.addons.ui_swing.components.statusbar.StatusbarPopupWindow:setFocusableWindowState(bool)
    //#    severity: INFORMATIONAL
    //#    class: com.dmdirc.addons.ui_swing.components.statusbar.StatusbarPopupWindow
    //#    method: void setVisible(bool)
    //#    unanalyzed callee: void com.dmdirc.addons.ui_swing.components.statusbar.StatusbarPopupWindow:setFocusableWindowState(bool)
            setFocusable(false);
    //#StatusbarPopupWindow.java:93: Warning: method not available - call not analyzed
    //#    call on void com.dmdirc.addons.ui_swing.components.statusbar.StatusbarPopupWindow:setFocusable(bool)
    //#    severity: INFORMATIONAL
    //#    class: com.dmdirc.addons.ui_swing.components.statusbar.StatusbarPopupWindow
    //#    method: void setVisible(bool)
    //#    unanalyzed callee: void com.dmdirc.addons.ui_swing.components.statusbar.StatusbarPopupWindow:setFocusable(bool)
            setResizable(false);
    //#StatusbarPopupWindow.java:94: Warning: method not available - call not analyzed
    //#    call on void com.dmdirc.addons.ui_swing.components.statusbar.StatusbarPopupWindow:setResizable(bool)
    //#    severity: INFORMATIONAL
    //#    class: com.dmdirc.addons.ui_swing.components.statusbar.StatusbarPopupWindow
    //#    method: void setVisible(bool)
    //#    unanalyzed callee: void com.dmdirc.addons.ui_swing.components.statusbar.StatusbarPopupWindow:setResizable(bool)

            pack();
    //#StatusbarPopupWindow.java:96: Warning: method not available - call not analyzed
    //#    call on void com.dmdirc.addons.ui_swing.components.statusbar.StatusbarPopupWindow:pack()
    //#    severity: INFORMATIONAL
    //#    class: com.dmdirc.addons.ui_swing.components.statusbar.StatusbarPopupWindow
    //#    method: void setVisible(bool)
    //#    unanalyzed callee: void com.dmdirc.addons.ui_swing.components.statusbar.StatusbarPopupWindow:pack()

            final Point point = parent.getLocationOnScreen();
            point.translate(parent.getWidth() / 2 - this.getWidth() / 2, - this.getHeight());
    //#StatusbarPopupWindow.java:99: Warning: method not available - call not analyzed
    //#    call on int com.dmdirc.addons.ui_swing.components.statusbar.StatusbarPopupWindow:getWidth()
    //#    severity: INFORMATIONAL
    //#    class: com.dmdirc.addons.ui_swing.components.statusbar.StatusbarPopupWindow
    //#    method: void setVisible(bool)
    //#    unanalyzed callee: int com.dmdirc.addons.ui_swing.components.statusbar.StatusbarPopupWindow:getWidth()
    //#StatusbarPopupWindow.java:99: Warning: method not available - call not analyzed
    //#    call on int com.dmdirc.addons.ui_swing.components.statusbar.StatusbarPopupWindow:getHeight()
    //#    severity: INFORMATIONAL
    //#    class: com.dmdirc.addons.ui_swing.components.statusbar.StatusbarPopupWindow
    //#    method: void setVisible(bool)
    //#    unanalyzed callee: int com.dmdirc.addons.ui_swing.components.statusbar.StatusbarPopupWindow:getHeight()
            final int maxX = Math.max(parentWindow.getLocationOnScreen().x
    //#StatusbarPopupWindow.java:100: Warning: method not available - call not analyzed
    //#    call on int com.dmdirc.addons.ui_swing.components.statusbar.StatusbarPopupWindow:getWidth()
    //#    severity: INFORMATIONAL
    //#    class: com.dmdirc.addons.ui_swing.components.statusbar.StatusbarPopupWindow
    //#    method: void setVisible(bool)
    //#    unanalyzed callee: int com.dmdirc.addons.ui_swing.components.statusbar.StatusbarPopupWindow:getWidth()
                    + parentWindow.getWidth() - 10 - getWidth(),
                    parent.getLocationOnScreen().x + parent.getWidth() - 1 - getWidth());
            point.x = Math.min(maxX, point.x);
            setLocation(point);
    //#StatusbarPopupWindow.java:104: Warning: method not available - call not analyzed
    //#    call on void com.dmdirc.addons.ui_swing.components.statusbar.StatusbarPopupWindow:setLocation(Point)
    //#    severity: INFORMATIONAL
    //#    class: com.dmdirc.addons.ui_swing.components.statusbar.StatusbarPopupWindow
    //#    method: void setVisible(bool)
    //#    unanalyzed callee: void com.dmdirc.addons.ui_swing.components.statusbar.StatusbarPopupWindow:setLocation(Point)

            panel.setBorder(new GappedEtchedBorder());
        }

        super.setVisible(b);
    //#StatusbarPopupWindow.java:109: Warning: method not available - call not analyzed
    //#    call on void com.dmdirc.addons.ui_swing.components.StandardDialog:setVisible(bool)
    //#    severity: INFORMATIONAL
    //#    class: com.dmdirc.addons.ui_swing.components.statusbar.StatusbarPopupWindow
    //#    method: void setVisible(bool)
    //#    unanalyzed callee: void com.dmdirc.addons.ui_swing.components.StandardDialog:setVisible(bool)
    }
    //#StatusbarPopupWindow.java:110: end of method: void com.dmdirc.addons.ui_swing.components.statusbar.StatusbarPopupWindow.setVisible(bool)

    /**
     * Initialises the content of the popup window.
     *
     * @param panel The {@link JPanel} to which content should be added
     */
    protected abstract void initContent(final JPanel panel);

    /**
     * An {@link EtchedBorder} that leaves a gap in the bottom where the
     * lag display panel is.
     */
    private class GappedEtchedBorder extends EtchedBorder {
    //#StatusbarPopupWindow.java:123: method: void com.dmdirc.addons.ui_swing.components.statusbar.StatusbarPopupWindow$GappedEtchedBorder.com.dmdirc.addons.ui_swing.components.statusbar.StatusbarPopupWindow$GappedEtchedBorder(StatusbarPopupWindow)
    //#input(void com.dmdirc.addons.ui_swing.components.statusbar.StatusbarPopupWindow$GappedEtchedBorder(StatusbarPopupWindow)): Param_1
    //#input(void com.dmdirc.addons.ui_swing.components.statusbar.StatusbarPopupWindow$GappedEtchedBorder(StatusbarPopupWindow)): this
    //#output(void com.dmdirc.addons.ui_swing.components.statusbar.StatusbarPopupWindow$GappedEtchedBorder(StatusbarPopupWindow)): this.this$0
    //#post(void com.dmdirc.addons.ui_swing.components.statusbar.StatusbarPopupWindow$GappedEtchedBorder(StatusbarPopupWindow)): this.this$0 == Param_1
    //#post(void com.dmdirc.addons.ui_swing.components.statusbar.StatusbarPopupWindow$GappedEtchedBorder(StatusbarPopupWindow)): init'ed(this.this$0)
    //#StatusbarPopupWindow.java:123: end of method: void com.dmdirc.addons.ui_swing.components.statusbar.StatusbarPopupWindow$GappedEtchedBorder.com.dmdirc.addons.ui_swing.components.statusbar.StatusbarPopupWindow$GappedEtchedBorder(StatusbarPopupWindow)
    //#StatusbarPopupWindow.java:123: method: void com.dmdirc.addons.ui_swing.components.statusbar.StatusbarPopupWindow$GappedEtchedBorder.com.dmdirc.addons.ui_swing.components.statusbar.StatusbarPopupWindow$GappedEtchedBorder(StatusbarPopupWindow, StatusbarPopupWindow$1)
    //#input(void com.dmdirc.addons.ui_swing.components.statusbar.StatusbarPopupWindow$GappedEtchedBorder(StatusbarPopupWindow, StatusbarPopupWindow$1)): this
    //#input(void com.dmdirc.addons.ui_swing.components.statusbar.StatusbarPopupWindow$GappedEtchedBorder(StatusbarPopupWindow, StatusbarPopupWindow$1)): x0
    //#output(void com.dmdirc.addons.ui_swing.components.statusbar.StatusbarPopupWindow$GappedEtchedBorder(StatusbarPopupWindow, StatusbarPopupWindow$1)): this.this$0
    //#post(void com.dmdirc.addons.ui_swing.components.statusbar.StatusbarPopupWindow$GappedEtchedBorder(StatusbarPopupWindow, StatusbarPopupWindow$1)): this.this$0 == x0
    //#post(void com.dmdirc.addons.ui_swing.components.statusbar.StatusbarPopupWindow$GappedEtchedBorder(StatusbarPopupWindow, StatusbarPopupWindow$1)): init'ed(this.this$0)
    //#unanalyzed(void com.dmdirc.addons.ui_swing.components.statusbar.StatusbarPopupWindow$GappedEtchedBorder(StatusbarPopupWindow, StatusbarPopupWindow$1)): Effects-of-calling:javax.swing.border.EtchedBorder
    //#StatusbarPopupWindow.java:123: end of method: void com.dmdirc.addons.ui_swing.components.statusbar.StatusbarPopupWindow$GappedEtchedBorder.com.dmdirc.addons.ui_swing.components.statusbar.StatusbarPopupWindow$GappedEtchedBorder(StatusbarPopupWindow, StatusbarPopupWindow$1)

        /**
         * 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 = 1;

        /** {@inheritDoc} */
        @Override
        public void paintBorder(final Component c, final Graphics g,
                final int x, final int y, final int width, final int height) {
            int w = width;
    //#StatusbarPopupWindow.java:136: method: void com.dmdirc.addons.ui_swing.components.statusbar.StatusbarPopupWindow$GappedEtchedBorder.paintBorder(Component, Graphics, int, int, int, int)
    //#input(void paintBorder(Component, Graphics, int, int, int, int)): c
    //#input(void paintBorder(Component, Graphics, int, int, int, int)): g
    //#input(void paintBorder(Component, Graphics, int, int, int, int)): height
    //#input(void paintBorder(Component, Graphics, int, int, int, int)): this
    //#input(void paintBorder(Component, Graphics, int, int, int, int)): this.etchType
    //#input(void paintBorder(Component, Graphics, int, int, int, int)): this.this$0
    //#input(void paintBorder(Component, Graphics, int, int, int, int)): this.this$0.parent
    //#input(void paintBorder(Component, Graphics, int, int, int, int)): width
    //#input(void paintBorder(Component, Graphics, int, int, int, int)): x
    //#input(void paintBorder(Component, Graphics, int, int, int, int)): y
    //#pre[2] (void paintBorder(Component, Graphics, int, int, int, int)): g != null
    //#pre[3] (void paintBorder(Component, Graphics, int, int, int, int)): height >= -2_147_483_647
    //#pre[5] (void paintBorder(Component, Graphics, int, int, int, int)): init'ed(this.etchType)
    //#pre[6] (void paintBorder(Component, Graphics, int, int, int, int)): this.this$0 != null
    //#pre[7] (void paintBorder(Component, Graphics, int, int, int, int)): this.parent != null
    //#pre[8] (void paintBorder(Component, Graphics, int, int, int, int)): width >= -2_147_483_647
    //#pre[9] (void paintBorder(Component, Graphics, int, int, int, int)): x <= 2_147_483_648
    //#pre[10] (void paintBorder(Component, Graphics, int, int, int, int)): y <= 2_147_483_648
    //#presumption(void paintBorder(Component, Graphics, int, int, int, int)): com.dmdirc.addons.ui_swing.components.statusbar.StatusbarPopupWindow:getLocationOnScreen(...).x@143 - javax.swing.JPanel:getLocationOnScreen(...).x@143 in range
    //#presumption(void paintBorder(Component, Graphics, int, int, int, int)): com.dmdirc.addons.ui_swing.components.statusbar.StatusbarPopupWindow:getLocationOnScreen(...).x@145 - (javax.swing.JPanel:getWidth(...)@145 + javax.swing.JPanel:getLocationOnScreen(...).x@145) in range
    //#presumption(void paintBorder(Component, Graphics, int, int, int, int)): com.dmdirc.addons.ui_swing.components.statusbar.StatusbarPopupWindow:getLocationOnScreen(...).x@145 - (javax.swing.JPanel:getWidth(...)@145 + javax.swing.JPanel:getLocationOnScreen(...).x@145) in {-4_294_967_297..2_147_483_646}
    //#presumption(void paintBorder(Component, Graphics, int, int, int, int)): com.dmdirc.addons.ui_swing.components.statusbar.StatusbarPopupWindow:getLocationOnScreen(...)@143 != null
    //#presumption(void paintBorder(Component, Graphics, int, int, int, int)): com.dmdirc.addons.ui_swing.components.statusbar.StatusbarPopupWindow:getLocationOnScreen(...)@145 != null
    //#presumption(void paintBorder(Component, Graphics, int, int, int, int)): javax.swing.JPanel:getLocationOnScreen(...).x@143 - com.dmdirc.addons.ui_swing.components.statusbar.StatusbarPopupWindow:getLocationOnScreen(...).x@143 in {-2_147_483_648..4_294_967_295}
    //#presumption(void paintBorder(Component, Graphics, int, int, int, int)): javax.swing.JPanel:getLocationOnScreen(...)@143 != null
    //#presumption(void paintBorder(Component, Graphics, int, int, int, int)): javax.swing.JPanel:getLocationOnScreen(...)@145 != null
    //#presumption(void paintBorder(Component, Graphics, int, int, int, int)): javax.swing.JPanel:getWidth(...)@145 + javax.swing.JPanel:getLocationOnScreen(...).x@145 in {-4_294_967_294..8_589_934_590}
    //#test_vector(void paintBorder(Component, Graphics, int, int, int, int)): this.etchType: {-2_147_483_648..0, 2..4_294_967_295}, {1}
            int h = height;

            g.translate(x, y);

            g.setColor(etchType == LOWERED? getShadowColor(c) : getHighlightColor(c));
    //#StatusbarPopupWindow.java:141: Warning: method not available - call not analyzed
    //#    call on Color com.dmdirc.addons.ui_swing.components.statusbar.StatusbarPopupWindow$GappedEtchedBorder:getHighlightColor(Component)
    //#    severity: INFORMATIONAL
    //#    class: com.dmdirc.addons.ui_swing.components.statusbar.StatusbarPopupWindow$GappedEtchedBorder
    //#    method: void paintBorder(Component, Graphics, int, int, int, int)
    //#    unanalyzed callee: Color com.dmdirc.addons.ui_swing.components.statusbar.StatusbarPopupWindow$GappedEtchedBorder:getHighlightColor(Component)
    //#StatusbarPopupWindow.java:141: Warning: method not available - call not analyzed
    //#    call on Color com.dmdirc.addons.ui_swing.components.statusbar.StatusbarPopupWindow$GappedEtchedBorder:getShadowColor(Component)
    //#    severity: INFORMATIONAL
    //#    class: com.dmdirc.addons.ui_swing.components.statusbar.StatusbarPopupWindow$GappedEtchedBorder
    //#    method: void paintBorder(Component, Graphics, int, int, int, int)
    //#    unanalyzed callee: Color com.dmdirc.addons.ui_swing.components.statusbar.StatusbarPopupWindow$GappedEtchedBorder:getShadowColor(Component)
            g.drawLine(0, 0, w-1, 0);
            g.drawLine(0, h-1, parent.getLocationOnScreen().x
    //#StatusbarPopupWindow.java:143: Warning: method not available - call not analyzed
    //#    call on Point com.dmdirc.addons.ui_swing.components.statusbar.StatusbarPopupWindow:getLocationOnScreen()
    //#    severity: INFORMATIONAL
    //#    class: com.dmdirc.addons.ui_swing.components.statusbar.StatusbarPopupWindow$GappedEtchedBorder
    //#    method: void paintBorder(Component, Graphics, int, int, int, int)
    //#    unanalyzed callee: Point com.dmdirc.addons.ui_swing.components.statusbar.StatusbarPopupWindow:getLocationOnScreen()
                    - getLocationOnScreen().x, h-1);
            g.drawLine(parent.getWidth() + parent.getLocationOnScreen().x
    //#StatusbarPopupWindow.java:145: Warning: method not available - call not analyzed
    //#    call on Point com.dmdirc.addons.ui_swing.components.statusbar.StatusbarPopupWindow:getLocationOnScreen()
    //#    severity: INFORMATIONAL
    //#    class: com.dmdirc.addons.ui_swing.components.statusbar.StatusbarPopupWindow$GappedEtchedBorder
    //#    method: void paintBorder(Component, Graphics, int, int, int, int)
    //#    unanalyzed callee: Point com.dmdirc.addons.ui_swing.components.statusbar.StatusbarPopupWindow:getLocationOnScreen()
                    - getLocationOnScreen().x - 2, h-1, w-1, h-1);
            g.drawLine(0, 0, 0, h-1);
            g.drawLine(w-1, 0, w-1, h-1);

            g.translate(-x, -y);
        }
    //#StatusbarPopupWindow.java:151: end of method: void com.dmdirc.addons.ui_swing.components.statusbar.StatusbarPopupWindow$GappedEtchedBorder.paintBorder(Component, Graphics, int, int, int, int)

    }

}
    //#output(com.dmdirc.addons.ui_swing.components.statusbar.StatusbarPopupWindow$1__static_init): __Descendant_Table[com/dmdirc/addons/ui_swing/components/statusbar/StatusbarPopupWindow$1]
    //#post(com.dmdirc.addons.ui_swing.components.statusbar.StatusbarPopupWindow$1__static_init): __Descendant_Table[com/dmdirc/addons/ui_swing/components/statusbar/StatusbarPopupWindow$1] == &__Dispatch_Table
    //#StatusbarPopupWindow.java:: end of method: com.dmdirc.addons.ui_swing.components.statusbar.StatusbarPopupWindow$1.com.dmdirc.addons.ui_swing.components.statusbar.StatusbarPopupWindow$1__static_init
    //#StatusbarPopupWindow.java:: end of class: com.dmdirc.addons.ui_swing.components.statusbar.StatusbarPopupWindow$1
    //#output(com.dmdirc.addons.ui_swing.components.statusbar.StatusbarPopupWindow$GappedEtchedBorder__static_init): __Descendant_Table[com/dmdirc/addons/ui_swing/components/statusbar/StatusbarPopupWindow$GappedEtchedBorder]
    //#output(com.dmdirc.addons.ui_swing.components.statusbar.StatusbarPopupWindow$GappedEtchedBorder__static_init): __Dispatch_Table.paintBorder(Ljava/awt/Component;Ljava/awt/Graphics;IIII)V
    //#post(com.dmdirc.addons.ui_swing.components.statusbar.StatusbarPopupWindow$GappedEtchedBorder__static_init): __Descendant_Table[com/dmdirc/addons/ui_swing/components/statusbar/StatusbarPopupWindow$GappedEtchedBorder] == &__Dispatch_Table
    //#post(com.dmdirc.addons.ui_swing.components.statusbar.StatusbarPopupWindow$GappedEtchedBorder__static_init): __Dispatch_Table.paintBorder(Ljava/awt/Component;Ljava/awt/Graphics;IIII)V == &paintBorder
    //#StatusbarPopupWindow.java:: end of method: com.dmdirc.addons.ui_swing.components.statusbar.StatusbarPopupWindow$GappedEtchedBorder.com.dmdirc.addons.ui_swing.components.statusbar.StatusbarPopupWindow$GappedEtchedBorder__static_init
    //#StatusbarPopupWindow.java:: end of class: com.dmdirc.addons.ui_swing.components.statusbar.StatusbarPopupWindow$GappedEtchedBorder
    //#output(com.dmdirc.addons.ui_swing.components.statusbar.StatusbarPopupWindow__static_init): __Descendant_Table[com/dmdirc/addons/ui_swing/components/statusbar/StatusbarPopupWindow]
    //#output(com.dmdirc.addons.ui_swing.components.statusbar.StatusbarPopupWindow__static_init): __Dispatch_Table.initContent(Ljavax/swing/JPanel;)V
    //#output(com.dmdirc.addons.ui_swing.components.statusbar.StatusbarPopupWindow__static_init): __Dispatch_Table.setVisible(Z)V
    //#post(com.dmdirc.addons.ui_swing.components.statusbar.StatusbarPopupWindow__static_init): __Descendant_Table[com/dmdirc/addons/ui_swing/components/statusbar/StatusbarPopupWindow] == &__Dispatch_Table
    //#post(com.dmdirc.addons.ui_swing.components.statusbar.StatusbarPopupWindow__static_init): __Dispatch_Table.initContent(Ljavax/swing/JPanel;)V == &initContent
    //#post(com.dmdirc.addons.ui_swing.components.statusbar.StatusbarPopupWindow__static_init): __Dispatch_Table.setVisible(Z)V == &setVisible
    //#StatusbarPopupWindow.java:: end of method: com.dmdirc.addons.ui_swing.components.statusbar.StatusbarPopupWindow.com.dmdirc.addons.ui_swing.components.statusbar.StatusbarPopupWindow__static_init
    //#StatusbarPopupWindow.java:: end of class: com.dmdirc.addons.ui_swing.components.statusbar.StatusbarPopupWindow
