org.eclipse.ecf.presence.ui.chatroom
Interface IMessageRenderer

All Known Implementing Classes:
MessageRenderer

public interface IMessageRenderer

Renders chat line, by arranging text content to be finally printed to Chat room output together with it's formatting.


Method Summary
 org.eclipse.swt.custom.StyleRange[] getStyleRanges()
          Returns formatting to be applied to rendered final output, returned by render(String, String, String).
 java.lang.String render(java.lang.String message, java.lang.String originator, java.lang.String localUserName)
          Returns text content to be finally printed to chat room output.
 

Method Detail

render

java.lang.String render(java.lang.String message,
                        java.lang.String originator,
                        java.lang.String localUserName)
Returns text content to be finally printed to chat room output.

Parameters:
message - chat message to be processed
originator - name of message sender
localUserName - local user name
Returns:
text to be printed to output, nothing will be printed if null

getStyleRanges

org.eclipse.swt.custom.StyleRange[] getStyleRanges()
Returns formatting to be applied to rendered final output, returned by render(String, String, String).

Returns:
formatting to be applied to output, or null if no formatting