API Overview API Index Package Overview Direct link to this page
JDK 1.6
  java.awt.font. FontRenderContext View Source
Author(s)
Since
Version
Serial
Hierarchy
 Object
      FontRenderContext
Implements
Subclasses
Description
public class FontRenderContext
  The FontRenderContext class is a container for the information needed to correctly measure text.
Constructors
protected FontRenderContext ()
Constructs a new FontRenderContext object.
public FontRenderContext (AffineTransform tx, boolean isAntiAliased, boolean usesFractionalMetrics)
  Constructs a FontRenderContext object from an optional AffineTransform and two boolean values that determine if the newly constructed object has anti-aliasing or fractional metrics.
public FontRenderContext (AffineTransform tx, Object aaHint, Object fmHint)
  Constructs a FontRenderContext object from an optional AffineTransform and two Object values that determine if the newly constructed object has anti-aliasing or fractional metrics.
Methods
Hide/Show inherited methods
public boolean equals (FontRenderContext rhs)
  Return true if rhs has the same transform, antialiasing, and fractional metrics values as this.
public boolean equals (Object obj)
  Return true if obj is an instance of FontRenderContext and has the same transform, antialiasing, and fractional metrics values as this.
public Object getAntiAliasingHint ()
  Return the text anti-aliasing rendering mode hint used in this FontRenderContext.
public Object getFractionalMetricsHint ()
  Return the text fractional metrics rendering mode hint used in this FontRenderContext.
public AffineTransform getTransform ()
  Gets the transform that is used to scale typographical points to pixels in this FontRenderContext.
public int getTransformType ()
  Returns the integer type of the affine transform for this FontRenderContext as specified by AffineTransform.getType()
public int hashCode ()
Return a hashcode for this FontRenderContext.
public boolean isAntiAliased ()
  Returns a boolean which indicates whether or not some form of antialiasing is specified by this FontRenderContext.
public boolean isTransformed ()
  Indicates whether or not this FontRenderContext object measures text in a transformed render context.
public boolean usesFractionalMetrics ()
  Returns a boolean which whether text fractional metrics mode is used in this FontRenderContext.
Fields
Hide/Show inherited fields
Nested Classes
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar