FontFactory

Inheritance: java.lang.Object

public class FontFactory

Contiene funcionalidad para abrir fuentes de diferentes tipos y otros métodos para crear varios objetos.

Constructores

ConstructorDescripción
FontFactory()Constructor

Métodos

MétodoDescripción
equals(Object arg0)
getClass()
hashCode()
notify()
notifyAll()
open(FontDefinition fontDefinition)Abre una fuente, usando el objeto FontDefinition.
open(FontType fontType, byte[] fontData)Abre una fuente, usando el tipo de fuente y la matriz de bytes de datos de fuente.
open(FontType fontType, StreamSource fontStreamSource)Abre una fuente, usando el tipo de fuente y la fuente de flujo.
open(FontType fontType, String fileName)Abre una fuente, usando el tipo de fuente y el nombre de archivo de fuente.
toString()
wait()
wait(long arg0)
wait(long arg0, int arg1)

FontFactory()

public FontFactory()

Constructor

equals(Object arg0)

public boolean equals(Object arg0)

Parameters:

ParámetroTipoDescripción
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)

Abre una fuente, usando el objeto FontDefinition.

Parameters:

ParámetroTipoDescripción
fontDefinitionFontDefinitionObjeto de definición de fuente.

Returns: Font - Font loaded.

open(FontType fontType, byte[] fontData)

public Font open(FontType fontType, byte[] fontData)

Abre una fuente, usando el tipo de fuente y la matriz de bytes de datos de fuente.

Parameters:

ParámetroTipoDescripción
fontTypeFontTypeTipo de fuente.
fontDatabyte[]Arreglo de bytes para cargar la fuente.

Returns: Font - Font loaded.

open(FontType fontType, StreamSource fontStreamSource)

public Font open(FontType fontType, StreamSource fontStreamSource)

Abre una fuente, usando el tipo de fuente y la fuente de flujo.

Parameters:

ParámetroTipoDescripción
fontTypeFontTypeTipo de fuente.
fontStreamSourceStreamSourceFuente de flujo para la fuente.

Returns: Font - Font loaded.

open(FontType fontType, String fileName)

public Font open(FontType fontType, String fileName)

Abre una fuente, usando el tipo de fuente y el nombre de archivo de fuente.

Parameters:

ParámetroTipoDescripción
fontTypeFontTypeTipo de fuente.
fileNamejava.lang.StringNombre del archivo de fuente.

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:

ParámetroTipoDescripción
arg0long

wait(long arg0, int arg1)

public final void wait(long arg0, int arg1)

Parameters:

ParámetroTipoDescripción
arg0long
arg1int