/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
* particular file as subject to the "Classpath" exception as provided
* by Oracle in the LICENSE file that accompanied this code.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
/**
* An utility window class. This is a base class for Tooltip and Balloon.
*/
super(parent);
}
};
setLayout(new BorderLayout());
}
return c;
}
}
// Must be executed on EDT.
assert SunToolkit.isDispatchThreadForAppContext(this);
pack();
// TODO: When 6356322 is fixed we should get screen bounds in
// this way: eframe.getGraphicsConfiguration().getBounds().
}
super.show();
}
public void hide() {
}
int time;
public void run() {
doClose();
}
}
void schedule() {
}
void close() {
doClose();
}
// WARNING: this method may be executed on Toolkit thread.
private void doClose() {
public void run() {
InfoWindow.super.hide();
invalidate();
}
}
});
}
}
private interface LiveArguments {
/** Whether the target of the InfoWindow is disposed. */
boolean isDisposed();
/** The bounds of the target of the InfoWindow. */
}
/** The tooltip to be displayed. */
}
public void run() {
display();
}};
{
this.liveArguments = liveArguments;
}
/*
* WARNING: this method is executed on Toolkit thread!
*/
private void display() {
// Execute on EDT to avoid deadlock (see 6280857).
public void run() {
if (liveArguments.isDisposed()) {
return;
}
if (tooltipString == null) {
return;
} else {
}
return null;
}
}
});
return;
}
}
});
}
public void enter() {
}
public void exit() {
if (isVisible()) {
hide();
}
}
}
}
/** The action to be performed upon clicking the baloon. */
}
private XTrayIconPeer.IconCanvas iconCanvas = new XTrayIconPeer.IconCanvas(BALLOON_ICON_WIDTH, BALLOON_ICON_HEIGHT);
private boolean gtkImagesLoaded;
this.liveArguments = liveArguments;
public void run() {
try {
displayer.isDisplayed = false;
} finally {
}
}
}
}, BALLOON_SHOW_TIME);
public void actionPerformed(ActionEvent e) {
hide();
}
});
for (int i = 0; i < BALLOON_WORD_LINE_MAX_COUNT; i++) {
lineLabels[i] = new Label();
}
}
if (!gtkImagesLoaded) {
}
}
int nLines = 0;
do {
{
}
if (nLines == BALLOON_WORD_LINE_MAX_COUNT) {
}
break;
}
}
} else {
}
}
public void run() {
if (liveArguments.isDisposed()) {
return;
}
}
}
});
}
public void dispose() {
super.dispose();
}
private void loadGtkImages() {
if (!gtkImagesLoaded) {
"gtk.icon.gtk-dialog-error.6.rtl");
"gtk.icon.gtk-dialog-warning.6.rtl");
"gtk.icon.gtk-dialog-info.6.rtl");
gtkImagesLoaded = true;
}
}
// hide the balloon by any click
hide();
e.getWhen(), e.getModifiers());
}
}
}
boolean isDisplayed;
Displayer() {
setDaemon(true);
}
public void run() {
while (true) {
try {
} catch (InterruptedException e) {
return;
}
/*
* Wait till the previous message is displayed if any
*/
try {
while (isDisplayed) {
try {
} catch (InterruptedException e) {
return;
}
}
isDisplayed = true;
} finally {
}
}
}
}
}
private static class Message {
this.messageType = messageType;
}
}
}
}