FontFactory
Contents
[
Hide
]Inheritance: java.lang.Object
public class FontFactory
Contains functionality for opening fonts of different types and other methods for creating various objects.
Constructors
| Constructor | Description |
|---|---|
| FontFactory() | Constructor |
Methods
| Method | Description |
|---|---|
| equals(Object arg0) | |
| getClass() | |
| hashCode() | |
| notify() | |
| notifyAll() | |
| open(FontDefinition fontDefinition) | Opens a font, using FontDefinition object. |
| open(FontType fontType, byte[] fontData) | Opens a font, using font type and font data byte array. |
| open(FontType fontType, StreamSource fontStreamSource) | Opens a font, using font type and stream source. |
| open(FontType fontType, String fileName) | Opens a font, using font type and font file name. |
| toString() | |
| wait() | |
| wait(long arg0) | |
| wait(long arg0, int arg1) |
FontFactory()
public FontFactory()
Constructor
equals(Object arg0)
public boolean equals(Object arg0)
Parameters:
| Parameter | Type | Description |
|---|---|---|
| arg0 | java.lang.Object |
Returns: boolean
getClass()
public final native Class<?> getClass()
Returns: java.lang.Class
hashCode()
public native int hashCode()
Returns: int
notify()
public final native void notify()
notifyAll()
public final native void notifyAll()
open(FontDefinition fontDefinition)
public Font open(FontDefinition fontDefinition)
Opens a font, using FontDefinition object.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| fontDefinition | FontDefinition | Font definition object. |
Returns: Font - Font loaded.
open(FontType fontType, byte[] fontData)
public Font open(FontType fontType, byte[] fontData)
Opens a font, using font type and font data byte array.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| fontType | FontType | Font type. |
| fontData | byte[] | Byte array to load font from. |
Returns: Font - Font loaded.
open(FontType fontType, StreamSource fontStreamSource)
public Font open(FontType fontType, StreamSource fontStreamSource)
Opens a font, using font type and stream source.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| fontType | FontType | Font type. |
| fontStreamSource | StreamSource | Stream source for font. |
Returns: Font - Font loaded.
open(FontType fontType, String fileName)
public Font open(FontType fontType, String fileName)
Opens a font, using font type and font file name.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| fontType | FontType | Font type. |
| fileName | java.lang.String | Font file name. |
Returns: Font - Font loaded.
toString()
public String toString()
Returns: java.lang.String
wait()
public final void wait()
wait(long arg0)
public final native void wait(long arg0)
Parameters:
| Parameter | Type | Description |
|---|---|---|
| arg0 | long |
wait(long arg0, int arg1)
public final void wait(long arg0, int arg1)
Parameters:
| Parameter | Type | Description |
|---|---|---|
| arg0 | long | |
| arg1 | int |