FontFactory
Innehåll
[
Dölj
]Inheritance: java.lang.Object
public class FontFactory
Innehåller funktionalitet för att öppna teckensnitt av olika typer samt andra metoder för att skapa olika objekt.
Konstruktörer
| Konstruktor | Beskrivning |
|---|---|
| FontFactory() | Konstruktor |
Metoder
| Metod | Beskrivning |
|---|---|
| equals(Object arg0) | |
| getClass() | |
| hashCode() | |
| notify() | |
| notifyAll() | |
| open(FontDefinition fontDefinition) | Öppnar en font med FontDefinition-objekt. |
| open(FontType fontType, byte[] fontData) | Öppnar en font med fonttyp och bytearray för fontdata. |
| open(FontType fontType, StreamSource fontStreamSource) | Öppnar en font med fonttyp och strömkälla. |
| open(FontType fontType, String fileName) | Öppnar en font med fonttyp och fontfilnamn. |
| toString() | |
| wait() | |
| wait(long arg0) | |
| wait(long arg0, int arg1) |
FontFactory()
public FontFactory()
Konstruktor
equals(Object arg0)
public boolean equals(Object arg0)
Parameters:
| Parameter | Typ | Beskrivning |
|---|---|---|
| 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)
Öppnar en font med FontDefinition-objekt.
Parameters:
| Parameter | Typ | Beskrivning |
|---|---|---|
| fontDefinition | FontDefinition | Typsnittsdefinitionsobjekt. |
Returns: Font - Font loaded.
open(FontType fontType, byte[] fontData)
public Font open(FontType fontType, byte[] fontData)
Öppnar en font med fonttyp och bytearray för fontdata.
Parameters:
| Parameter | Typ | Beskrivning |
|---|---|---|
| fontType | FontType | Typsnittstyp. |
| fontData | byte[] | Byte‑array för att läsa in typsnitt från. |
Returns: Font - Font loaded.
open(FontType fontType, StreamSource fontStreamSource)
public Font open(FontType fontType, StreamSource fontStreamSource)
Öppnar en font med fonttyp och strömkälla.
Parameters:
| Parameter | Typ | Beskrivning |
|---|---|---|
| fontType | FontType | Typsnittstyp. |
| fontStreamSource | StreamSource | Strömkälla för typsnitt. |
Returns: Font - Font loaded.
open(FontType fontType, String fileName)
public Font open(FontType fontType, String fileName)
Öppnar en font med fonttyp och fontfilnamn.
Parameters:
| Parameter | Typ | Beskrivning |
|---|---|---|
| fontType | FontType | Typsnittstyp. |
| fileName | java.lang.String | Fontfilnamn. |
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 | Typ | Beskrivning |
|---|---|---|
| arg0 | long |
wait(long arg0, int arg1)
public final void wait(long arg0, int arg1)
Parameters:
| Parameter | Typ | Beskrivning |
|---|---|---|
| arg0 | long | |
| arg1 | int |