'; zhtm += ''; zhtm += '

' + pPage + ''; zhtm += '
'; window.popUpWin.document.write(zhtm); window.popUpWin.document.close(); // Johnny Jackson 4/28/98 } //--> Java 1.2 Unleashed -- Appendix F -- JDK 1.2 API Description


Java 1.2 Unleashed

Previous chapterContents


- F -

JDK 1.2 API Description


This appendix describes the packages of the JDK 1.2 API in terms of their interfaces, classes, exceptions, and errors. Also, hierarchical relationships between package elements are identified.

java.applet java.lang.reflect

java.awt java.math

com.sun.java.accessibility java.net

java.awt.colorjava.rmi java.rmi.activation

java.awt.datatransfer java.rmi.dgc

java.awt.dnd java.rmi.registry

java.awt.event java.rmi.server

java.awt.font java.security

java.awt.geom java.security.acl

java.awt.im java.security.cert

java.awt.image java.security.interfaces

com.sun.java.image.codec.jpeg java.security.spec

java.awt.image.renderable java.sql

java.awt.print java.text

com.sun.java.swing java.util

com.sun.java.swing.border java.util.jar

com.sun.java.swing.event java.util.mime

com.sun.java.swing.plaf java.util.zip

com.sun.java.swing.table org.omg.CORBA

com.sun.java.swing.text org.omg.CORBA.ContainedPackage

com.sun.java.swing.text.html org.omg.CORBA.ContainerPackage

com.sun.java.swing.text.rtf org.omg.CORBA.InterfaceDefPackage

com.sun.java.swing.tree org.omg.CORBA.ORBPackage

com.sun.java.swing.undog org.omg.CORBA.TypeCodePackage

java.beans org.omg.CORBA.portable

java.beans.beancontext org.omg.CosNamin

java.io org.omg.CosNaming.NamingContextPackage

java.lang javax.servlet

java.lang.ref javax.servlet.http

Package java.applet

The java.applet package is one of the smallest packages in the Core API. It consists of one class and three interfaces that provide the basic functionality needed to implement applets.

Interfaces

AppletContext

The AppletContext interface defines methods that allow an applet to access the context in which it is being run.

AppletStub

The AppletStub interface supports communication between an applet and its browser environment and is used to develop custom applet viewers.

AudioClip

The AudioClip interface provides methods that support the playing of audio clips.

Classes

Applet

The Applet class is the superclass of all applets. It provides methods to display images, play audio files, respond to events, and obtain information about an applet's execution environment. The Applet class is a subclass of java.awt.panel.

Exceptions and Errors

None.

Package java.awt

The java.awt package implements the core classes and interfaces of the Abstract Windowing Toolkit (AWT). It is a large package, containing 63 classes and 14 interfaces. These classes and interfaces provide the standard AWT GUI controls, as well as drawing, printing, and other capabilities. The java.awt package is covered in Chapter 5, "JDK 1.2 Applet Writing Basics."

Interfaces

ActiveEvent

The ActiveEvent interface defines methods that are implemented by event classes that are self-dispatching.

Adjustable

The Adjustable interface is implemented by classes, such as sliders and scrollbars, that allow a value to be selected from a range of values.

Composite

The Composite interface defines methods that are implemented by classes that allow drawing to be composed with an underlying graphics area.

CompositeContext

The CompositeContext interface defines methods for classes that provide a context for compositing drawing operations.

ItemSelectable

The ItemSelectable interface is implemented by classes whose objects, such as choices or lists, may contain selectable items.

LayoutManager

The LayoutManager interface is implemented by classes that can lay out Container objects.

LayoutManager2

The LayoutManager2 interface extends the LayoutManager interface to provide support for layout constraints.

MenuContainer

The MenuContainer interface defines methods for classes that may contain Menu objects.

Paint

The Paint interface extends the Transparency interface, providing support for defining color patterns for use in graphics operations.

PaintContext

The PaintContext interface provides methods that define the context for paint operations.

PrintGraphics

The PrintGraphics interface defines a graphics context for printing a single page.

Shape

The Shape interface defines methods that are implemented by classes that encapsulate geometric shapes.

Stroke

The Stroke interface provides methods that are implemented by classes that define pen strokes.

Transparency

The Transparency interface defines methods for classes that support transparency- related graphics operations.

Classes

AWTEvent

The AWTEvent class is a subclass of java.util.EventObject that serves as the base class for all AWT-related events.

AWTEventMulticaster

The AWTEventMulticaster class is a subclass of Object that provides thread-safe multicast event dispatching capabilities. It implements the following interfaces of the java.awt.event package: ActionListener, AdjustmentListener, ComponentListener, ContainerListener, FocusListener, InputMethodListener, ItemListener, KeyListener, MouseListener, MouseMotionListener, TextListener, and WindowListener.

AWTPermission

The AWTPermission class is a subclass of java.security.BasicPermission that implements security permissions for a variety of AWT-related operations.

