|
||||||||||
PREV NEXT | FRAMES NO FRAMES |
Packages that use Font | |
---|---|
com.sun.lwuit | Main widget package containing the component/container "composite" similar both in terminology and design to Swing/AWT. |
com.sun.lwuit.html | The HTML package allows rendering XHTML-MP 1.0 documents including WCSS support. |
com.sun.lwuit.plaf | Look of the application can be fully customized via this package, it represents a rendering layer that can be plugged in separately in runtime and themed to provide any custom look. |
com.sun.lwuit.util | Utility features that are either too domain specific or don't "fit" into any other packages. |
Uses of Font in com.sun.lwuit |
---|
Methods in com.sun.lwuit that return Font | |
---|---|
static Font |
Font.create(java.lang.String lookup)
Creates a new font instance based on the platform specific string name of the font. |
static Font |
Font.createBitmapFont(Image bitmap,
int[] cutOffsets,
int[] charWidth,
java.lang.String charsets)
Creates a bitmap font with the given arguments |
static Font |
Font.createBitmapFont(java.lang.String name,
Image bitmap,
int[] cutOffsets,
int[] charWidth,
java.lang.String charsets)
Creates a bitmap font with the given arguments and places said font in the cache |
static Font |
Font.createSystemFont(int face,
int style,
int size)
Creates a system native font in a similar way to common MIDP fonts |
static Font |
Font.createTrueTypeFont(java.io.InputStream stream)
Creates a true type font from the given stream if the underlying platform supports truetype font loading. |
static Font |
Font.getBitmapFont(java.lang.String fontName)
Returns a previously loaded bitmap font from cache |
static Font |
Font.getDefaultFont()
Return the global default font instance |
Font |
Graphics.getFont()
Returns the font used with the drawString method calls |
Methods in com.sun.lwuit with parameters of type Font | |
---|---|
static void |
Font.setDefaultFont(Font f)
Sets the global default font instance |
void |
Graphics.setFont(Font font)
Sets the font to use with the drawString method calls |
Uses of Font in com.sun.lwuit.html |
---|
Methods in com.sun.lwuit.html with parameters of type Font | |
---|---|
static void |
HTMLComponent.addFont(java.lang.String fontKey,
Font font)
Sets the given LWUIT font for use with HTMLComponents. |
void |
HTMLComponent.setDefaultFont(java.lang.String fontKey,
Font font)
Sets the default font for this HTMLComponent |
Uses of Font in com.sun.lwuit.plaf |
---|
Methods in com.sun.lwuit.plaf that return Font | |
---|---|
Font |
Style.getFont()
Font for the component |
Methods in com.sun.lwuit.plaf with parameters of type Font | |
---|---|
void |
Style.setFont(Font font)
Sets the font for the component |
void |
Style.setFont(Font font,
boolean override)
Sets the font for the component |
Constructors in com.sun.lwuit.plaf with parameters of type Font | |
---|---|
Style(int fgColor,
int bgColor,
Font f,
byte transparency)
Creates a new style with the given attributes |
|
Style(int fgColor,
int bgColor,
Font f,
byte transparency,
Image im,
byte backgroundType)
Creates a new style with the given attributes |
Uses of Font in com.sun.lwuit.util |
---|
Methods in com.sun.lwuit.util that return Font | |
---|---|
Font |
Resources.getFont(java.lang.String id)
Returns the font resource from the file |
|
||||||||||
PREV NEXT | FRAMES NO FRAMES |