APIdia Launch Partner
Top Description Inners Fields Constructors Methods
sun.awt.X11

public abstract Class InfoWindow

extends Window
Class Inheritance
Known Direct Subclasses
sun.awt.X11.InfoWindow.Tooltip, sun.awt.X11.InfoWindow.Balloon
Annotations
@SuppressWarnings:serial
Imports
java.awt.BorderLayout, .Button, .Color, .Component, .Container, .Dimension, .EventQueue, .Font, .Frame, .GridLayout, .Image, .Insets, .Label, .MouseInfo, .Panel, .Point, .Rectangle, .Toolkit, .Window, java.awt.event.ActionEvent, .ActionListener, .MouseAdapter, .MouseEvent, java.text.BreakIterator, java.util.concurrent.ArrayBlockingQueue, sun.awt.SunToolkit, .UNIXToolkit

An utility window class. This is a base class for Tooltip and Balloon.

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class
private class
private static interface
public static class

Field Summary

Modifier and TypeField and Description
private InfoWindow.Closer
private Container

Constructor Summary

AccessConstructor and Description
protected
InfoWindow(Frame parent, Color borderColor)

Method Summary

Modifier and TypeMethod and Description
public Component
add(Component c)

Overrides java.awt.Container.add.

Appends the specified component to the end of this container.

public void
hide()

Overrides java.awt.Window.hide.

Hide this Window, its subcomponents, and all of its owned children.

protected void
setCloser(Runnable action, int time)

protected void
show(Point corner, int indent)

Inherited from java.awt.Window:
addNotifyaddPropertyChangeListeneraddPropertyChangeListeneraddWindowFocusListeneraddWindowListeneraddWindowStateListenerapplyResourceBundleapplyResourceBundlecreateBufferStrategycreateBufferStrategydisposegetAccessibleContextgetBackgroundgetBufferStrategygetFocusableWindowStategetFocusCycleRootAncestorgetFocusOwnergetFocusTraversalKeysgetIconImagesgetInputContextgetListenersgetLocalegetModalExclusionTypegetMostRecentFocusOwnergetOpacitygetOwnedWindowsgetOwnergetOwnerlessWindowsgetShapegetToolkitgetTypegetWarningStringgetWindowFocusListenersgetWindowListenersgetWindowsgetWindowStateListenersisActiveisAlwaysOnTopisAlwaysOnTopSupportedisAutoRequestFocusisFocusableWindowisFocusCycleRootisFocusedisLocationByPlatformisOpaqueisShowingisValidateRootpackpaintpostEventprocessEventprocessWindowEventprocessWindowFocusEventprocessWindowStateEventremoveNotifyremoveWindowFocusListenerremoveWindowListenerremoveWindowStateListenerreshapesetAlwaysOnTopsetAutoRequestFocussetBackgroundsetBoundssetBoundssetCursorsetFocusableWindowStatesetFocusCycleRootsetIconImagesetIconImagessetLocationsetLocationsetLocationByPlatformsetLocationRelativeTosetMinimumSizesetModalExclusionTypesetOpacitysetShapesetSizesetSizesetTypesetVisibleshowtoBacktoFront

Field Detail

closerback to summary
private InfoWindow.Closer closer
containerback to summary
private Container container

Constructor Detail

InfoWindowback to summary
protected InfoWindow(Frame parent, Color borderColor)

Method Detail

addback to summary
public Component add(Component c)

Overrides java.awt.Container.add.

Doc from java.awt.Container.add.

Appends the specified component to the end of this container. This is a convenience method for addImpl.

This method changes layout-related information, and therefore, invalidates the component hierarchy. If the container has already been displayed, the hierarchy must be validated thereafter in order to display the added component.

Annotations
@Override
hideback to summary
public void hide()

Overrides java.awt.Window.hide.

Doc from java.awt.Window.hide.

Hide this Window, its subcomponents, and all of its owned children. The Window and its subcomponents can be made visible again with a call to show.