AlphaComposite

The AlphaComposite class is a subclass of Object that implements alpha compositing rules for combining source and destination image pixels. It implements the Composite interface.

BasicStroke

The BasicStroke class is a subclass of Object that provides a set of properties for a basic implementation of the Stroke interface.

BorderLayout

The BorderLayout class is a subclass of Object that is used to lay out the components of a container along the container's border. It implements the LayoutManager2 and java.lang.Serializable interfaces.

Button

The Button class is a subclass of Component that encapsulates a GUI text-labeled pushbutton.

Canvas

The Canvas class is a subclass of Component that provides a rectangular drawing area.

CardLayout

The CardLayout class is a subclass of Object that provides the capability to lay out a Container object in a card-like fashion. It implements the LayoutManager2 and java.io.Serializable interfaces.

Checkbox

The Checkbox class is a subclass of Container that provides the capability to display and work with checkbox and radio button GUI controls. It implements the ItemSelectable interface.

CheckboxGroup

The CheckboxGroup class is a subclass of Object that is used to group Checkbox objects together as a set of radio buttons. It implements the java.io.Serializable interface.

CheckboxMenuItem

The CheckboxMenuItem class is a subclass of MenuItem that is used to create a menu item that may be in an on or off state. It implements the ItemSelectable interface.

Choice

The Choice class is a subclass of Component that provides a pop-up menu of choices. It implements the ItemSelectable interface.

Color

The Color class is a subclass of Object that is used to define colors within a particular color space. It implements the Paint and java.io.Serializable interfaces.

Component

The Component class is a subclass of Object that provides the base class for the development of GUI components. It implements the MenuContainer, java.awt.imaga.ImageObserver, and java.io.Serializable interfaces.

ComponentOrientation

The ComponentOrientation class is a subclass of Object that encapsulates the language-specific orientation of a Component. It implements the java.io.Serializable interface.

Container

The Container class is a subclass of Component that acts as a container for other GUI components.

Cursor

The Cursor class is a subclass of Object that encapsulates a changeable cursor associated with a pointing device. It implements the java.io.Serializable interface.

Dialog

The Dialog class is a subclass of Window that provides a base class for the development of dialog boxes.

Dimension

The Dimension class is a subclass of java.awt.geom.Dimension2D that provides the capability to specify the height and width of an object. It implements the java.io.Serializable interface.

Event

The Event class is a subclass of Object that provides the base class for implementing events in the JDK 1.0 event model. It implements the java.io.Serializable interface.

EventQueue

The EventQueue class is a subclass of Object that implements the system event queue.

FileDialog

The FileDialog class is a subclass of Dialog that encapsulates a file system dialog box.

FlowLayout

The FlowLayout class is a subclass of Object that is used to lay out Container objects in a left-to-right and top-to-bottom fashion. It implements the LayoutManager and java.io.Serializable interfaces.

Font

The Font class is a subclass of Object that encapsulates text fonts. It implements the java.io.Serializable interface.

FontMetrics

The FontMetrics class is a subclass of Object that provides information about the properties of a font. It implements the java.io.Serializable interface.

Frame

The Frame class is a subclass of Window that provides a top-level application window. It implements the MenuContainer interface.

GradientPaint

The GradientPaint class is a subclass of Object that provides the capability to fill a drawing area with a linear gradient color fill. It implements the Paint interface.

Graphics

The Graphics class is a subclass of Object that is the base class for the development of graphics drawing contexts.

Graphics2D

The Graphics2D class is a subclass of Graphics that serves as the basic graphics context for the Java 2D API.

GraphicsConfigTemplate

The GraphicsConfigTemplate class is a subclass of Object that is used as a template for the creation of GraphicsConfiguration objects. It implements the java.io.Serializable interface.

GraphicsConfiguration

The GraphicsConfiguration class is a subclass of Object that specifies the physical characteristics of a graphics display device.

GraphicsDevice

The GraphicsDevice class is a subclass of Object that describes the graphics display devices available to the system.

GraphicsEnvironment

The GraphicsEnvironment class is a subclass of Object that describes the entire graphics environment available to the system, including all of the accessible GraphicsDevice objects.

GridBagConstraints

The GridBagConstraints class is a subclass of Object that is used to specify how containers are to be laid out using GridBagLayout objects. It implements the java.lang.Cloneable and java.io.Serializable interfaces.

GridBagLayout

The GridBagLayout class is a subclass of Object that is used to lay out a container according to the properties of a GridBagConstraints object. It implements the LayoutManager2 and java.io.Serializable interfaces.

GridLayout

The GridLayout class is a subclass of Object that is used to lay out a container in a grid-like fashion. It implements the LayoutManager and java.io.Serializable interfaces.

Image

The Image class is a subclass of Object that encapsulates a displayable image.

Insets

The Insets class is a subclass of Object that specifies the border of a GUI component. It implements the java.lang.Cloneable and java.io.Serializable interfaces.

Label

The Label class is a subclass of Component that implements a GUI text label.

List

The List class is a subclass of Component that encapsulates a scrollable list GUI control. It implements the ItemSelectable interface.

MediaTracker

The MediaTracker class is a subclass of Object that is used to track the loading status of multimedia objects. It implements the java.io.Serializable interface.

Menu

The Menu class is a subclass of MenuItem that encapsulates a pull-down menu. It implements the MenuContainer interface.

MenuBar

The MenuBar class is a subclass of MenuComponent that provides the capability to attach a menu bar to a Frame object. It implements the MenuContainer interface.

MenuComponent

The MenuComponent class is a subclass of Object that is the base class for all other AWT menu-related classes. It implements the java.io.Serializable interface.

MenuItem

The MenuItem class is a subclass of MenuComponent that implements a menu item value that is selectable from a Menu object.

MenuShortcut

The MenuShortcut class is a subclass of Object that provides the capability to associate a keyboard accelerator with a MenuItem object. It implements the java.io.Serializable interface.

Panel

The Panel class is a subclass of Container that provides a rectangular container for other GUI components.

Point

The Point class is a subclass of java.awt.geom.Point2D that encapsulates a point in the xy-plane. It implements the java.io.Serializable interface.

Polygon

The Polygon class is a subclass of Object that is used to describe a mathematical polygon. It implements the Shape and java.io.Serializable interfaces.

PopupMenu

The PopupMenu class is a subclass of Menu that provides a menu that can be popped up at a specific location within a component.

PrintJob

The PrintJob class is a subclass of Object that is used to implement a system-specific printing request.

Rectangle

The Rectangle class is a subclass of java.awt.geom.Rectangle2D that encapsulates a mathematical rectangle. It implements the Shape and java.io.Serializable interfaces.

RenderingHints

The RenderingHints class is a subclass of Object that provides hints for rendering on a Graphics2D object. It implements the java.lang.Cloneable interface.

ScrollPane

The ScrollPane class is a subclass of Container that provides a combination of a panel and vertical and horizontal scrollbars.

Scrollbar

The Scrollbar class is a subclass of Component that provides a GUI scrollbar component. It implements the Adjustable interface.

SystemColor

The SystemColor class is a subclass of Color that is used to specify the color scheme used with GUI components. It implements the java.io.Serializable interface.

TextArea

The TextArea class is a subclass of TextComponent that provides a GUI text area control.

TextComponent

The TextComponent class is a subclass of Component that is the base class for TextField and TextArea.

TextField

The TextField class is a subclass of TextComponent that implements a GUI text input field.

TexturePaint

The TexturePaint class is a subclass of Object that provides the capability to fill a geometrical shape with a texture image. It implements the Paint interface.

Toolkit

The Toolkit class is a subclass of Object that provides access to implementation- specific AWT resources.

Window

The Window class is a subclass of Container that provides a basic window object.

Exceptions and Errors

AWTError

The AWTError class is a subclass of java.lang.Error that is thrown when a fundamental error occurs in the AWT operation.

AWTException

The AWTException class is a subclass of java.lang.Exception that signals the occurrence of an AWT-specific exception.

IllegalComponentStateException

The IllegalComponentStateException class is a subclass of java.lang.IllegalStateException that identifies that an AWT component is in the wrong state for a particular operation.

Package com.sun.java.accessibility

The com.sun.java.accessibility package provides seven classes and seven interfaces that support the use of assistive technologies for disabled users. It is covered in Chapter 9, "Creating Window Applications."

Interfaces

Accessible

The Accessible interface is implemented by all components that support accessibility. It defines the single getAccessibleContext() method to return an object that implements the AccessibleContext interface.

AccessibleAction

The AccessibleAction interface defines methods that can be used to determine which actions are supported by a component. It also provides methods for accessing these actions.

AccessibleComponent

The AccessibleComponent interface defines methods for controlling the behavior and display of GUI components that support assistive technologies.

AccessibleHypertext

The AccessibleHypertext interface extends AccessibleText and provides accessibility support for hypertext display.

AccessibleSelection

The AccessibleSelection interface provides support for determining which subcomponents of a GUI component have been selected and for controlling the selection status of those components.

AccessibleText

The AccessibleText interface provides constants and methods for use with GUI components that display text. It allows assistive technologies to control the content, attributes, and layout of displayed text.

AccessibleValue

The AccessibleValue interface is implemented by GUI components that support the selection of a numerical value from a range of values, such as a scrollbar. This interface provides methods for getting and setting the numerical value and for determining the range of values.

Classes

AccessibleBundle

The AccessibleBundle class is a subclass of Object that provides access to resource bundles and supports string conversions.

AccessibleContext

The AccessibleContext class is a core accessibility API class and provides access to other assistive technology objects. It defines the information that is used by all accessible objects and is subclassed by objects that implement assistive technologies. It is a subclass of Object.

