API Overview API Index Package Overview Direct link to this page
JDK 1.6
  javax.swing.plaf. FontUIResource View Source
Author(s)
Hans Muller
Since
Version
1.16 11/17/05
Serial
Hierarchy
 Object
      Font
          FontUIResource
Implements
 UIResource
Subclasses
Description
public class FontUIResource
  A subclass of java.awt.Font that implements UIResource.
See also:    UIResource
Constructors
public FontUIResource (Font font)
public FontUIResource (String name, int style, int size)
Methods
Hide/Show inherited methods
public boolean canDisplay (char c) [Inherited From Font]
  Checks if this Font has a glyph for the specified character.
public boolean canDisplay (int codePoint) [Inherited From Font]
  Checks if this Font has a glyph for the specified character.
public int canDisplayUpTo (char[] text, int start, int limit) [Inherited From Font]
  Indicates whether or not this Font can display the characters in the specified text starting at start and ending at limit.
public int canDisplayUpTo (CharacterIterator iter, int start, int limit) [Inherited From Font]
  Indicates whether or not this Font can display the text specified by the iter starting at start and ending at limit.
public int canDisplayUpTo (String str) [Inherited From Font]
  Indicates whether or not this Font can display a specified String.
publicstatic Font createFont (int fontFormat, File fontFile) throws FontFormatException IOException [Inherited From Font]
  Returns a new Font using the specified font type and the specified font file.
publicstatic Font createFont (int fontFormat, InputStream fontStream) throws FontFormatException IOException [Inherited From Font]
  Returns a new Font using the specified font type and input data.
public GlyphVector createGlyphVector (FontRenderContext frc, char[] chars) [Inherited From Font]
  Creates a GlyphVector by mapping characters to glyphs one-to-one based on the Unicode cmap in this Font.
public GlyphVector createGlyphVector (FontRenderContext frc, CharacterIterator ci) [Inherited From Font]
  Creates a GlyphVector by mapping the specified characters to glyphs one-to-one based on the Unicode cmap in this Font.
public GlyphVector createGlyphVector (FontRenderContext frc, int[] glyphCodes) [Inherited From Font]
  Creates a GlyphVector by mapping characters to glyphs one-to-one based on the Unicode cmap in this Font.
public GlyphVector createGlyphVector (FontRenderContext frc, String str) [Inherited From Font]
  Creates a GlyphVector by mapping characters to glyphs one-to-one based on the Unicode cmap in this Font.
publicstatic Font decode (String str) [Inherited From Font]
  Returns the Font that the str argument describes.
public Font deriveFont (AffineTransform trans) [Inherited From Font]
  Creates a new Font object by replicating the current Font object and applying a new transform to it.
public Font deriveFont (float size) [Inherited From Font]
  Creates a new Font object by replicating the current Font object and applying a new size to it.
public Font deriveFont (int style) [Inherited From Font]
  Creates a new Font object by replicating the current Font object and applying a new style to it.
public Font deriveFont (int style, AffineTransform trans) [Inherited From Font]
  Creates a new Font object by replicating this Font object and applying a new style and transform.
public Font deriveFont (int style, float size) [Inherited From Font]
  Creates a new Font object by replicating this Font object and applying a new style and size.
public Font deriveFont (Map<Attribute, Object> attributes) [Inherited From Font]
  Creates a new Font object by replicating the current Font object and applying a new set of font attributes to it.
public boolean equals (Object obj) [Inherited From Font]
  Compares this Font object to the specified Object.
protected void finalize () throws Throwable [Inherited From Font]
Disposes the native Font object.
public Map<TextAttribute, Object> getAttributes () [Inherited From Font]
  Returns a map of font attributes available in this Font.
public Attribute getAvailableAttributes () [Inherited From Font]
  Returns the keys of all the attributes supported by this Font.
public byte getBaselineFor (char c) [Inherited From Font]
  Returns the baseline appropriate for displaying this character.
public String getFamily () [Inherited From Font]
  Returns the family name of this Font.
public String getFamily (Locale l) [Inherited From Font]
  Returns the family name of this Font, localized for the specified locale.
publicstatic Font getFont (Map<Attribute, Object> attributes) [Inherited From Font]
  Returns a Font appropriate to the attributes.
publicstatic Font getFont (String nm) [Inherited From Font]
  Returns a Font object from the system properties list.
publicstatic Font getFont (String nm, Font font) [Inherited From Font]
  Gets the specified Font from the system properties list.
public String getFontName () [Inherited From Font]
  Returns the font face name of this Font.
public String getFontName (Locale l) [Inherited From Font]
  Returns the font face name of the Font, localized for the specified locale.
public float getItalicAngle () [Inherited From Font]
  Returns the italic angle of this Font.
public LineMetrics getLineMetrics (char[] chars, int beginIndex, int limit, FontRenderContext frc) [Inherited From Font]
  Returns a LineMetrics object created with the specified arguments.
public LineMetrics getLineMetrics (CharacterIterator ci, int beginIndex, int limit, FontRenderContext frc) [Inherited From Font]
  Returns a LineMetrics object created with the specified arguments.
public LineMetrics getLineMetrics (String str, FontRenderContext frc) [Inherited From Font]
  Returns a LineMetrics object created with the specified String and FontRenderContext.
public LineMetrics getLineMetrics (String str, int beginIndex, int limit, FontRenderContext frc) [Inherited From Font]
  Returns a LineMetrics object created with the specified arguments.
public Rectangle2D getMaxCharBounds (FontRenderContext frc) [Inherited From Font]
  Returns the bounds for the character with the maximum bounds as defined in the specified FontRenderContext.