Annotations
@Override
@SuppressWarnings:deprecation
setCloserback to summary
protected void setCloser(Runnable action, int time)
showback to summary
protected void show(Point corner, int indent)
Annotations
@SuppressWarnings:deprecation
sun.awt.X11 back to summary

public final Class InfoWindow.Balloon

extends InfoWindow
Class Inheritance
Annotations
@SuppressWarnings:serial

Nested and Inner Type Summary

Modifier and TypeClass and Description
private class
private class
public static interface
private static class

Field Summary

Modifier and TypeField and Description
private InfoWindow.Balloon.ActionPerformer
private static final Color
private static final Font
private static final int
private static final int
private static final int
private static final int
private static final int
private static final int
private static final int
private Label
private Panel
private Button
private InfoWindow.Balloon.Displayer
private Image
private boolean
private XTrayIconPeer.IconCanvas
private Image
private Image
private Label[]
private final InfoWindow.Balloon.LiveArguments
private Panel
private final Object
private Panel
private Image

Constructor Summary

AccessConstructor and Description
public
Balloon(Frame parent, Object target, InfoWindow.Balloon.LiveArguments liveArguments)

Method Summary

Modifier and TypeMethod and Description
private void
_display(String caption, String text, String messageType)

public void
display(String caption, String text, String messageType)

public void
dispose()

Overrides java.awt.Window.dispose.

Releases all of the native screen resources used by this Window, its subcomponents, and all of its owned children.

private void
Inherited from sun.awt.X11.InfoWindow:
addhidesetClosershow

Field Detail

apback to summary
private InfoWindow.Balloon.ActionPerformer ap
BALLOON_CAPTION_BACKGROUND_COLORback to summary
private static final Color BALLOON_CAPTION_BACKGROUND_COLOR
BALLOON_CAPTION_FONTback to summary
private static final Font BALLOON_CAPTION_FONT
BALLOON_ICON_HEIGHTback to summary
private static final int BALLOON_ICON_HEIGHT
BALLOON_ICON_WIDTHback to summary
private static final int BALLOON_ICON_WIDTH
BALLOON_SHOW_TIMEback to summary
private static final int BALLOON_SHOW_TIME
BALLOON_TEXT_MAX_LENGTHback to summary
private static final int BALLOON_TEXT_MAX_LENGTH
BALLOON_TRAY_ICON_INDENTback to summary
private static final int BALLOON_TRAY_ICON_INDENT
BALLOON_WORD_LINE_MAX_COUNTback to summary
private static final int BALLOON_WORD_LINE_MAX_COUNT
BALLOON_WORD_LINE_MAX_LENGTHback to summary
private static final int BALLOON_WORD_LINE_MAX_LENGTH
captionLabelback to summary
private Label captionLabel
captionPanelback to summary
private Panel captionPanel
closeButtonback to summary
private Button closeButton
displayerback to summary
private InfoWindow.Balloon.Displayer displayer
errorImageback to summary
private Image errorImage
gtkImagesLoadedback to summary
private boolean gtkImagesLoaded
iconCanvasback to summary
private XTrayIconPeer.IconCanvas iconCanvas
iconImageback to summary
private Image iconImage
infoImageback to summary
private Image infoImage
lineLabelsback to summary
private Label[] lineLabels
liveArgumentsback to summary
private final InfoWindow.Balloon.LiveArguments liveArguments
mainPanelback to summary
private Panel mainPanel
targetback to summary
private final Object target
textPanelback to summary
private Panel textPanel
warnImageback to summary
private Image warnImage

Constructor Detail

Balloonback to summary
public Balloon(Frame parent, Object target, InfoWindow.Balloon.LiveArguments liveArguments)

Method Detail

_displayback to summary
private void _display(String caption, String text, String messageType)
displayback to summary
public void display(String caption, String text, String messageType)
disposeback to summary
public void dispose()

Overrides java.awt.Window.dispose.

Doc from java.awt.Window.dispose.

Releases all of the native screen resources used by this Window, its subcomponents, and all of its owned children. That is, the resources for these Components will be destroyed, any memory they consume will be returned to the OS, and they will be marked as undisplayable.

