Save This Page
Home » openjdk-7 » sun » font » [javadoc | source]
sun.font
public class: Decoration [javadoc | source]
java.lang.Object
   sun.font.Decoration

Direct Known Subclasses:
    DecorationImpl

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.
Nested Class Summary:
public interface  Decoration.Label  This interface is implemented by clients that use Decoration. Unfortunately, interface methods have to public; ideally these would be package-private. 
Method from sun.font.Decoration Summary:
drawTextAndDecorations,   getCharVisualBounds,   getDecoration,   getDecoration,   getOutline,   getPlainDecoration,   getVisualBounds
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from sun.font.Decoration Detail:
 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.
 Shape getOutline(Decoration.Label label,
    float x,
    float y) 
 public static Decoration getPlainDecoration() 
    Return a Decoration which does nothing.
 public Rectangle2D getVisualBounds(Decoration.Label label)