public int getMissingGlyphCode () [Inherited From Font]
  Returns the glyphCode which is used when this Font does not have a glyph for a specified unicode code point.
public String getName () [Inherited From Font]
  Returns the logical name of this Font.
public int getNumGlyphs () [Inherited From Font]
  Returns the number of glyphs in this Font.
@Deprecated
public FontPeer getPeer () [Inherited From Font]
  Gets the peer of this Font.
public String getPSName () [Inherited From Font]
  Returns the postscript name of this Font.
public int getSize () [Inherited From Font]
  Returns the point size of this Font, rounded to an integer.
public float getSize2D () [Inherited From Font]
  Returns the point size of this Font in float value.
public Rectangle2D getStringBounds (char[] chars, int beginIndex, int limit, FontRenderContext frc) [Inherited From Font]
  Returns the logical bounds of the specified array of characters in the specified FontRenderContext.
public Rectangle2D getStringBounds (CharacterIterator ci, int beginIndex, int limit, FontRenderContext frc) [Inherited From Font]
  Returns the logical bounds of the characters indexed in the specified CharacterIterator in the specified FontRenderContext.
public Rectangle2D getStringBounds (String str, FontRenderContext frc) [Inherited From Font]
  Returns the logical bounds of the specified String in the specified FontRenderContext.
public Rectangle2D getStringBounds (String str, int beginIndex, int limit, FontRenderContext frc) [Inherited From Font]
  Returns the logical bounds of the specified String in the specified FontRenderContext.
public int getStyle () [Inherited From Font]
  Returns the style of this Font.
public AffineTransform getTransform () [Inherited From Font]
  Returns a copy of the transform associated with this Font.
public int hashCode () [Inherited From Font]
  Returns a hashcode for this Font.
public boolean hasLayoutAttributes () [Inherited From Font]
  Return true if this Font contains attributes that require extra layout processing.
public boolean hasUniformLineMetrics () [Inherited From Font]
  Checks whether or not this Font has uniform line metrics.
public boolean isBold () [Inherited From Font]
  Indicates whether or not this Font object's style is BOLD.
public boolean isItalic () [Inherited From Font]
  Indicates whether or not this Font object's style is ITALIC.
public boolean isPlain () [Inherited From Font]
  Indicates whether or not this Font object's style is PLAIN.
public boolean isTransformed () [Inherited From Font]
  Indicates whether or not this Font object has a transform that affects its size in addition to the Size attribute.
public GlyphVector layoutGlyphVector (FontRenderContext frc, char[] text, int start, int limit, int flags) [Inherited From Font]
  Returns a new GlyphVector object, performing full layout of the text if possible.
public String toString () [Inherited From Font]
  Converts this Font object to a String representation.
Fields
Hide/Show inherited fields
publicfinalstatic int BOLD = "1" [Inherited From Font]
  The bold style constant.
publicfinalstatic int CENTER_BASELINE = "1" [Inherited From Font]
The baseline used in ideographic scripts like Chinese, Japanese, and Korean when laying out text.
publicfinalstatic String DIALOG = "Dialog" [Inherited From Font]
  A String constant for the canonical family name of the logical font "Dialog".
publicfinalstatic String DIALOG_INPUT = "DialogInput" [Inherited From Font]
  A String constant for the canonical family name of the logical font "DialogInput".
publicfinalstatic int HANGING_BASELINE = "2" [Inherited From Font]
The baseline used in Devanigiri and similar scripts when laying out text.
publicfinalstatic int ITALIC = "2" [Inherited From Font]
  The italicized style constant.
publicfinalstatic int LAYOUT_LEFT_TO_RIGHT = "0" [Inherited From Font]
A flag to layoutGlyphVector indicating that text is left-to-right as determined by Bidi analysis.
publicfinalstatic int LAYOUT_NO_LIMIT_CONTEXT = "4" [Inherited From Font]
A flag to layoutGlyphVector indicating that text in the char array after the indicated limit should not be examined.
publicfinalstatic int LAYOUT_NO_START_CONTEXT = "2" [Inherited From Font]
A flag to layoutGlyphVector indicating that text in the char array before the indicated start should not be examined.
publicfinalstatic int LAYOUT_RIGHT_TO_LEFT = "1" [Inherited From Font]
A flag to layoutGlyphVector indicating that text is right-to-left as determined by Bidi analysis.
publicfinalstatic String MONOSPACED = "Monospaced" [Inherited From Font]
  A String constant for the canonical family name of the logical font "Monospaced".
protected String name [Inherited From Font]
  The logical name of this Font, as passed to the constructor.
publicfinalstatic int PLAIN = "0" [Inherited From Font]
The plain style constant.
protected float pointSize [Inherited From Font]
  The point size of this Font in float.
publicfinalstatic int ROMAN_BASELINE = "0" [Inherited From Font]
The baseline used in most Roman scripts when laying out text.
publicfinalstatic String SANS_SERIF = "SansSerif" [Inherited From Font]
  A String constant for the canonical family name of the logical font "SansSerif".
publicfinalstatic String SERIF = "Serif" [Inherited From Font]
  A String constant for the canonical family name of the logical font "Serif".
protected int size [Inherited From Font]
  The point size of this Font, rounded to integer.
protected int style [Inherited From Font]
  The style of this Font, as passed to the constructor.
publicfinalstatic int TRUETYPE_FONT = "0" [Inherited From Font]
  Identify a font resource of type TRUETYPE.
publicfinalstatic int TYPE1_FONT = "1" [Inherited From Font]
  Identify a font resource of type TYPE1.
Nested Classes
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar