站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JDK 5 Documentation v1.4.1, Java 2 SDK 英文文档

Java 2D API: 4 - - JDK 5 Documentation v1.4.1, Java 2 SDK 英文文档

CONTENTS | PREV | NEXT Java 2D API


4.1 Interfaces and Classes

The following tables list the key font and text layout interfaces and classes. Most of these interfaces and classes are part of the java.awt.font package. Some, like Font, are part of the java.awt package to maintain backward compatibility with earlier versions of the JDK.




Interface

Description

MultipleMaster

Represents Type 1 Multiple Master fonts. Implemented by Font objects that are multiple master fonts to enable access to multiple master design controls.

OpenType

Represents Open Type and True Type fonts. Implemented by Font objects that are Open Type or True Type fonts to enable access to the font's sfnt tables.




Class

Description

Font

(java.awt)

Represents an instance of a font face from the collection of font faces available on the host system. Supports the specification of detailed font information and provides access to information about the font and its glyphs.

FontRenderContext

Encapsulates the information necessary to correctly measure text.

GlyphJustificationInfo

Represents information about the justification properties of a glyph, such as weight, priority, absorb, and limit.

GlyphMetrics

Provides metrics for a single glyph.

GlyphVector

A collection of glyphs and their positions.

GraphicAttribute

Base class for a TextLayout attribute that specifies a graphic to be embedded within text. Implemented by ShapeGraphicAttribute and ImageGraphicAttribute, which enable Shapes and Images to be embedded in a TextLayout. Can be subclassed to implement custom character replacement graphics.

ImageGraphicAttribute

Extends: GraphicAttribute

A GraphicsAttribute used to draw Images within a TextLayout.

LineBreakMeasurer

Breaks a block of text that spans multiple lines into TextLayout objects that fit within a specified line length.

LineMetrics

Provides access to the font metrics needed to lay out characters along a line and to lay out a set of lines. These metrics include ascent, descent, leading, height, and baseline information.

ShapeGraphicAttribute

Extends: GraphicAttribute

A GraphicsAttribute used to draw Shapes within a TextLayout.

TextAttribute

Defines attribute keys and values used for text rendering.

TextHitInfo

Represents hit test information for characters in a TextLayout.

TextLayout

Implements: Cloneable

Provides an immutable graphical representation of styled character data, including bidirectional text.



CONTENTS | PREV | NEXT
Copyright © 1997-2001 Sun Microsystems, Inc. All Rights Reserved.