IFontMorseEncoder

public interface IFontMorseEncoder

Declares functionality to encode text by Morse code and get result as font glyphs.

Methods

MethodDescription
encode(String text, IFont font, MorseAlphabets alphabet)Encodes text by Morse code and returns result as set of glyphs(glyph identifiers).
encode(String text, IFont font, MorseAlphabets alphabet, char inputSeparator)Encodes text by Morse code and returns result as set of glyphs(glyph identifiers).
encode(String text, IFont font, MorseAlphabets alphabet, char inputSeparator, char outputSeparator)Encodes text by Morse code and returns result as set of glyphs(glyph identifiers).
encode(String text, IFont font)Encodes text in Morse code and returns result as set of glyphs(glyphId).
encode(String text, IFont font, char inputSeparator)Encodes text in Morse code and returns result as set of glyphs(glyphId).
encode(String text, IFont font, char inputSeparator, char outputSeparator)Encodes text in Morse code and returns result as set of glyphs(glyphId).
encode(String text, IFont font, double fontSize, RenderingUtils.LineSpacingType lineSpacingType, int lineSpacingValue, int maxWidth, MorseAlphabets alphabet)Encodes text by Morse code and draws result in PNG-format.
encode(String text, IFont font, double fontSize, RenderingUtils.LineSpacingType lineSpacingType, int lineSpacingValue, int maxWidth, MorseAlphabets alphabet, char inputSeparator)Encodes text by Morse code and draws result in PNG-format.
encode(String text, IFont font, double fontSize, RenderingUtils.LineSpacingType lineSpacingType, int lineSpacingValue, int maxWidth, MorseAlphabets alphabet, char inputSeparator, char outputSeparator)Encodes text by Morse code and draws result in PNG-format.
encode(String text, IFont font, double fontSize, RenderingUtils.LineSpacingType lineSpacingType, int lineSpacingValue, int maxWidth)Encodes text in Morse code and draws result in PNG-format.
encode(String text, IFont font, double fontSize, RenderingUtils.LineSpacingType lineSpacingType, int lineSpacingValue, int maxWidth, char inputSeparator)Encodes text in Morse code and draws result in PNG-format.
encode(String text, IFont font, double fontSize, RenderingUtils.LineSpacingType lineSpacingType, int lineSpacingValue, int maxWidth, char inputSeparator, char outputSeparator)Encodes text in Morse code and draws result in PNG-format.

encode(String text, IFont font, MorseAlphabets alphabet)

public abstract GlyphId[] encode(String text, IFont font, MorseAlphabets alphabet)

Encodes text by Morse code and returns result as set of glyphs(glyph identifiers).

Parameters:

ParameterTypeDescription
textjava.lang.StringText to encode by Morse code.
fontIFontFont to take glyphs related to symbols dot and dash from.
alphabetMorseAlphabetsAlphabet of Morse code.

Returns: com.aspose.font.GlyphId[] - Glyphs(glyphId) related to encoded text, i.e. “… — …” for the input text “SOS”.

encode(String text, IFont font, MorseAlphabets alphabet, char inputSeparator)

public abstract GlyphId[] encode(String text, IFont font, MorseAlphabets alphabet, char inputSeparator)

Encodes text by Morse code and returns result as set of glyphs(glyph identifiers).

Parameters:

ParameterTypeDescription
textjava.lang.StringText to encode by Morse code.
fontIFontFont to take glyphs related to symbols dot and dash from.
alphabetMorseAlphabetsAlphabet of Morse code.
inputSeparatorcharSymbol used to separate words in input text.

Returns: com.aspose.font.GlyphId[] - Glyphs(glyphId) related to encoded text, i.e. “… — …” for the input text “SOS”.

encode(String text, IFont font, MorseAlphabets alphabet, char inputSeparator, char outputSeparator)

public abstract GlyphId[] encode(String text, IFont font, MorseAlphabets alphabet, char inputSeparator, char outputSeparator)

Encodes text by Morse code and returns result as set of glyphs(glyph identifiers).

Parameters:

ParameterTypeDescription
textjava.lang.StringText to encode by Morse code.
fontIFontFont to take glyphs related to symbols dot and dash from.
alphabetMorseAlphabetsAlphabet of Morse code.
inputSeparatorcharSymbol used to separate words in input text.
outputSeparatorcharSymbol used to separate words in encoded text.

Returns: com.aspose.font.GlyphId[] - Glyphs(glyphId) related to encoded text, i.e. “… — …” for the input text “SOS”.

encode(String text, IFont font)

public abstract GlyphId[] encode(String text, IFont font)

Encodes text in Morse code and returns result as set of glyphs(glyphId). Heuristic analysis is used to calculate the alphabet of the input text.

Parameters:

ParameterTypeDescription
textjava.lang.StringText to encode by Morse code.
fontIFontFont to take glyphs related to symbols dot and dash from.

Returns: com.aspose.font.GlyphId[] - Glyphs(glyphId) related to encoded text, i.e. “… — …” for the input text “SOS”.

encode(String text, IFont font, char inputSeparator)

public abstract GlyphId[] encode(String text, IFont font, char inputSeparator)

Encodes text in Morse code and returns result as set of glyphs(glyphId). Heuristic analysis is used to calculate the alphabet of the input text.

Parameters:

ParameterTypeDescription
textjava.lang.StringText to encode by Morse code.
fontIFontFont to take glyphs related to symbols dot and dash from.
inputSeparatorcharSymbol used to separate words in input text.

Returns: com.aspose.font.GlyphId[] - Glyphs(glyphId) related to encoded text, i.e. “… — …” for the input text “SOS”.

encode(String text, IFont font, char inputSeparator, char outputSeparator)

public abstract GlyphId[] encode(String text, IFont font, char inputSeparator, char outputSeparator)

Encodes text in Morse code and returns result as set of glyphs(glyphId). Heuristic analysis is used to calculate the alphabet of the input text.

Parameters:

ParameterTypeDescription
textjava.lang.StringText to encode by Morse code.
fontIFontFont to take glyphs related to symbols dot and dash from.
inputSeparatorcharSymbol used to separate words in input text.
outputSeparatorcharSymbol used to separate words in encoded text.

Returns: com.aspose.font.GlyphId[] - Glyphs(glyphId) related to encoded text, i.e. “… — …” for the input text “SOS”.

encode(String text, IFont font, double fontSize, RenderingUtils.LineSpacingType lineSpacingType, int lineSpacingValue, int maxWidth, MorseAlphabets alphabet)

public abstract InputStream encode(String text, IFont font, double fontSize, RenderingUtils.LineSpacingType lineSpacingType, int lineSpacingValue, int maxWidth, MorseAlphabets alphabet)

Encodes text by Morse code and draws result in PNG-format.

Parameters:

ParameterTypeDescription
textjava.lang.StringText to encode by Morse code.
fontIFontFont to take glyphs related to symbols dot and dash from.
fontSizedoubleFont size.
lineSpacingTypeLineSpacingTypeType of line spacing. Number of pixels or percent of font height.
lineSpacingValueintValue of line spacing.
maxWidthintMax width in pixels for image.
alphabetMorseAlphabetsAlphabet of Morse code.

Returns: java.io.InputStream - Text, encoded by Morse code, in PNG-format as stream of bytes.

encode(String text, IFont font, double fontSize, RenderingUtils.LineSpacingType lineSpacingType, int lineSpacingValue, int maxWidth, MorseAlphabets alphabet, char inputSeparator)

public abstract InputStream encode(String text, IFont font, double fontSize, RenderingUtils.LineSpacingType lineSpacingType, int lineSpacingValue, int maxWidth, MorseAlphabets alphabet, char inputSeparator)

Encodes text by Morse code and draws result in PNG-format.

Parameters:

ParameterTypeDescription
textjava.lang.StringText to encode by Morse code.
fontIFontFont to take glyphs related to symbols dot and dash from.
fontSizedoubleFont size.
lineSpacingTypeLineSpacingTypeType of line spacing. Number of pixels or percent of font height.
lineSpacingValueintValue of line spacing.
maxWidthintMax width in pixels for image.
alphabetMorseAlphabetsAlphabet of Morse code.
inputSeparatorcharSymbol used to separate words in input text.

Returns: java.io.InputStream - Text, encoded by Morse code, in PNG-format as stream of bytes.

