Uses of Class
java.awt.Font
Packages that use Font
Package
Description
Provides a collection of interfaces and classes that compose the Java Accessibility
Utilities.
Contains all of the classes for creating user interfaces and for painting
graphics and images.
Provides classes and interface relating to fonts.
Defines a contract between user-interface components and an assistive
technology that provides access to those components.
Provides a set of "lightweight" (all-Java language) components
that, to the maximum degree possible, work the same on all platforms.
Provides classes and interface for drawing specialized borders around a Swing
component.
Provides one interface and many abstract classes that Swing uses to provide
its pluggable look-and-feel capabilities.
Provides user interface objects built according to the Basic look and feel.
Provides user interface objects built according to the cross-platform Nimbus
look and feel.
Synth is a skinnable look and feel in which all painting is delegated.
Provides classes and interfaces for dealing with
javax.swing.JTable.Provides classes and interfaces that deal with editable and noneditable text
components.
Provides the class
HTMLEditorKit and supporting classes for creating
HTML text editors.Provides classes and interfaces for dealing with
javax.swing.JTree.-
Uses of Font in com.sun.java.accessibility.util
Methods in com.sun.java.accessibility.util that return FontMethods in com.sun.java.accessibility.util with parameters of type FontModifier and TypeMethodDescriptionTranslator.getFontMetrics(Font f) Get theFontMetricsof this object.voidSet theFontof this object. -
Uses of Font in java.awt
Modifier and TypeFieldDescriptionprotected FontFontMetrics.fontThe actualFontfrom which the font metrics are created.Modifier and TypeMethodDescriptionstatic FontFont.createFont(int fontFormat, File fontFile) Returns a newFontusing the specified font type and the specified font file.static FontFont.createFont(int fontFormat, InputStream fontStream) Returns a newFontusing the specified font type and input data.static Font[]Font.createFonts(File fontFile) Returns a new array ofFontdecoded from the specified file.static Font[]Font.createFonts(InputStream fontStream) Returns a new array ofFontdecoded from the specified stream.static FontReturns theFontthat thestrargument describes.Font.deriveFont(float size) Creates a newFontobject by replicating the currentFontobject and applying a new size to it.Font.deriveFont(int style) Creates a newFontobject by replicating the currentFontobject and applying a new style to it.Font.deriveFont(int style, float size) Creates a newFontobject by replicating thisFontobject and applying a new style and size.Font.deriveFont(int style, AffineTransform trans) Creates a newFontobject by replicating thisFontobject and applying a new style and transform.Font.deriveFont(AffineTransform trans) Creates a newFontobject by replicating the currentFontobject and applying a new transform to it.Font.deriveFont(Map<? extends AttributedCharacterIterator.Attribute, ?> attributes) Creates a newFontobject by replicating the currentFontobject and applying a new set of font attributes to it.abstract Font[]GraphicsEnvironment.getAllFonts()Returns an array containing a one-point size instance of all fonts available in thisGraphicsEnvironment.Component.AccessibleAWTComponent.getFont()Gets theFontof this object.Component.getFont()Gets the font of this component.static FontReturns aFontobject from the system properties list.static FontGets the specifiedFontfrom the system properties list.static FontFont.getFont(Map<? extends AttributedCharacterIterator.Attribute, ?> attributes) Returns aFontappropriate to the attributes.FontMetrics.getFont()Gets theFontdescribed by thisFontMetricsobject.abstract FontGraphics.getFont()Gets the current font.List.AccessibleAWTList.AccessibleAWTListChild.getFont()Get the Font of this object.MenuComponent.AccessibleAWTMenuComponent.getFont()Gets theFontof this object.MenuComponent.getFont()Gets the font used for this menu component.MenuContainer.getFont()Returns the font in use by this container.Modifier and TypeMethodDescriptionstatic FontGets the specifiedFontfrom the system properties list.Component.AccessibleAWTComponent.getFontMetrics(Font f) Gets theFontMetricsof this object.Component.getFontMetrics(Font font) Gets the font metrics for the specified font.abstract FontMetricsGraphics.getFontMetrics(Font f) Gets the font metrics for the specified font.List.AccessibleAWTList.AccessibleAWTListChild.getFontMetrics(Font f) Get the FontMetrics of this object.MenuComponent.AccessibleAWTMenuComponent.getFontMetrics(Font f) Gets theFontMetricsof this object.abstract FontMetricsToolkit.getFontMetrics(Font font) Deprecated.booleanGraphicsEnvironment.registerFont(Font font) Registers a createdFontin thisGraphicsEnvironment.voidSets theFontof this object.voidSets the font of this component.voidSets the font of this container.abstract voidSets this graphics context's font to the specified font.voidSet the Font of this object.voidSets theFontof this object.voidSets the font to be used for this menu component to the specified font.ModifierConstructorDescriptionprotectedCreates a newFontfrom the specifiedfont.protectedFontMetrics(Font font) Creates a newFontMetricsobject for finding out height and width information about the specifiedFontand specific character glyphs in thatFont. -
Uses of Font in java.awt.font
Methods in java.awt.font that return FontModifier and TypeMethodDescriptionMultipleMaster.deriveMMFont(float[] axes) Creates a new instance of a multiple master font based on the design axis values contained in the specified array.MultipleMaster.deriveMMFont(float[] glyphWidths, float avgStemWidth, float typicalCapHeight, float typicalXHeight, float italicAngle) Creates a new instance of a multiple master font based on detailed metric information.abstract FontGlyphVector.getFont()Returns theFontassociated with thisGlyphVector.Constructors in java.awt.font with parameters of type Font -
Uses of Font in javax.accessibility
Methods in javax.accessibility that return FontMethods in javax.accessibility with parameters of type FontModifier and TypeMethodDescriptionAccessibleComponent.getFontMetrics(Font f) Gets theFontMetricsof this object.voidSets the font of this object. -
Uses of Font in javax.swing
Methods in javax.swing that return FontModifier and TypeMethodDescriptionDebugGraphics.getFont()Returns the Font used for text drawing operations.JList.AccessibleJList.AccessibleJListChild.getFont()JTable.AccessibleJTable.AccessibleJTableCell.getFont()Gets theFontof this object.JTree.AccessibleJTree.AccessibleJTreeNode.getFont()If the value ofkeyis aFontreturn it, otherwise returnnull.If the value ofkeyfor the givenLocaleis aFontreturn it, otherwise returnnull.static FontReturns a font from the defaults.static FontReturns a font from the defaults that is appropriate for the given locale.Methods in javax.swing with parameters of type FontModifier and TypeMethodDescriptionstatic TitledBorderBorderFactory.createTitledBorder(Border border, String title, int titleJustification, int titlePosition, Font titleFont) Adds a title to an existing border, with the specified positioning and font, and using the default text color (determined by the current look and feel).static TitledBorderBorderFactory.createTitledBorder(Border border, String title, int titleJustification, int titlePosition, Font titleFont, Color titleColor) Adds a title to an existing border, with the specified positioning, font and color.DebugGraphics.getFontMetrics(Font f) OverridesGraphics.getFontMetrics.JComponent.getFontMetrics(Font font) Gets theFontMetricsfor the specifiedFont.JList.AccessibleJList.AccessibleJListChild.getFontMetrics(Font f) JTable.AccessibleJTable.AccessibleJTableCell.getFontMetrics(Font f) Gets theFontMetricsof this object.JTree.AccessibleJTree.AccessibleJTreeNode.getFontMetrics(Font f) voidSets the Font used for text drawing operations.voidSets the font for this component.voidvoidSets the font for this component.voidSets theFontof this object.voidSets the current font.voidSets the current font.void -
Uses of Font in javax.swing.border
Fields in javax.swing.border declared as FontModifier and TypeFieldDescriptionprotected FontTitledBorder.titleFontThe font for rendering the title.Methods in javax.swing.border that return FontModifier and TypeMethodDescriptionprotected FontReturns default font of the titled border.TitledBorder.getTitleFont()Returns the title-font of the titled border.Methods in javax.swing.border with parameters of type FontModifier and TypeMethodDescriptionvoidTitledBorder.setTitleFont(Font titleFont) Sets the title-font of the titled border.Constructors in javax.swing.border with parameters of type FontModifierConstructorDescriptionTitledBorder(Border border, String title, int titleJustification, int titlePosition, Font titleFont) Creates a TitledBorder instance with the specified border, title, title-justification, title-position, and title-font.TitledBorder(Border border, String title, int titleJustification, int titlePosition, Font titleFont, Color titleColor) Creates a TitledBorder instance with the specified border, title, title-justification, title-position, title-font, and title-color. -
Uses of Font in javax.swing.plaf
Subclasses of Font in javax.swing.plafModifier and TypeClassDescriptionclassA subclass of java.awt.Font that implements UIResource.Constructors in javax.swing.plaf with parameters of type FontModifierConstructorDescriptionFontUIResource(Font font) Constructs aFontUIResource.TitledBorderUIResource(Border border, String title, int titleJustification, int titlePosition, Font titleFont) Constructs aTitledBorderUIResource.TitledBorderUIResource(Border border, String title, int titleJustification, int titlePosition, Font titleFont, Color titleColor) Constructs aTitledBorderUIResource. -
Uses of Font in javax.swing.plaf.basic
Fields in javax.swing.plaf.basic declared as FontModifier and TypeFieldDescriptionprotected FontBasicMenuItemUI.acceleratorFontThe accelerator font.Methods in javax.swing.plaf.basic with parameters of type Font -
Uses of Font in javax.swing.plaf.nimbus
Methods in javax.swing.plaf.nimbus that return FontModifier and TypeMethodDescriptionprotected FontNimbusStyle.getFontForState(SynthContext ctx) Returns the font for the specified state. -
Uses of Font in javax.swing.plaf.synth
Methods in javax.swing.plaf.synth that return FontModifier and TypeMethodDescriptionSynthStyle.getFont(SynthContext context) Returns the Font for the specified state.protected abstract FontSynthStyle.getFontForState(SynthContext context) Returns the font for the specified state.Methods in javax.swing.plaf.synth with parameters of type FontModifier and TypeMethodDescriptionintSynthGraphicsUtils.computeStringWidth(SynthContext ss, Font font, FontMetrics metrics, String text) Returns the size of the passed in string.SynthGraphicsUtils.getMaximumSize(SynthContext ss, Font font, String text, Icon icon, int hAlign, int vAlign, int hTextPosition, int vTextPosition, int iconTextGap, int mnemonicIndex) Returns the maximum size needed to properly render an icon and text.SynthGraphicsUtils.getMinimumSize(SynthContext ss, Font font, String text, Icon icon, int hAlign, int vAlign, int hTextPosition, int vTextPosition, int iconTextGap, int mnemonicIndex) Returns the minimum size needed to properly render an icon and text.SynthGraphicsUtils.getPreferredSize(SynthContext ss, Font font, String text, Icon icon, int hAlign, int vAlign, int hTextPosition, int vTextPosition, int iconTextGap, int mnemonicIndex) Returns the preferred size needed to properly render an icon and text. -
Uses of Font in javax.swing.table
Methods in javax.swing.table that return FontModifier and TypeMethodDescriptionJTableHeader.AccessibleJTableHeader.AccessibleJTableHeaderEntry.getFont()Methods in javax.swing.table with parameters of type FontModifier and TypeMethodDescriptionJTableHeader.AccessibleJTableHeader.AccessibleJTableHeaderEntry.getFontMetrics(Font f) void -
Uses of Font in javax.swing.text
Methods in javax.swing.text that return FontModifier and TypeMethodDescriptionDefaultStyledDocument.getFont(AttributeSet attr) Gets the font from an attribute set.GlyphView.getFont()Fetch the font that the glyphs should be based upon.LabelView.getFont()Fetches the font that the glyphs should be based upon.Gets a new font.StyleContext.getFont(AttributeSet attr) Gets the font from an attribute set.StyledDocument.getFont(AttributeSet attr) Takes a set of attributes and turn it into a font specification.Methods in javax.swing.text with parameters of type FontModifier and TypeMethodDescriptionStyleContext.getFontMetrics(Font f) Returns font metrics for a font. -
Uses of Font in javax.swing.text.html
Methods in javax.swing.text.html that return FontModifier and TypeMethodDescriptionStyleSheet.getFont(AttributeSet a) Fetches the font to use for the given set of attributes. -
Uses of Font in javax.swing.tree
Fields in javax.swing.tree declared as FontModifier and TypeFieldDescriptionprotected FontDefaultTreeCellEditor.fontFont to paint with,nullindicates font of renderer is to be used.Methods in javax.swing.tree that return FontModifier and TypeMethodDescriptionDefaultTreeCellEditor.getFont()Gets the font used for editing.DefaultTreeCellRenderer.getFont()Gets the font of this component.Methods in javax.swing.tree with parameters of type Font
FontmethodgetLineMetrics.