Top Description Inners Fields Constructors Methods
com.sun.jna.examples

public Class BalloonManagerDemo

extends Object
Class Inheritance
Imports
java.awt.BasicStroke, .Color, .Component, .Dimension, .Font, .Graphics, .Graphics2D, .RenderingHints, java.awt.event.MouseAdapter, .MouseEvent, .MouseListener, java.awt.geom.Rectangle2D, javax.swing.Icon, .JFrame, .JLabel, .JOptionPane, .JScrollPane, .JTextArea, .Popup, .SwingConstants, .UIManager, javax.swing.border.EmptyBorder

Demonstration of BalloonManager.

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class

Field Summary

Modifier and TypeField and Description
private static final int

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public static void
main(String[] args)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

ICON_SIZEback to summary
private static final int ICON_SIZE

Constructor Detail

BalloonManagerDemoback to summary
public BalloonManagerDemo()

Method Detail

mainback to summary
public static void main(String[] args)
com.sun.jna.examples back to summary

private Class BalloonManagerDemo.InfoIcon

extends Object
implements Icon
Class Inheritance
All Implemented Interfaces
javax.swing.Icon

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public int
getIconHeight()

Implements javax.swing.Icon.getIconHeight.

Returns the icon's height.
public int
getIconWidth()

Implements javax.swing.Icon.getIconWidth.

Returns the icon's width.
public void
paintIcon(Component
a Component to get properties useful for painting
c
,
Graphics
the graphics context
graphics
,
int
the X coordinate of the icon's top-left corner
x
,
int
the Y coordinate of the icon's top-left corner
y
)

Implements javax.swing.Icon.paintIcon.

Draw the icon at the specified location.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

InfoIconback to summary
private InfoIcon()

Method Detail

getIconHeightback to summary
public int getIconHeight()

Implements javax.swing.Icon.getIconHeight.

Doc from javax.swing.Icon.getIconHeight.

Returns the icon's height.

Returns:int

an int specifying the fixed height of the icon.

getIconWidthback to summary
public int getIconWidth()

Implements javax.swing.Icon.getIconWidth.

Doc from javax.swing.Icon.getIconWidth.

Returns the icon's width.

Returns:int

an int specifying the fixed width of the icon.

paintIconback to summary
public void paintIcon(Component c, Graphics graphics, int x, int y)

Implements javax.swing.Icon.paintIcon.

Doc from javax.swing.Icon.paintIcon.

Draw the icon at the specified location. Icon implementations may use the Component argument to get properties useful for painting, e.g. the foreground or background color.

Parameters
c:Component

a Component to get properties useful for painting

graphics:Graphics

the graphics context

x:int

the X coordinate of the icon's top-left corner

y:int

the Y coordinate of the icon's top-left corner