home *** CD-ROM | disk | FTP | other *** search
/ PC Plus SuperCD (UK) 2000 March / pcp161a.iso / handson / files / copyjava.exe / com / sun / java / swing / text / StyleConstants$CharacterConstants.class (.txt) < prev    next >
Encoding:
Java Class File  |  1998-02-26  |  1.3 KB  |  35 lines

  1. package com.sun.java.swing.text;
  2.  
  3. import com.sun.java.swing.text.StyleConstants.ColorConstants;
  4. import com.sun.java.swing.text.StyleConstants.FontConstants;
  5.  
  6. public class StyleConstants$CharacterConstants implements AttributeSet.CharacterAttribute {
  7.    public static final Object Underline = new StyleConstants$CharacterConstants("underline");
  8.    public static final Object ComponentAttribute = new StyleConstants$CharacterConstants("component");
  9.    public static final Object IconAttribute = new StyleConstants$CharacterConstants("icon");
  10.    public static final Object Family;
  11.    public static final Object Size;
  12.    public static final Object Bold;
  13.    public static final Object Italic;
  14.    public static final Object Foreground;
  15.    public static final Object Background;
  16.    private String representation;
  17.  
  18.    public String toString() {
  19.       return this.representation;
  20.    }
  21.  
  22.    private StyleConstants$CharacterConstants(String var1) {
  23.       this.representation = var1;
  24.    }
  25.  
  26.    static {
  27.       Family = FontConstants.Family;
  28.       Size = FontConstants.Size;
  29.       Bold = FontConstants.Bold;
  30.       Italic = FontConstants.Italic;
  31.       Foreground = ColorConstants.Foreground;
  32.       Background = ColorConstants.Background;
  33.    }
  34. }
  35.