public class SwingAnnotationProfileGenericStylesSystemFontFactory extends AnnotationProfileSystemFontFactory implements SwingAnnotationFontFactory
SwingAnnotationFontFactory
implementation providing system fonts with styles Plain / Bold
/ Italic / Bold-Italic registered in Java VM environment, see
GraphicsEnvironment.getAllFonts()
.fontFactory
Constructor and Description |
---|
SwingAnnotationProfileGenericStylesSystemFontFactory() |
Modifier and Type | Method and Description |
---|---|
Font |
createAWTFont(FontAttributeSet fontAttributeSet)
Returns
Font instance for given FontAttributeSet definition. |
Collection<FontAttributeSet> |
getAvailableFontAttributeSets()
Returns available fonts provided by this implementation described via
FontAttributeSet
class. |
create, getFontManagerFuture
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
create
public SwingAnnotationProfileGenericStylesSystemFontFactory()
public Collection<FontAttributeSet> getAvailableFontAttributeSets()
AnnotationFontFactory
FontAttributeSet
class.
This method is currently used by annotation based font face editors. Current implementations
provide a simple FontAttributeSet
definition containing FamilyName
attribute
only.getAvailableFontAttributeSets
in interface AnnotationFontFactory
getAvailableFontAttributeSets
in class AnnotationProfileSystemFontFactory
FontAttributeSet
definitionpublic Font createAWTFont(FontAttributeSet fontAttributeSet)
SwingAnnotationFontFactory
Font
instance for given FontAttributeSet
definition.createAWTFont
in interface SwingAnnotationFontFactory
fontAttributeSet
- FontAttributeSet
instanceFont
instance corresponding to the given FontAttributeSet
definition, or
null
if no such Font
is available.Copyright © 2024 levigo holding gmbh. All rights reserved.