The Window and its subcomponents can be made displayable again by rebuilding the native resources with a subsequent call to pack or show. The states of the recreated Window and its subcomponents will be identical to the states of these objects at the point where the Window was disposed (not accounting for additional modifications between those actions).

Note

When the last displayable window within the Java virtual machine (VM) is disposed of, the VM may terminate. See AWT Threading Issues for more information.

Annotations
@Override
loadGtkImagesback to summary
private void loadGtkImages()
sun.awt.X11 back to summary

private final Class InfoWindow.Balloon.ActionPerformer

extends MouseAdapter
Class Inheritance
Annotations
@SuppressWarnings:deprecation

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public void
mouseClicked(MouseEvent e)

Overrides java.awt.event.MouseAdapter.mouseClicked.

Implements java.awt.event.MouseListener.mouseClicked.

Invoked when the mouse button has been clicked (pressed and released) on a component.

Inherited from java.awt.event.MouseAdapter:
mouseDraggedmouseEnteredmouseExitedmouseMovedmousePressedmouseReleasedmouseWheelMoved

Constructor Detail

ActionPerformerback to summary
private ActionPerformer()

Method Detail

mouseClickedback to summary
public void mouseClicked(MouseEvent e)

Overrides java.awt.event.MouseAdapter.mouseClicked.

Implements java.awt.event.MouseListener.mouseClicked.

Doc from java.awt.event.MouseAdapter.mouseClicked.

Invoked when the mouse button has been clicked (pressed and released) on a component.

Annotations
@Override
sun.awt.X11 back to summary

private final Class InfoWindow.Balloon.Displayer

extends Object
implements Runnable
Class Inheritance
All Implemented Interfaces
java.lang.Runnable

Field Summary

Modifier and TypeField and Description
pack-priv boolean
pack-priv final int
pack-priv ArrayBlockingQueue<InfoWindow.Balloon.Message>
pack-priv final Thread

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
pack-priv void
display(String caption, String text, String messageType)

public void
run()

Implements java.lang.Runnable.run.

Runs this operation.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

isDisplayedback to summary
pack-priv boolean isDisplayed
MAX_CONCURRENT_MSGSback to summary
pack-priv final int MAX_CONCURRENT_MSGS
messageQueueback to summary
pack-priv ArrayBlockingQueue<InfoWindow.Balloon.Message> messageQueue
threadback to summary
pack-priv final Thread thread

Constructor Detail

Displayerback to summary
pack-priv Displayer()

Method Detail

displayback to summary
pack-priv void display(String caption, String text, String messageType)
runback to summary
public void run()

Implements java.lang.Runnable.run.

Doc from java.lang.Runnable.run.

Runs this operation.

Annotations
@Override
sun.awt.X11 back to summary

public Interface InfoWindow.Balloon.LiveArguments

extends LiveArguments
Known Direct Implementers
sun.awt.X11.XTrayIconPeer

Method Summary

Modifier and TypeMethod and Description
public String
getActionCommand()

The action to be performed upon clicking the balloon.

Inherited from sun.awt.X11.InfoWindow.LiveArguments:
getBoundsisDisposed

Method Detail

getActionCommandback to summary
public String getActionCommand()

The action to be performed upon clicking the balloon.

sun.awt.X11 back to summary

private final Class InfoWindow.Balloon.Message

extends Object
Class Inheritance

Field Summary

Modifier and TypeField and Description
pack-priv String
pack-priv String
pack-priv String

Constructor Summary

AccessConstructor and Description
pack-priv
Message(String caption, String text, String messageType)

Field Detail

captionback to summary
pack-priv String caption
messageTypeback to summary
pack-priv String messageType
textback to summary
pack-priv String text

Constructor Detail

Messageback to summary
pack-priv Message(String caption, String text, String messageType)
sun.awt.X11 back to summary

private final Class InfoWindow.Closer

extends Object
implements Runnable
Class Inheritance
All Implemented Interfaces
java.lang.Runnable

Field Summary