encode(String text, IFont font, double fontSize, RenderingUtils.LineSpacingType lineSpacingType, int lineSpacingValue, int maxWidth, MorseAlphabets alphabet, char inputSeparator, char outputSeparator)

public abstract InputStream encode(String text, IFont font, double fontSize, RenderingUtils.LineSpacingType lineSpacingType, int lineSpacingValue, int maxWidth, MorseAlphabets alphabet, char inputSeparator, char outputSeparator)

Encodes text by Morse code and draws result in PNG-format.

Parameters:

ParameterTypeDescription
textjava.lang.StringText to encode by Morse code.
fontIFontFont to take glyphs related to symbols dot and dash from.
fontSizedoubleFont size.
lineSpacingTypeLineSpacingTypeType of line spacing. Number of pixels or percent of font height.
lineSpacingValueintValue of line spacing.
maxWidthintMax width in pixels for image.
alphabetMorseAlphabetsAlphabet of Morse code.
inputSeparatorcharSymbol used to separate words in input text.
outputSeparatorcharSymbol used to separate words in encoded text.

Returns: java.io.InputStream - Text, encoded by Morse code, in PNG-format as stream of bytes.

encode(String text, IFont font, double fontSize, RenderingUtils.LineSpacingType lineSpacingType, int lineSpacingValue, int maxWidth)

public abstract InputStream encode(String text, IFont font, double fontSize, RenderingUtils.LineSpacingType lineSpacingType, int lineSpacingValue, int maxWidth)

Encodes text in Morse code and draws result in PNG-format. Heuristic analysis is used to calculate the alphabet of the input text.

Parameters:

ParameterTypeDescription
textjava.lang.StringText to encode by Morse code.
fontIFontFont to take glyphs related to symbols dot and dash from.
fontSizedoubleFont size.
lineSpacingTypeLineSpacingTypeType of line spacing. Number of pixels or percent of font height.
lineSpacingValueintValue of line spacing.
maxWidthintMax width in pixels for image.

Returns: java.io.InputStream - Text, encoded by Morse code, in PNG-format as stream of bytes.

encode(String text, IFont font, double fontSize, RenderingUtils.LineSpacingType lineSpacingType, int lineSpacingValue, int maxWidth, char inputSeparator)

public abstract InputStream encode(String text, IFont font, double fontSize, RenderingUtils.LineSpacingType lineSpacingType, int lineSpacingValue, int maxWidth, char inputSeparator)

Encodes text in Morse code and draws result in PNG-format. Heuristic analysis is used to calculate the alphabet of the input text.

Parameters:

ParameterTypeDescription
textjava.lang.StringText to encode by Morse code.
fontIFontFont to take glyphs related to symbols dot and dash from.
fontSizedoubleFont size.
lineSpacingTypeLineSpacingTypeType of line spacing. Number of pixels or percent of font height.
lineSpacingValueintValue of line spacing.
maxWidthintMax width in pixels for image.
inputSeparatorcharSymbol used to separate words in input text.

Returns: java.io.InputStream - Text, encoded by Morse code, in PNG-format as stream of bytes.

encode(String text, IFont font, double fontSize, RenderingUtils.LineSpacingType lineSpacingType, int lineSpacingValue, int maxWidth, char inputSeparator, char outputSeparator)

public abstract InputStream encode(String text, IFont font, double fontSize, RenderingUtils.LineSpacingType lineSpacingType, int lineSpacingValue, int maxWidth, char inputSeparator, char outputSeparator)

Encodes text in Morse code and draws result in PNG-format. Heuristic analysis is used to calculate the alphabet of the input text.

Parameters:

ParameterTypeDescription
textjava.lang.StringText to encode by Morse code.
fontIFontFont to take glyphs related to symbols dot and dash from.
fontSizedoubleFont size.
lineSpacingTypeLineSpacingTypeType of line spacing. Number of pixels or percent of font height.
lineSpacingValueintValue of line spacing.
maxWidthintMax width in pixels for image.
inputSeparatorcharSymbol used to separate words in input text.
outputSeparatorcharSymbol used to separate words in encoded text.

Returns: java.io.InputStream - Text, encoded by Morse code, in PNG-format as stream of bytes.