public class

Decoration

extends Object
java.lang.Object
   ↳ sun.font.Decoration

Class Overview

This class handles underlining, strikethrough, and foreground and background styles on text. Clients simply acquire instances of this class and hand them off to ExtendedTextLabels or GraphicComponents.

Summary

Nested Classes
interface Decoration.Label This interface is implemented by clients that use Decoration. 
Public Methods
void drawTextAndDecorations(Decoration.Label label, Graphics2D g2d, float x, float y)
Rectangle2D getCharVisualBounds(Decoration.Label label, int index)
static Decoration getDecoration(AttributeValues values)
static Decoration getDecoration(Map attributes)
Return a Decoration appropriate for the the given Map.
static Decoration getPlainDecoration()
Return a Decoration which does nothing.
Rectangle2D getVisualBounds(Decoration.Label label)
[Expand]
Inherited Methods
From class java.lang.Object

Public Methods

public void drawTextAndDecorations (Decoration.Label label, Graphics2D g2d, float x, float y)

public Rectangle2D getCharVisualBounds (Decoration.Label label, int index)

public static Decoration getDecoration (AttributeValues values)

public static Decoration getDecoration (Map attributes)

Return a Decoration appropriate for the the given Map.

Parameters
attributes the Map used to determine the Decoration

public static Decoration getPlainDecoration ()

Return a Decoration which does nothing.

public Rectangle2D getVisualBounds (Decoration.Label label)