Modifier and TypeField and Description
pack-priv Runnable
pack-priv int

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
pack-priv void
private void
public void
run()

Implements java.lang.Runnable.run.

Runs this operation.

pack-priv void
pack-priv void
set(Runnable action, int time)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

actionback to summary
pack-priv Runnable action
timeback to summary
pack-priv int time

Constructor Detail

Closerback to summary
private Closer()

Method Detail

closeback to summary
pack-priv void close()
doCloseback to summary
private void doClose()
Annotations
@SuppressWarnings:deprecation
runback to summary
public void run()

Implements java.lang.Runnable.run.

Doc from java.lang.Runnable.run.

Runs this operation.

Annotations
@Override
scheduleback to summary
pack-priv void schedule()
setback to summary
pack-priv void set(Runnable action, int time)
sun.awt.X11 back to summary

private Interface InfoWindow.LiveArguments

Known Direct Subinterfaces
sun.awt.X11.InfoWindow.Tooltip.LiveArguments, sun.awt.X11.InfoWindow.Balloon.LiveArguments

Method Summary

Modifier and TypeMethod and Description
public Rectangle
getBounds()

The bounds of the target of the InfoWindow.

public boolean
isDisposed()

Whether the target of the InfoWindow is disposed.

Method Detail

getBoundsback to summary
public Rectangle getBounds()

The bounds of the target of the InfoWindow.

isDisposedback to summary
public boolean isDisposed()

Whether the target of the InfoWindow is disposed.

sun.awt.X11 back to summary

public final Class InfoWindow.Tooltip

extends InfoWindow
Class Inheritance
Annotations
@SuppressWarnings:serial

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static interface

Field Summary

Modifier and TypeField and Description
private final InfoWindow.Tooltip.LiveArguments
private final Runnable
private final Object
private final Label
private static final Color
private static final int
private static final int
private static final int
private static final int
private static final Font

Constructor Summary

AccessConstructor and Description
public
Tooltip(Frame parent, Object target, InfoWindow.Tooltip.LiveArguments liveArguments)

Method Summary

Modifier and TypeMethod and Description
private void
public void
public void
exit()

private boolean
Inherited from sun.awt.X11.InfoWindow:
addhidesetClosershow

Field Detail

liveArgumentsback to summary
private final InfoWindow.Tooltip.LiveArguments liveArguments
starterback to summary
private final Runnable starter
targetback to summary
private final Object target
textLabelback to summary
private final Label textLabel
TOOLTIP_BACKGROUND_COLORback to summary
private static final Color TOOLTIP_BACKGROUND_COLOR
TOOLTIP_MAX_LENGTHback to summary
private static final int TOOLTIP_MAX_LENGTH
TOOLTIP_MOUSE_CURSOR_INDENTback to summary
private static final int TOOLTIP_MOUSE_CURSOR_INDENT
TOOLTIP_SHOW_TIMEback to summary
private static final int TOOLTIP_SHOW_TIME
TOOLTIP_START_DELAY_TIMEback to summary
private static final int TOOLTIP_START_DELAY_TIME
TOOLTIP_TEXT_FONTback to summary
private static final Font TOOLTIP_TEXT_FONT

Constructor Detail

Tooltipback to summary
public Tooltip(Frame parent, Object target, InfoWindow.Tooltip.LiveArguments liveArguments)

Method Detail

displayback to summary
private void display()
enterback to summary
public void enter()
exitback to summary
public void exit()
isPointerOverTrayIconback to summary
private boolean isPointerOverTrayIcon(Rectangle trayRect)
sun.awt.X11 back to summary

public Interface InfoWindow.Tooltip.LiveArguments

extends LiveArguments
Known Direct Implementers
sun.awt.X11.XTrayIconPeer

Method Summary

Modifier and TypeMethod and Description
public String
getTooltipString()

The tooltip to be displayed.

Inherited from sun.awt.X11.InfoWindow.LiveArguments:
getBoundsisDisposed

Method Detail

getTooltipStringback to summary
public String getTooltipString()

The tooltip to be displayed.