RenderingUtils

Inheritance: java.lang.Object

public class RenderingUtils

Stellt Dienstprogrammmethoden für das Rendering bereit.

Methoden

MethodeBeschreibung
drawText(Font font, GlyphId[] glyphIds, double fontSize)Text in BitMap rendern.
drawText(Font font, GlyphId[] glyphIds, double fontSize, RenderingUtils.LineSpacingType lineSpacingType, int lineSpacingValue, int maxWidth)Text in BitMap rendern.
drawText(Font font, String text, double fontSize)Text in BitMap rendern.
drawText(Font font, String text, double fontSize, RenderingUtils.LineSpacingType lineSpacingType, int lineSpacingValue, int maxWidth)Text in BitMap rendern.
equals(Object arg0)
getClass()
hashCode()
notify()
notifyAll()
toString()
wait()
wait(long arg0)
wait(long arg0, int arg1)

drawText(Font font, GlyphId[] glyphIds, double fontSize)

public static InputStream drawText(Font font, GlyphId[] glyphIds, double fontSize)

Text in BitMap rendern. Ergebnis im PNG-Format als Byte-Stream zurückgeben.

Parameters:

ParameterTypBeschreibung
fontFontSchriftart
glyphIdsGlyphId[]Text dargestellt als Array von Glyph-Bezeichnern
fontSizedoubleSchriftgröße

Returns: java.io.InputStream - Bild im PNG-Format als Byte-Stream

drawText(Font font, GlyphId[] glyphIds, double fontSize, RenderingUtils.LineSpacingType lineSpacingType, int lineSpacingValue, int maxWidth)

public static InputStream drawText(Font font, GlyphId[] glyphIds, double fontSize, RenderingUtils.LineSpacingType lineSpacingType, int lineSpacingValue, int maxWidth)

Text in BitMap rendern. Ergebnis im PNG-Format als Byte-Stream zurückgeben.

Parameters:

ParameterTypBeschreibung
fontFontSchriftart
glyphIdsGlyphId[]Text dargestellt als Array von Glyph-Bezeichnern
fontSizedoubleSchriftgröße
lineSpacingTypeLineSpacingTypeArt des Zeilenabstands. Anzahl von Pixeln oder Prozentsatz der Schriftgröße
lineSpacingValueintWert des Zeilenabstands
maxWidthintMaximale Breite in Pixeln für das Bild

Returns: java.io.InputStream - Bild im PNG-Format als Byte-Stream

drawText(Font font, String text, double fontSize)

public static InputStream drawText(Font font, String text, double fontSize)

Text in BitMap rendern.

Parameters:

ParameterTypBeschreibung
fontFontDie Schriftart.
textjava.lang.StringDer Text.
fontSizedoubleDie Schriftgröße.

Returns: java.io.InputStream - Das PNG-Bild mit dem Text als Bytestrom.

drawText(Font font, String text, double fontSize, RenderingUtils.LineSpacingType lineSpacingType, int lineSpacingValue, int maxWidth)

public static InputStream drawText(Font font, String text, double fontSize, RenderingUtils.LineSpacingType lineSpacingType, int lineSpacingValue, int maxWidth)

Text in BitMap rendern.

Parameters:

ParameterTypBeschreibung
fontFontDie Schriftart.
textjava.lang.StringDer Text.
fontSizedoubleDie Schriftgröße.
lineSpacingTypeLineSpacingTypeDer Typ des Zeilenabstands. Anzahl der Pixel oder Prozentsatz der Schrifthöhe.
lineSpacingValueintDer Wert des Zeilenabstands.
maxWidthintDie maximale Breite in Pixeln für das resultierende Bild.

Returns: java.io.InputStream - Das PNG-Bild mit dem Text als Bytestrom.

equals(Object arg0)

public boolean equals(Object arg0)

Parameters:

ParameterTypBeschreibung
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()

toString()

public String toString()

Returns: java.lang.String

wait()

public final void wait()

wait(long arg0)

public final native void wait(long arg0)

Parameters:

ParameterTypBeschreibung
arg0long

wait(long arg0, int arg1)

public final void wait(long arg0, int arg1)

Parameters:

ParameterTypBeschreibung
arg0long
arg1int