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

public final Class XTrayIconPeer

extends Object
implements TrayIconPeer, LiveArguments, LiveArguments
Class Inheritance
All Implemented Interfaces
sun.awt.X11.InfoWindow.Tooltip.LiveArguments, sun.awt.X11.InfoWindow.LiveArguments, sun.awt.X11.InfoWindow.Balloon.LiveArguments, java.awt.peer.TrayIconPeer
Imports
java.awt.*, java.awt.event.*, java.awt.peer.TrayIconPeer, sun.awt.*, java.awt.image.*, java.lang.reflect.InvocationTargetException, sun.util.logging.PlatformLogger

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class
pack-priv static class
pack-priv static class
private static class

Field Summary

Modifier and TypeField and Description
pack-priv InfoWindow.Balloon
pack-priv XTrayIconPeer.TrayIconCanvas
private static final PlatformLogger
pack-priv static final XEventDispatcher
pack-priv XTrayIconPeer.XTrayIconEmbeddedFrame
pack-priv long
pack-priv final XEventDispatcher
pack-priv XTrayIconPeer.TrayIconEventProxy
pack-priv int
pack-priv int
pack-priv volatile boolean
pack-priv boolean
pack-priv boolean
pack-priv int
pack-priv int
pack-priv final XEventDispatcher
pack-priv PopupMenu
pack-priv TrayIcon
pack-priv InfoWindow.Tooltip
pack-priv String
pack-priv static final int
pack-priv static final int

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
pack-priv void
private void
addXED(long window, XEventDispatcher xed, long mask)

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

Implements java.awt.peer.TrayIconPeer.displayMessage.

Displays a message at the tray icon.

public void
dispose()

Implements java.awt.peer.TrayIconPeer.dispose.

Disposes the tray icon and releases and resources held by it.

private void
public String
getActionCommand()

Implements sun.awt.X11.InfoWindow.Balloon.LiveArguments.getActionCommand.

The action to be performed upon clicking the balloon.

public Rectangle
getBounds()

Implements sun.awt.X11.InfoWindow.LiveArguments.getBounds.

The bounds of the target of the InfoWindow.

private Point
public String
pack-priv long
public boolean
isDisposed()

Implements sun.awt.X11.InfoWindow.LiveArguments.isDisposed.

Whether the target of the InfoWindow is disposed.

pack-priv void
private void
removeXED(long window, XEventDispatcher xed)

public void
setToolTip(String tooltip)

Implements java.awt.peer.TrayIconPeer.setToolTip.

Sets the tool tip for the tray icon.

public void
showPopupMenu(int x, int y)

Implements java.awt.peer.TrayIconPeer.showPopupMenu.

Shows the popup menu of this tray icon at the specified position.

public static void
public void
updateImage()

Implements java.awt.peer.TrayIconPeer.updateImage.

Updates the icon image.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

balloonback to summary
pack-priv InfoWindow.Balloon balloon
canvasback to summary
pack-priv XTrayIconPeer.TrayIconCanvas canvas
ctrLogback to summary
private static final PlatformLogger ctrLog
dummyXEDback to summary
pack-priv static final XEventDispatcher dummyXED
eframeback to summary
pack-priv XTrayIconPeer.XTrayIconEmbeddedFrame eframe
eframeParentIDback to summary
pack-priv long eframeParentID
eframeXEDback to summary
pack-priv final XEventDispatcher eframeXED
eventProxyback to summary
pack-priv XTrayIconPeer.TrayIconEventProxy eventProxy
ex_heightback to summary
pack-priv int ex_height
ex_widthback to summary
pack-priv int ex_width
isDisposedback to summary
pack-priv volatile boolean isDisposed
isParentWindowLocatedback to summary
pack-priv boolean isParentWindowLocated
isTrayIconDisplayedback to summary
pack-priv boolean isTrayIconDisplayed
old_xback to summary
pack-priv int old_x
old_yback to summary
pack-priv int old_y
parentXEDback to summary
pack-priv final XEventDispatcher parentXED
targetback to summary
pack-priv TrayIcon target
tooltipback to summary
pack-priv InfoWindow.Tooltip tooltip
tooltipStringback to summary
pack-priv String tooltipString
TRAY_ICON_HEIGHTback to summary
pack-priv static final int TRAY_ICON_HEIGHT
TRAY_ICON_WIDTHback to summary
pack-priv static final int TRAY_ICON_WIDTH

Constructor Detail

XTrayIconPeerback to summary
pack-priv XTrayIconPeer(TrayIcon target) throws AWTException

Method Detail

addListenersback to summary
pack-priv void addListeners()
addXEDback to summary
private void addXED(long window, XEventDispatcher xed, long mask)
displayMessageback to summary
public void displayMessage(String caption, String text, String messageType)

Implements java.awt.peer.TrayIconPeer.displayMessage.

Doc from java.awt.peer.TrayIconPeer.displayMessage.

Displays a message at the tray icon.

Annotations
@Override
disposeback to summary
public void dispose()

Implements java.awt.peer.TrayIconPeer.dispose.

Doc from java.awt.peer.TrayIconPeer.dispose.

Disposes the tray icon and releases and resources held by it.

Annotations
@Override
disposeOnEDTback to summary
private void disposeOnEDT()
getActionCommandback to summary
public String getActionCommand()

Implements sun.awt.X11.InfoWindow.Balloon.LiveArguments.getActionCommand.

Doc from sun.awt.X11.InfoWindow.Balloon.LiveArguments.getActionCommand.

The action to be performed upon clicking the balloon.

Annotations
@Override
getBoundsback to summary
public Rectangle getBounds()

Implements sun.awt.X11.InfoWindow.LiveArguments.getBounds.

Doc from sun.awt.X11.InfoWindow.LiveArguments.getBounds.

The bounds of the target of the InfoWindow.

Annotations
@Override
getLocationOnScreenback to summary
private Point getLocationOnScreen()
getTooltipStringback to summary
public String getTooltipString()

Implements sun.awt.X11.InfoWindow.Tooltip.LiveArguments.getTooltipString.

Doc from sun.awt.X11.InfoWindow.Tooltip.LiveArguments.getTooltipString.

The tooltip to be displayed.

Annotations
@Override
getWindowback to summary
pack-priv long getWindow()
isDisposedback to summary
public boolean isDisposed()

Implements sun.awt.X11.InfoWindow.LiveArguments.isDisposed.

Doc from sun.awt.X11.InfoWindow.LiveArguments.isDisposed.

Whether the target of the InfoWindow is disposed.

Annotations
@Override
removeListenersback to summary
pack-priv void removeListeners()
removeXEDback to summary
private void removeXED(long window, XEventDispatcher xed)
setToolTipback to summary
public void setToolTip(String tooltip)

Implements java.awt.peer.TrayIconPeer.setToolTip.

Doc from java.awt.peer.TrayIconPeer.setToolTip.

Sets the tool tip for the tray icon.

Annotations
@Override
showPopupMenuback to summary
public void showPopupMenu(int x, int y)

Implements java.awt.peer.TrayIconPeer.showPopupMenu.

Doc from java.awt.peer.TrayIconPeer.showPopupMenu.

Shows the popup menu of this tray icon at the specified position.

Annotations
@Override
suppressWarningStringback to summary
public static void suppressWarningString(Window w)
updateImageback to summary
public void updateImage()

Implements java.awt.peer.TrayIconPeer.updateImage.

Doc from java.awt.peer.TrayIconPeer.updateImage.

Updates the icon image. This is supposed to display the current icon from the TrayIcon component in the actual tray icon.

Annotations
@Override
sun.awt.X11 back to summary

public Class XTrayIconPeer.IconCanvas

extends Canvas
Class Inheritance
Known Direct Subclasses
sun.awt.X11.XTrayIconPeer.TrayIconCanvas
Annotations
@SuppressWarnings:serial

Nested and Inner Type Summary

Modifier and TypeClass and Description
pack-priv class

Field Summary

Modifier and TypeField and Description
pack-priv int
pack-priv int
pack-priv int
pack-priv volatile Image
pack-priv XTrayIconPeer.IconCanvas.IconObserver
pack-priv int

Constructor Summary

AccessConstructor and Description
pack-priv
IconCanvas(int width, int height)

Method Summary

Modifier and TypeMethod and Description
public void
public void
paint(Graphics g)

Overrides java.awt.Canvas.paint.

Paints this canvas.

protected void
repaintImage(boolean doClear)

public void
Inherited from java.awt.Canvas:
addNotifycreateBufferStrategycreateBufferStrategygetAccessibleContextgetBufferStrategyupdate

Field Detail

curHback to summary
pack-priv int curH
curWback to summary
pack-priv int curW
heightback to summary
pack-priv int height

Hides java.awt.Component.height.

imageback to summary
pack-priv volatile Image image
observerback to summary
pack-priv XTrayIconPeer.IconCanvas.IconObserver observer
widthback to summary
pack-priv int width

Hides java.awt.Component.width.

