Uses of Class
java.awt.Font
-
Packages that use Font Package Description com.sun.java.accessibility.util Provides a collection of interfaces and classes that compose the Java Accessibility Utilities.java.awt Contains all of the classes for creating user interfaces and for painting graphics and images.java.awt.font Provides classes and interface relating to fonts.javax.accessibility Defines a contract between user-interface components and an assistive technology that provides access to those components.javax.swing Provides a set of "lightweight" (all-Java language) components that, to the maximum degree possible, work the same on all platforms.javax.swing.border Provides classes and interface for drawing specialized borders around a Swing component.javax.swing.plaf Provides one interface and many abstract classes that Swing uses to provide its pluggable look-and-feel capabilities.javax.swing.plaf.basic Provides user interface objects built according to the Basic look and feel.javax.swing.plaf.nimbus Provides user interface objects built according to the cross-platform Nimbus look and feel.javax.swing.plaf.synth Synth is a skinnable look and feel in which all painting is delegated.javax.swing.text Provides classes and interfaces that deal with editable and noneditable text components.javax.swing.text.html Provides the classHTMLEditorKitand supporting classes for creating HTML text editors.javax.swing.tree Provides classes and interfaces for dealing withjavax.swing.JTree. -
-
Uses of Font in com.sun.java.accessibility.util
Methods in com.sun.java.accessibility.util that return Font Modifier and Type Method Description FontTranslator. getFont()Get theFontof this object.Methods in com.sun.java.accessibility.util with parameters of type Font Modifier and Type Method Description FontMetricsTranslator. getFontMetrics(Font f)Get theFontMetricsof this object.voidTranslator. setFont(Font f)Set theFontof this object. -
Uses of Font in java.awt
Fields in java.awt declared as Font Modifier and Type Field Description protected FontFontMetrics. fontThe actualFontfrom which the font metrics are created.Methods in java.awt that return Font Modifier and Type Method Description static 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 FontFont. decode(String str)Returns theFontthat thestrargument describes.FontFont. deriveFont(float size)Creates a newFontobject by replicating the currentFontobject and applying a new size to it.FontFont. deriveFont(int style)Creates a newFontobject by replicating the currentFontobject and applying a new style to it.FontFont. deriveFont(int style, float size)Creates a newFontobject by replicating thisFontobject and applying a new style and size.FontFont. deriveFont(int style, AffineTransform trans)Creates a newFontobject by replicating thisFontobject and applying a new style and transform.FontFont. deriveFont(AffineTransform trans)Creates a newFontobject by replicating the currentFontobject and applying a new transform to it.FontFont. 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.FontComponent.AccessibleAWTComponent. getFont()Gets theFontof this object.FontComponent. getFont()Gets the font of this component.static FontFont. getFont(String nm)Returns aFontobject from the system properties list.static FontFont. getFont(String nm, Font font)Gets the specifiedFontfrom the system properties list.static FontFont. getFont(Map<? extends AttributedCharacterIterator.Attribute,?> attributes)Returns aFontappropriate to the attributes.FontFontMetrics. getFont()Gets theFontdescribed by thisFontMetricsobject.abstract FontGraphics. getFont()Gets the current font.FontList.AccessibleAWTList.AccessibleAWTListChild. getFont()Get the Font of this object.FontMenuComponent.AccessibleAWTMenuComponent. getFont()Gets theFontof this object.FontMenuComponent. getFont()Gets the font used for this menu component.FontMenuContainer. getFont()Returns the font in use by this container.Methods in java.awt with parameters of type Font Modifier and Type Method Description static FontFont. getFont(String nm, Font font)Gets the specifiedFontfrom the system properties list.FontMetricsComponent.AccessibleAWTComponent. getFontMetrics(Font f)Gets theFontMetricsof this object.FontMetricsComponent. getFontMetrics(Font font)Gets the font metrics for the specified font.abstract FontMetricsGraphics. getFontMetrics(Font f)Gets the font metrics for the specified font.FontMetricsList.AccessibleAWTList.AccessibleAWTListChild. getFontMetrics(Font f)Get the FontMetrics of this object.FontMetricsMenuComponent.AccessibleAWTMenuComponent. getFontMetrics(Font f)Gets theFontMetricsof this object.abstract FontMetricsToolkit. getFontMetrics(Font font)Deprecated.As of JDK version 1.2, replaced by theFontmethodgetLineMetrics.booleanGraphicsEnvironment. registerFont(Font font)Registers a createdFontin thisGraphicsEnvironment.voidComponent.AccessibleAWTComponent. setFont(Font f)Sets theFontof this object.voidComponent. setFont(Font f)Sets the font of this component.voidContainer. setFont(Font f)Sets the font of this container.abstract voidGraphics. setFont(Font font)Sets this graphics context's font to the specified font.voidList.AccessibleAWTList.AccessibleAWTListChild. setFont(Font f)Set the Font of this object.voidMenuComponent.AccessibleAWTMenuComponent. setFont(Font f)Sets theFontof this object.voidMenuComponent. setFont(Font f)Sets the font to be used for this menu component to the specified font.Constructors in java.awt with parameters of type Font Constructor Description Font(Font font)Creates a newFontfrom the specifiedfont.FontMetrics(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 Font Modifier and Type Method Description FontMultipleMaster. deriveMMFont(float[] axes)Creates a new instance of a multiple master font based on the design axis values contained in the specified array.FontMultipleMaster. 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 Constructor Description TextLayout(String string, Font font, FontRenderContext frc) -
Uses of Font in javax.accessibility
Methods in javax.accessibility that return Font Modifier and Type Method Description FontAccessibleComponent. getFont()Gets the font of this object.Methods in javax.accessibility with parameters of type Font Modifier and Type Method Description FontMetricsAccessibleComponent. getFontMetrics(Font f)Gets theFontMetricsof this object.voidAccessibleComponent. setFont(Font f)Sets the font of this object. -
Uses of Font in javax.swing
Methods in javax.swing that return Font Modifier and Type Method Description FontDebugGraphics. getFont()Returns the Font used for text drawing operations.FontJTable.AccessibleJTable.AccessibleJTableCell. getFont()Gets theFontof this object.FontUIDefaults. getFont(Object key)If the value ofkeyis aFontreturn it, otherwise returnnull.FontUIDefaults. getFont(Object key, Locale l)If the value ofkeyfor the givenLocaleis aFontreturn it, otherwise returnnull.static FontUIManager. getFont(Object key)Returns a font from the defaults.static FontUIManager. getFont(Object key, Locale l)Returns a font from the defaults that is appropriate for the given locale.Methods in javax.swing with parameters of type Font Modifier and Type Method Description static 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.FontMetricsDebugGraphics. getFontMetrics(Font f)OverridesGraphics.getFontMetrics.FontMetricsJComponent. getFontMetrics(Font font)Gets theFontMetricsfor the specifiedFont.FontMetricsJTable.AccessibleJTable.AccessibleJTableCell. getFontMetrics(Font f)Gets theFontMetricsof this object.voidDebugGraphics. setFont(Font aFont)Sets the Font used for text drawing operations.voidJComponent. setFont(Font font)Sets the font for this component.voidJSlider. setFont(Font font)Sets the font for this component.voidJTable.AccessibleJTable.AccessibleJTableCell. setFont(Font f)Sets theFontof this object.voidJTextArea. setFont(Font f)Sets the current font.voidJTextField. setFont(Font f)Sets the current font. -
Uses of Font in javax.swing.border
Fields in javax.swing.border declared as Font Modifier and Type Field Description protected FontTitledBorder. titleFontThe font for rendering the title.Methods in javax.swing.border that return Font Modifier and Type Method Description protected FontTitledBorder. getFont(Component c)Returns default font of the titled border.FontTitledBorder. getTitleFont()Returns the title-font of the titled border.Methods in javax.swing.border with parameters of type Font Modifier and Type Method Description voidTitledBorder. setTitleFont(Font titleFont)Sets the title-font of the titled border.Constructors in javax.swing.border with parameters of type Font Constructor Description TitledBorder(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.plaf Modifier and Type Class Description classFontUIResourceA subclass of java.awt.Font that implements UIResource.Constructors in javax.swing.plaf with parameters of type Font Constructor Description FontUIResource(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 Font Modifier and Type Field Description protected FontBasicMenuItemUI. acceleratorFontThe accelerator font.Methods in javax.swing.plaf.basic with parameters of type Font Modifier and Type Method Description protected voidBasicTabbedPaneUI. paintText(Graphics g, int tabPlacement, Font font, FontMetrics metrics, int tabIndex, String title, Rectangle textRect, boolean isSelected)Paints text. -
Uses of Font in javax.swing.plaf.nimbus
Methods in javax.swing.plaf.nimbus that return Font Modifier and Type Method Description protected 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 Font Modifier and Type Method Description FontSynthStyle. 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 Font Modifier and Type Method Description intSynthGraphicsUtils. computeStringWidth(SynthContext ss, Font font, FontMetrics metrics, String text)Returns the size of the passed in string.DimensionSynthGraphicsUtils. 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.DimensionSynthGraphicsUtils. 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.DimensionSynthGraphicsUtils. 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.text
Methods in javax.swing.text that return Font Modifier and Type Method Description FontDefaultStyledDocument. getFont(AttributeSet attr)Gets the font from an attribute set.FontGlyphView. getFont()Fetch the font that the glyphs should be based upon.FontLabelView. getFont()Fetches the font that the glyphs should be based upon.FontStyleContext. getFont(String family, int style, int size)Gets a new font.FontStyleContext. getFont(AttributeSet attr)Gets the font from an attribute set.FontStyledDocument. getFont(AttributeSet attr)Takes a set of attributes and turn it into a font specification.Methods in javax.swing.text with parameters of type Font Modifier and Type Method Description FontMetricsStyleContext. 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 Font Modifier and Type Method Description FontStyleSheet. 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 Font Modifier and Type Field Description protected FontDefaultTreeCellEditor. fontFont to paint with,nullindicates font of renderer is to be used.Methods in javax.swing.tree that return Font Modifier and Type Method Description FontDefaultTreeCellEditor. getFont()Gets the font used for editing.FontDefaultTreeCellRenderer. getFont()Gets the font of this component.Methods in javax.swing.tree with parameters of type Font Modifier and Type Method Description voidDefaultTreeCellEditor. setFont(Font font)Sets the font to edit with.voidDefaultTreeCellRenderer. setFont(Font font)Subclassed to mapFontUIResources to null.
-