AccessibleHyperlink

The AccessibleHyperlink class is a subclass of Object that provides accessibility support for hyperlinks. It implements the AccessibleAction interface.

AccessibleResourceBundle

The AccessibleResourceBundle class is a subclass of java.util.ListResourceBundle that implements a resource bundle for assistive technology applications. It provides localized accessibility properties for a particular locale.

AccessibleRole

The AccessibleRole class is a subclass of AccessibleBundle that provides constants that describe the role of an accessibility GUI component, such as LIST, MENU, and CHECK_BOX.

AccessibleState

The AccessibleState class is a subclass of AccessibleBundle that describes the state of an accessibility object. AccessibleState objects are contained in AccessibleStateSet objects. The AccessibleState class provides constants that define common object states, such as BUSY, CHECKED, and ENABLED.

AccessibleStateSet

The AccessibleStateSet class is a subclass of Object that implements a collection of AccessibleState objects. AccessibleStateSet objects are used to define the overall state of an accessibility object.

Exceptions and Errors

None.

Package java.awt.color

The java.awt.color package is part of the Java 2D API. It provides five classes that support the capability to work with different color models. The java.awt.color package is covered in Chapter 20, "Working with 2D and 3D Graphics."

Interfaces

None.

Classes

ColorSpace

The ColorSpace class is an abstract subclass of Object that specifies the color space used with other objects. It provides constants that define popular color spaces and methods for converting colors between color spaces.

ICC_ColorSpace

The ICC_ColorSpace class is a subclass of ColorSpace that provides a non-abstract implementation of the ColorSpace methods. It represents color spaces in accordance with the ICC Profile Format Specification, Version 3.4, August 15, 1997, from the International Color Consortium. For more information, refer to http://www.color.org.

ICC_Profile

The ICC_Profile class is a subclass of Object that provides a representation of color profile data for color spaces based on the ICC Profile Format Specification. Color profiles represent transformations from the color space of a device, such as a monitor, to a profile connection space, as defined by the ICC Profile Format Specification.

ICC_ProfileGray

The ICC_ProfileGray class is a subclass of ICC_Profile that supports color conversion to monochrome color spaces.

ICC_ProfileRGB

The ICC_ProfileRGB class is a subclass of ICC_Profile that supports color conversion between RGB and CIEXYZ color spaces.

Exceptions and Errors

CMMException

The CMMException class is a subclass of java.lang.RuntimeException that defines an exception that is thrown when the color model manager returns an error.

ProfileDataException

The ProfileDataException class is a subclass of java.lang.RuntimeException that defines an exception that is thrown when an error occurs in accessing or processing an ICC_Profile object.

Package java.awt.datatransfer

The java.awt.datatransfer package provides four classes and three interfaces that support clipboard operations. It is covered in Chapter 15, "Using the Clipboard."

Interfaces

ClipboardOwner

The ClipboardOwner interface defines the lostOwnership() method, which is invoked to notify an object that it has lost ownership of a clipboard. This interface is implemented by classes that copy data to a clipboard.

FlavorMap

The FlavorMap interface maps native types to MIME types.

Transferable

The Transferable interface defines methods that support the transfer of data via the clipboard or other mechanisms. It is implemented by classes that support clipboard- related data transfers.

Classes

Clipboard

The Clipboard class is a subclass of Object that provides access to system- and user-defined clipboards. It provides methods for getting and setting the contents of a clipboard and retrieving the name of a clipboard.

DataFlavor

The DataFlavor class is a subclass of Object that defines the types of data available for a transfer operation (such as those that take place via a clipboard). Flavors are implemented as MIME types. The DataFlavor class provides methods for reading and writing objects to be transferred and for accessing MIME type information. It implements the java.io.Serializable and java.lang.Cloneable interfaces.

StringSelection

The StringSelection class is a subclass of Object that supports the transfer of String objects as plain text. It provides methods for working with string-related data flavors. It implements the Transferable and ClipboardOwner interfaces.

SystemFlavorMap

The SystemFlavorMap class is a subclass of Object that provides a default implementation of the FlavorMap interface.

Exceptions and Errors

UnsupportedFlavorException

The UnsupportedFlavorException class is a subclass of java.lang.Exception that is used to signal that transferable data is not supported in a particular flavor.

Package java.awt.dnd

The java.awt.dnd package supports the new JDK 1.2 drag-and-drop capability. It contains 15 classes and four interfaces and is covered in Chapter 16, "Working with Drag and Drop."

Interfaces

Autoscroll

The Autoscroll interface provides methods that support automatic scrolling through GUI components in support of drag-and-drop operations.

DragGestureListener

The DragGestureListener interface extends the EventListener interface to handle events associated with the initiation of a drag-and-drop operation.

DragSourceListener

The DragSourceListener interface extends the java.util.EventListener interface to define methods that are implemented by objects that originate drag-and-drop operations. These methods track the state of drag-and-drop operations and enable feedback to be provided to the user.