Constructor Detail

IconCanvasback to summary
pack-priv IconCanvas(int width, int height)

Method Detail

disposeback to summary
public void dispose()
paintback to summary
public void paint(Graphics g)

Overrides java.awt.Canvas.paint.

Doc from java.awt.Canvas.paint.

Paints this canvas.

Most applications that subclass Canvas should override this method in order to perform some useful operation (typically, custom painting of the canvas). The default operation is simply to clear the canvas. Applications that override this method need not call super.paint(g).

Annotations
@Override
repaintImageback to summary
protected void repaintImage(boolean doClear)
updateImageback to summary
public void updateImage(Image image)
sun.awt.X11 back to summary

pack-priv final Class XTrayIconPeer.IconCanvas.IconObserver

extends Object
implements ImageObserver
Class Inheritance
All Implemented Interfaces
java.awt.image.ImageObserver

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public boolean
imageUpdate(final Image image, final int flags, int x, int y, int width, int height)

Implements java.awt.image.ImageObserver.imageUpdate.

This method is called when information about an image which was previously requested using an asynchronous interface becomes available.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

IconObserverback to summary
pack-priv IconObserver()

Method Detail

imageUpdateback to summary
public boolean imageUpdate(final Image image, final int flags, int x, int y, int width, int height)

Implements java.awt.image.ImageObserver.imageUpdate.

Doc from java.awt.image.ImageObserver.imageUpdate.

This method is called when information about an image which was previously requested using an asynchronous interface becomes available. Asynchronous interfaces are method calls such as getWidth(ImageObserver) and drawImage(img, x, y, ImageObserver) which take an ImageObserver object as an argument. Those methods register the caller as interested either in information about the overall image itself (in the case of getWidth(ImageObserver)) or about an output version of an image (in the case of the drawImage(img, x, y, [w, h,] ImageObserver) call).

This method should return true if further updates are needed or false if the required information has been acquired. The image which was being tracked is passed in using the img argument. Various constants are combined to form the infoflags argument which indicates what information about the image is now available. The interpretation of the x, y, width, and height arguments depends on the contents of the infoflags argument.

The infoflags argument should be the bitwise inclusive OR of the following flags: WIDTH, HEIGHT, PROPERTIES, SOMEBITS, FRAMEBITS, ALLBITS, ERROR, ABORT.

Annotations
@Override
sun.awt.X11 back to summary

pack-priv final Class XTrayIconPeer.TrayIconCanvas

extends IconCanvas
Class Inheritance
Annotations
@SuppressWarnings:serial

Field Summary

Modifier and TypeField and Description
pack-priv boolean
pack-priv TrayIcon
Inherited from sun.awt.X11.XTrayIconPeer.IconCanvas:
curHcurWheightimageobserverwidth

Constructor Summary

AccessConstructor and Description
pack-priv
TrayIconCanvas(TrayIcon target, int width, int height)

Method Summary

Modifier and TypeMethod and Description
public void
protected void
Inherited from sun.awt.X11.XTrayIconPeer.IconCanvas:
paintupdateImage

Field Detail

autosizeback to summary
pack-priv boolean autosize
targetback to summary
pack-priv TrayIcon target

Constructor Detail

TrayIconCanvasback to summary
pack-priv TrayIconCanvas(TrayIcon target, int width, int height)

Method Detail

disposeback to summary
public void dispose()

Overrides sun.awt.X11.XTrayIconPeer.IconCanvas.dispose.

Annotations
@Override
repaintImageback to summary
protected void repaintImage(boolean doClear)

Overrides sun.awt.X11.XTrayIconPeer.IconCanvas.repaintImage.

Annotations
@Override
sun.awt.X11 back to summary

pack-priv final Class XTrayIconPeer.TrayIconEventProxy

extends Object
implements MouseListener, MouseMotionListener
Class Inheritance
All Implemented Interfaces
java.awt.event.MouseMotionListener, java.util.EventListener, java.awt.event.MouseListener

Field Summary

Modifier and TypeField and Description
pack-priv XTrayIconPeer

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

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

Implements java.awt.event.MouseListener.mouseClicked.

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

public void
mouseDragged(MouseEvent e)

Implements java.awt.event.MouseMotionListener.mouseDragged.

Invoked when a mouse button is pressed on a component and then dragged.

public void
mouseEntered(MouseEvent e)

Implements java.awt.event.MouseListener.mouseEntered.

Invoked when the mouse enters a component.

public void
mouseExited(MouseEvent e)

Implements java.awt.event.MouseListener.mouseExited.

Invoked when the mouse exits a component.

public void
mouseMoved(MouseEvent e)

Implements java.awt.event.MouseMotionListener.mouseMoved.

Invoked when the mouse cursor has been moved onto a component but no buttons have been pushed.

public void
mousePressed(MouseEvent e)

Implements java.awt.event.MouseListener.mousePressed.

Invoked when a mouse button has been pressed on a component.

public void
mouseReleased(MouseEvent e)

Implements java.awt.event.MouseListener.mouseReleased.

Invoked when a mouse button has been released on a component.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

xtiPeerback to summary
pack-priv XTrayIconPeer xtiPeer

Constructor Detail

TrayIconEventProxyback to summary
pack-priv TrayIconEventProxy(XTrayIconPeer xtiPeer)

Method Detail

handleEventback to summary
public void handleEvent(MouseEvent e)
mouseClickedback to summary
public void mouseClicked(MouseEvent e)

Implements java.awt.event.MouseListener.mouseClicked.

Doc from java.awt.event.MouseListener.mouseClicked.

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

Annotations
@Override
@SuppressWarnings:deprecation
mouseDraggedback to summary
public void mouseDragged(MouseEvent e)

Implements java.awt.event.MouseMotionListener.mouseDragged.

Doc from java.awt.event.MouseMotionListener.mouseDragged.

Invoked when a mouse button is pressed on a component and then dragged. MOUSE_DRAGGED events will continue to be delivered to the component where the drag originated until the mouse button is released (regardless of whether the mouse position is within the bounds of the component).

Due to platform-dependent Drag&Drop implementations, MOUSE_DRAGGED events may not be delivered during a native Drag&Drop operation.

Annotations
@Override
mouseEnteredback to summary
public void mouseEntered(MouseEvent e)

Implements java.awt.event.MouseListener.mouseEntered.

Doc from java.awt.event.MouseListener.mouseEntered.

Invoked when the mouse enters a component.

Annotations
@Override
mouseExitedback to summary
public void mouseExited(MouseEvent e)

Implements java.awt.event.MouseListener.mouseExited.

Doc from java.awt.event.MouseListener.mouseExited.

Invoked when the mouse exits a component.

Annotations
@Override
mouseMovedback to summary
public void mouseMoved(MouseEvent e)

Implements java.awt.event.MouseMotionListener.mouseMoved.

Doc from java.awt.event.MouseMotionListener.mouseMoved.

Invoked when the mouse cursor has been moved onto a component but no buttons have been pushed.

Annotations
@Override
mousePressedback to summary
public void mousePressed(MouseEvent e)

Implements java.awt.event.MouseListener.mousePressed.

Doc from java.awt.event.MouseListener.mousePressed.

Invoked when a mouse button has been pressed on a component.

Annotations
@Override
mouseReleasedback to summary
public void mouseReleased(MouseEvent e)

Implements java.awt.event.MouseListener.mouseReleased.

Doc from java.awt.event.MouseListener.mouseReleased.

Invoked when a mouse button has been released on a component.

Annotations
@Override
sun.awt.X11 back to summary

private final Class XTrayIconPeer.XTrayIconEmbeddedFrame

extends XEmbeddedFrame
Class Inheritance
Annotations
@SuppressWarnings:serial

Field Summary

Inherited from sun.awt.X11.XEmbeddedFrame:
handle

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
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.

public boolean
isResizable()

Overrides sun.awt.EmbeddedFrame.isResizable.

Indicates whether this frame is resizable by the user.

public boolean
isUndecorated()

Overrides java.awt.Frame.isUndecorated.

Indicates whether this frame is undecorated.

public void
Inherited from sun.awt.X11.XEmbeddedFrame:
addNotifyregisterAcceleratorsynthesizeWindowActivationtraverseIntraverseOutunregisterAccelerator

Constructor Detail

XTrayIconEmbeddedFrameback to summary
public XTrayIconEmbeddedFrame()

Method Detail

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
isResizableback to summary
public boolean isResizable()

Overrides sun.awt.EmbeddedFrame.isResizable.

Doc from java.awt.Frame.isResizable.

Indicates whether this frame is resizable by the user. By default, all frames are initially resizable.

Annotations
@Override
isUndecoratedback to summary
public boolean isUndecorated()

Overrides java.awt.Frame.isUndecorated.

Doc from java.awt.Frame.isUndecorated.

Indicates whether this frame is undecorated. By default, all frames are initially decorated.

Annotations
@Override
realDisposeback to summary
public void realDispose()