|
|||||||||
| Home >> All >> java >> [ awt overview ] | PREV NEXT | ||||||||
Uses of Class
java.awt.Font
| Uses of Font in java.awt |
| Fields in java.awt declared as Font | |
(package private) Font |
Component.font
The default font used in the component. |
(package private) Font |
Component.peerFont
The font in use by the peer, or null if there is no peer. |
protected Font |
FontMetrics.font
This is the font for which metrics will be returned. |
private Font |
MenuComponent.font
The font for this component. |
| Methods in java.awt that return Font | |
Font |
MenuContainer.getFont()
Returns the font in use by this container. |
Font |
Component.getFont()
Returns the font in use for this component. |
Font |
Component.AccessibleAWTComponent.getFont()
Gets the font. |
abstract Font[] |
GraphicsEnvironment.getAllFonts()
Returns an array of the one-point size fonts available in this environment. |
Font |
FontMetrics.getFont()
Returns the font that this object is creating metric information fo. |
static Font |
Font.decode(java.lang.String fontspec)
Creates a Font object from the specified string, which
is in one of the following formats:
|
(package private) static Font |
Font.getFontFromToolkit(java.lang.String name,
java.util.Map attribs)
|
static Font |
Font.getFont(java.lang.String propname,
Font defval)
Returns a Font object from the passed property name. |
static Font |
Font.getFont(java.lang.String propname)
Returns a Font object from the passed property name. |
static Font |
Font.createFont(int fontFormat,
java.io.InputStream is)
Creates a new font with point size 1 and PLAIN 55 style,
reading font data from the provided input stream. |
Font |
Font.deriveFont(int style,
float size)
Produces a new Font based on the current font, adjusted to a new size and style. |
Font |
Font.deriveFont(float size)
Produces a new Font based on the current font, adjusted to a new size. |
Font |
Font.deriveFont(int style)
Produces a new Font based on the current font, adjusted to a new style. |
Font |
Font.deriveFont(int style,
java.awt.geom.AffineTransform a)
Produces a new Font based on the current font, adjusted to a new style and subjected to a new affine transformation. |
Font |
Font.deriveFont(java.awt.geom.AffineTransform a)
Produces a new Font based on the current font, subjected to a new affine transformation. |
Font |
Font.deriveFont(java.util.Map attributes)
Produces a new Font based on the current font, adjusted to a new set of attributes. |
static Font |
Font.getFont(java.util.Map attributes)
Returns a font appropriate for the given attribute set. |
Font |
MenuComponent.getFont()
Returns the font in use for this component. |
Font |
MenuComponent.AccessibleAWTMenuComponent.getFont()
Returns the Font used for text created by this component. |
abstract Font |
Graphics.getFont()
Returns the current font for this graphics context. |
| Methods in java.awt with parameters of type Font | |
void |
Component.setFont(Font newFont)
Sets the font for this component to the specified font. |
FontMetrics |
Component.getFontMetrics(Font font)
Returns the font metrics for the specified font in this component. |
void |
Component.AccessibleAWTComponent.setFont(Font f)
Sets the font. |
FontMetrics |
Component.AccessibleAWTComponent.getFontMetrics(Font f)
Gets the font metrics for a font. |
void |
Container.setFont(Font f)
|
abstract FontMetrics |
Toolkit.getFontMetrics(Font name)
Deprecated. |
static Font |
Font.getFont(java.lang.String propname,
Font defval)
Returns a Font object from the passed property name. |
void |
MenuComponent.setFont(Font font)
Sets the font for this component to the specified font. |
FontMetrics |
MenuComponent.AccessibleAWTMenuComponent.getFontMetrics(Font font)
Retrieves information on the rendering and metrics of the supplied font. |
void |
MenuComponent.AccessibleAWTMenuComponent.setFont(Font font)
Sets the Font used for text created by this component. |
abstract void |
Graphics.setFont(Font font)
Sets the font for this graphics context to the specified value. |
abstract FontMetrics |
Graphics.getFontMetrics(Font font)
Returns the font metrics for the specified font. |
| Constructors in java.awt with parameters of type Font | |
FontMetrics(Font font)
Initializes a new instance of FontMetrics for the
specified font. |
|
|
|||||||||
| Home >> All >> java >> [ awt overview ] | PREV NEXT | ||||||||