DropTargetListener

The DropTargetListener interface extends the java.util.EventListener interface to define methods that are implemented by objects that are the target of drag-and-drop operations.

Classes

DnDConstants

The DnDConstants class is a subclass of Object that defines constants that are used in drag-and-drop operations.

DragGestureEvent

The DragGestureEvent class extends java.util.EventObject to signal the initiation of a drag-and-drop operation.

DragGestureRecognizer

The DragGestureRecognizer class is a subclass of Object that provides support for handling the occurrence of a DragGestureEvent.

DragSource

The DragSource class is a subclass of Object that implements the source originator of a drag-and-drop operation. It defines several java.awt.Cursor objects that define the cursor state during drag-and-drop. Its startDrag() method is used to initiate drag-and-drop.

DragSourceContext

The DragSourceContext class is a subclass of Object that is used to manage the source-side of drag-and-drop operations. It manages events associated with the drag source and implements the DragSourceListener interface.

DragSourceDragEvent

The DragSourceDragEvent class is a subclass of DragSourceEvent. It implements the event that is handled by a DragSourceListener during the dragging stage of a drag-and-drop operation.

DragSourceDropEvent

The DragSourceDropEvent class is a subclass of DragSourceEvent. It implements the event that is handled by a DragSourceListener during the dropping stage of a drag-and-drop operation.

DragSourceEvent

The DragSourceEvent class is a subclass of java.util.EventObject that is used as the base class for DragSourceDragEvent and DragSourceDropEvent.

DropTarget

The DropTarget class is a subclass of Object that is used to implement the target of a drag-and-drop operation. Objects of DropTarget are associated with components that function as drop targets. These objects are typically GUI components. DropTarget implements the DropTargetListener and java.io.Serializable interfaces.

DropTargetContext

The DropTargetContext class is a subclass of Object that is used to implement the context of a drop operation. Objects of this class are dynamically created when an object is dragged over a potential drop target. This class is used by the drop target to provide feedback to the user and to initiate the data transfer associated with the drag-and-drop operation.

DropTargetDragEvent

The DropTargetDragEvent class is a subclass of DropTargetEvent that informs DropTargetListener objects of the dragging state of a drag-and-drop operation.

DropTargetDropEvent

The DropTargetDropEvent class is a subclass of DropTargetEvent that informs DropTargetListener objects of the dropping state of a drag-and-drop operation.

DropTargetEvent

The DropTargetEvent class is a subclass of java.util.EventObject that serves as the base class for DropTargetDragEvent and DropTargetDropEvent.

MouseDragGestureRecognizer

The MouseDragGestureRecognizer class extends DragGestureRecognizer to provide mouse support. It implements the MouseListener and MouseMotionListener interfaces.

Exceptions and Errors

InvalidDnDOperationException

The InvalidDnDOperationException class is a subclass of java.lang.IllegalStateException that signals that a drag-and-drop operation cannot be carried out.

Package java.awt.event

The java.awt.event package provides the foundation for JDK 1.1-style event processing. It contains 21 classes and 13 interfaces and is covered in Chapter 6, "GUI Building."

Interfaces

ActionListener

The ActionListener interface extends the java.util.EventListener interface and defines methods that are implemented by classes that handle ActionEvent events.

AdjustmentListener

The AdjustmentListener interface extends the java.util.EventListener interface and defines methods that are implemented by classes that handle AdjustmentEvent events.

ComponentListener

The ComponentListener interface extends the java.util.EventListener interface and defines methods that are implemented by classes that handle ComponentEvent events.

ContainerListener

The ContainerListener interface extends the java.util.EventListener interface and defines methods that are implemented by classes that handle ContainerEvent events.

EventQueueListener

The EventQueueListener interface extends the java.util.EventListener interface and defines methods that are implemented by classes that monitor the event queue.

FocusListener

The FocusListener interface extends the java.util.EventListener interface and defines methods that are implemented by classes that handle FocusEvent events.

InputMethodListener

The InputMethodListener interface extends the java.util.EventListener interface and defines methods that are implemented by classes that handle InputMethodEvent events.

ItemListener

The ItemListener interface extends the java.util.EventListener interface and defines methods that are implemented by classes that handle Item events.

KeyListener

The KeyListener interface extends the java.util.EventListener interface and defines methods that are implemented by classes that handle KeyEvent events.

MouseListener

The MouseListener interface extends the java.util.EventListener interface and defines methods that are implemented by classes that handle MouseEvent events.

MouseMotionListener

The MouseMotionListener interface extends the java.util.EventListener interface and defines methods that are implemented by classes that handle MouseEvent events.

TextListener

The TextListener interface extends the java.util.EventListener interface and defines methods that are implemented by classes that handle TextEvent events.

WindowListener

The WindowListener interface extends the java.util.EventListener interface and defines methods that are implemented by classes that handle WindowEvent events.

Classes

ActionEvent

The ActionEvent class is a subclass of java.awt.AWTEvent that implements an event generated by user interface actions, such as clicking on a button or selecting a menu item.

AdjustmentEvent

The AdjustmentEvent class is a subclass of java.awt.AWTEvent that implements an event generated by scrolling actions.

ComponentAdapter

The ComponentAdapter class is a subclass of Object that provides a basic implementation of the ComponentListener interface.

ComponentEvent

The ComponentEvent class is a subclass of java.awt.AWTEvent that implements an event generated by changes to the position, focus, or sizing of a window component, or by a keyboard input or other mouse action.

ContainerAdapter

The ContainerAdapter class is a subclass of Object that provides a basic implementation of the ContainerListener interface.

ContainerEvent

The ContainerEvent class is a subclass of java.awt.ComponentEvent that implements an event generated by adding and removing components from a container.

FocusAdapter

The FocusAdapter class is a subclass of Object that provides a basic implementation of the FocusListener interface.

FocusEvent

The FocusEvent class is a subclass of ComponentEvent that implements an event generated by a change in the status of a component's input focus.

InputEvent

The InputEvent class is a subclass of ComponentEvent that is the base class for defining events generated by user keyboard and mouse actions.

InputMethodEvent

The InputMethodEvent class is a subclass of java.awt.AWTEvent that implements an event generated by changes to the text being entered via an input method.

InvocationEvent

The InvocationEvent class extends AWTEvent to support multithreading operations. It implements the java.awt.ActionEvent interface.

ItemEvent

The ItemEvent class is a subclass of AWTEvent that implements an event generated by a component state change, such as selecting an item from a list.

KeyAdapter

The KeyAdapter class is a subclass of Object that provides a basic implementation of the KeyListener interface.

KeyEvent

The KeyEvent class is a subclass of InputEvent that implements an event generated by user keyboard actions.

MouseAdapter

The MouseAdapter class is a subclass of Object that provides a basic implementation of the MouseListener interface.

MouseEvent

The MouseEvent class is a subclass of InputEvent that implements an event generated by low-level mouse actions.

MouseMotionAdapter

The MouseMotionAdapter class is a subclass of Object that provides a basic implementation of the MouseMotionListener interface.

PaintEvent

The PaintEvent class is a subclass of ComponentEvent that implements an event generated by the painting/repainting of a window.

TextEvent

The TextEvent class is a subclass of java.awt.AWTEvent that implements an event generated by text-related events, such as changing the value of a text field.

WindowAdapter

The WindowAdapter class is a subclass of Object that provides a basic implementation of the WindowListener interface.

WindowEvent

The WindowEvent class is a subclass of ComponentEvent that implements an event generated by events such as the opening, closing, and minimizing of a window.

Exceptions and Errors

None.

Package java.awt.font

The java.awt.font package is new to JDK 1.2. It provides 13 classes and two interfaces that support advanced font capabilities. The java.awt.font package is covered in Chapter 20.

Interfaces

MultipleMaster

The MultipleMaster interface defines methods that are implemented by classes that support Type 1 Multiple Master fonts.

OpenType

The OpenType interface defines methods that are implemented by classes that support Open Type and True Type fonts.

Classes

FontRenderContext

The FontRenderContext class extends Object to provide support for context-based font rendering.

GlyphJustificationInfo

The GlyphJustificationInfo class is a subclass of Object that provides information about the justification of a glyph.

GlyphMetrics

The GlyphMetrics class is a subclass of Object that defines the properties of a single glyph.

GlyphVector

The GlyphVector class is a subclass of Object that represents text as a collection of glyph codes. It implements the java.lang.Cloneable interface.

GraphicAttribute

The GraphicAttribute class is a subclass of Object that is used to identify a graphic that is embedded in text.

ImageGraphicAttribute

The ImageGraphicAttribute class is a subclass of GraphicAttribute that is used to identify an image that is embedded in text.

LineBreakMeasurer

The LineBreakMeasurer class is a subclass of Object that organizes lines of text according to a wrapping width.

LineMetrics

The LineMetrics class is a subclass of Object that provides support for text layout.

ShapeGraphicAttribute

The ShapeGraphicAttribute class is a subclass of GraphicAttribute that is used to identify a Shape object that is embedded in text.

TextAttribute

The TextAttribute class is a subclass of java.text.AttributedCharacterIterator.Attribute that maintains a set of attributes about text.

TextHitInfo

The TextHitInfo class is a subclass of Object that is used to specify a position within text.

TextLayout

The TextLayout class is a subclass of Object that provides support for laying out styled text. It implements the java.lang.Cloneable interface.

TextLayout.CaretPolicy

The TextLayout.CaretPolicy class is an inner class of TextLayout that specifies how the caret should be used with a TextLayout object. It is a subclass of Object.

TextLine.TextLineMetrics

The TextLine.TextLineMetrics class is a subclass of Object that supports the layout of lines of text.

TransformAttribute

