FontFactory

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

KonstruktorBeskrivning
FontFactory()Konstruktor

Metoder

MetodBeskrivning
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:

ParameterTypBeskrivning
arg0java.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:

ParameterTypBeskrivning
fontDefinitionFontDefinitionTypsnittsdefinitionsobjekt.

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:

ParameterTypBeskrivning
fontTypeFontTypeTypsnittstyp.
fontDatabyte[]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:

ParameterTypBeskrivning
fontTypeFontTypeTypsnittstyp.
fontStreamSourceStreamSourceStrö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:

ParameterTypBeskrivning
fontTypeFontTypeTypsnittstyp.
fileNamejava.lang.StringFontfilnamn.

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:

ParameterTypBeskrivning
arg0long

wait(long arg0, int arg1)

public final void wait(long arg0, int arg1)

Parameters:

ParameterTypBeskrivning
arg0long
arg1int