The TransformAttribute class is a subclass of Object that allows transforms to be used as text attributes. It implements the java.io.Serializable interface.

Exceptions and Errors

None.

Package java.awt.geom

The java.awt.geom package is a new JDK 1.2 package that is part of the Java 2D API. It provides 30 classes and one interface that support standard geometrical objects and transformations. The java.awt.geom package is covered in Chapter 20.

Interfaces

PathIterator

The PathIterator interface provides constants and methods for iterating over the points in a path.

Classes

AffineTransform

The AffineTransform class is a subclass of Object that provides the capability to compute two-dimensional affine transformations. It implements the java.lang.Cloneable interface.

Arc2D

The Arc2D class is a subclass of RectangularShape that defines an arc within a bounding rectangle.

Arc2D.Double

The Arc2D.Double class is an inner class of Arc2D that specifies the arc in double precision.

Arc2D.Float

The Arc2D.Float class is an inner class of Arc2D that specifies the arc in float precision.

Area

The Area class is a subclass of Object that encapsulates an arbitrary 2D area. It implements the java.awt.Shape and java.lang.Cloneable interfaces.

CubicCurve2D

The CubicCurve2D class is a subclass of Object that encapsulates a cubic curve.

CubicCurve2D.Double

The CubicCurve2D.Double class is an inner class of CubicCurve2D that specifies the curve in double precision.

CubicCurve2D.Float

The CubicCurve2D.Float class is an inner class of CubicCurve2D that specifies the curve in float precision.

Dimension2D

The Dimension2D class is a subclass of Object that encapsulates width and height dimensions. It implements the java.lang.Cloneable interface.

Ellipse2D

The Ellipse2D class is a subclass of RectangularShape that represents an ellipse.

Ellipse2D.Double

The Ellipse2D.Double class is an inner class of Ellipse2D that specifies the ellipse in double precision.

Ellipse2D.Float

The Ellipse2D.Float class is an inner class of Ellipse2D that specifies the ellipse in float precision.

FlatteningPathIterator

The FlatteningPathIterator class is a subclass of Object that is used to flatten a path. It implements the PathIterator interface.

GeneralPath

The GeneralPath class is a subclass of Object that represents a general 2D path. It implements the java.awt.Shape and java.lang.Cloneable interfaces.

Line2D

The Line2D class is a subclass of Object that encapsulates a 2D line. It implements the java.awt.Shape and java.lang.Cloneable interfaces.

Line2D.Double

The Line2D.Double class is an inner class of Line2D that specifies the line in double precision.

Line2D.Float

The Line2D.Float class is an inner class of Line2D that specifies the line in float precision.

Point2D

The Point2D class is a subclass of Object that represents a 2D point. It implements the java.lang.Cloneable interface.

Point2D.Double

The Point2D.Double class is an inner class of Point2D that specifies the point in double precision.

Point2D.Float

The Point2D.Float class is an inner class of Point2D that specifies the point in float precision.

QuadCurve2D

The QuadCurve2D class is a subclass of Object that encapsulates a 2D quadratic curve. It implements the java.awt.Shape and java.lang.Cloneable interfaces.

QuadCurve2D.Double

The QuadCurve2D.Double class is an inner class of QuadCurve2D that specifies the curve using a double value.

QuadCurve2D.Float

The QuadCurve2D.Float class is an inner class of QuadCurve2D that specifies the curve using a float value.

Rectangle2D

The Rectangle2D class is a subclass of RectangularShape that encapsulates a 2D rectangle.

Rectangle2D.Double

The Rectangle2D.Double class is an inner class of Rectangle2D that specifies the rectangle using double values.

Rectangle2D.Float

The Rectangle2D.Float class is an inner class of Rectangle2D that specifies the rectangle using float values.

RectangularShape

The RectangularShape class is a subclass of Object that is the base class for other rectangular shapes. It implements the java.awt.Shape and java.lang.Cloneable interfaces.

RoundRectangle2D

The RoundRectangle2D class is a subclass of RectangularShape that defines a rectangle with rounded corners.

RoundRectangle2D.Double

The RoundRectangle2D.Double class is an inner class of RoundRectangle2D that specifies the rectangle using double values.

RoundRectangle2D.Float

The RoundRectangle2D.Float class is an inner class of RoundRectangle2D that specifies the rectangle using float values.

Exceptions and Errors

IllegalPathStateException

The IllegalPathStateException class is a subclass of java.lang.RuntimeException that signals an attempt to perform an operation on a path when it is in the incorrect state for that operation.

NoninvertibleTransformException

The NoninvertibleTransformException class is a subclass of java.lang.Exception indicating that an operation requiring an invertible transform was performed using a noninvertible transform.

Package java.awt.im

The java.awt.im package is a new package that supports the Input Method API. It contains two classes and one interface. The Input Method API is covered in Chapter 19, "Internationalization."

Interfaces

InputMethodRequests

The InputMethodRequests interface defines methods that must be implemented by an input handling class in order to function within the Input Method API. These methods are used to obtain information about the text being entered by the user.

Classes

InputContext

The InputContext class is a subclass of Object that is used to implement the connection between text editing components and input methods. It does this by generating events that are handled by the text editing components and input methods.

InputMethodHighlight

The InputMethodHighlight class is a subclass of Object that supports the highlighting and conversion of text that is input via an input method.

Exceptions and Errors

None.

Package java.awt.image

The java.awt.image package is a Java 2D API package that supports image processing. It provides 38 classes and 8 interfaces that support common image filters. The java.awt.image package is covered in Chapter 20.

Interfaces

BufferedImageOp

The BufferedImageOp interface defines methods for classes that perform operations on BufferedImage objects.

ImageConsumer

The ImageConsumer interface defines methods for classes that receive image data from ImageProducer objects.

ImageObserver

The ImageObserver interface defines methods for classes that observe the loading/construction of Image objects.

ImageProducer

The ImageProducer interface defines methods for classes that produce image data for use by ImageConsumer objects.

RasterOp

The RasterOp interface is implemented by classes that support operations on Raster objects.

RenderedImage

The RenderedImage interface is implemented by classes that produce image data in the form of Raster objects.

TileObserver

The TileObserver interface defines methods for handling events generated by changes to tiles of an image.

WritableRenderedImage

The WritableRenderedImage interface defines methods for classes that implement images that can be overwritten.

Classes

AffineTransformOp

The AffineTransformOp class is a subclass of Object that performs a 2D affine transform between two images. It implements the BufferedImageOp and RasterOp interfaces.

AreaAveragingScaleFilter

The AreaAveragingScaleFilter class is a subclass of ReplicateScaleFilter that supports image resizing using an area-averaging algorithm.

BandCombineOp

The BandCombineOp class is a subclass of Object that performs operations that combine bands in a Raster object. It implements the RasterOp interface.

BandedSampleModel

The BandedSampleModel class is a subclass of SampleModel that provides advanced band control.

BufferedImage

The BufferedImage class is a subclass of Image that provides access to buffered image data. It implements the WritableRenderedImage interface.

BufferedImageFilter

The BufferedImageFilter class is a subclass of ImageFilter that supports BufferedImage objects. It implements the RasterImageConsumer and java.lang.Cloneable interfaces.

ByteLookupTable

The ByteLookupTable class is a subclass of LookupTable that supports byte data.

ColorConvertOp

The ColorConvertOp class is a subclass of Object that supports pixel-by-pixel color conversions. It implements the BufferedImageOp and RasterOp interfaces.

ColorModel

The ColorModel class is a subclass of Object that provides the base class for the development of a variety of color models. It implements the Transparency interface.

ComponentColorModel

The ComponentColorModel class is a subclass of ColorModel that provides support for a variety of color spaces.

ComponentSampleModel

The ComponentSampleModel class is a subclass of SampleModel that supports the separate storage of color component data.

ConvolveOp

The ConvolveOp class is a subclass of Object that supports convolution operations on image data. It implements the BufferedImageOp and RasterOp interfaces.

CropImageFilter

The CropImageFilter class is a subclass of ImageFilter that supports image cropping.

DataBuffer

The DataBuffer class is a subclass of Object that supports the buffering of image data.

DataBufferByte

The DataBufferByte class is a subclass of DataBuffer that supports byte-oriented image buffering.

DataBufferInt

The DataBufferInt class is a subclass of DataBuffer that supports int-oriented image buffering.

DataBufferShort

The DataBufferShort class is a subclass of DataBuffer that supports short-oriented image buffering.

DataBufferUShort

The DataBufferUShort class is a subclass of DataBuffer that supports unsigned short image buffering.

DirectColorModel

The DirectColorModel class is a subclass of PackedColorModel that supports direct RGB pixel colors.

FilteredImageSource

The FilteredImageSource class is a subclass of Object that combines an ImageProducer with an ImageFilter. It implements the ImageProducer interface.

ImageFilter

The ImageFilter class is a subclass of Object that supports general image filtering operations. It implements the ImageConsumer and java.lang.Cloneable interfaces.

IndexColorModel

The IndexColorModel class is a subclass of ColorModel that represents pixels as indices into a color map.

Kernel

The Kernel class is a subclass of Object that defines matrices for filtering operations.

LookupOp

The LookupOp class is a subclass of Object that supports image lookup operations. It implements the BufferedImageOp and RasterOp interfaces.

LookupTable

The LookupTable class is a subclass of Object that defines a lookup table for use in imaging operations.

MemoryImageSource

The MemoryImageSource class is a subclass of Object that provides image data from a memory source. It implements the ImageProducer interface.

MultiPixelPackedSampleModel

The MultiPixelPackedSampleModel class is a subclass of SampleModel that supports the processing of multiple one-sample pixels.

PackedColorModel

The PackedColorModel class is a