org.carrot2.demo
Interface ClusterInfoRenderer


public interface ClusterInfoRenderer

Classes implementing this interface provide additional information about a RawCluster, e.g. scores, flags etc.

Author:
Stanislaw Osinski

Method Summary
 String getClusterLabelPrefix(RawCluster rawCluster)
          Returns a prefix to be rendered before the provided cluster's label.
 String getClusterLabelSuffix(RawCluster rawCluster)
          Returns a suffix to be rendered after the provided cluster's label.
 String getHtmlClusterInfo(RawCluster rawCluster)
          Returns additional information about the provided cluster in HTML format.
 String getPlainClusterInfo(RawCluster rawCluster)
          Returns additional information about the provided cluster in plain text format.
 

Method Detail

getClusterLabelPrefix

String getClusterLabelPrefix(RawCluster rawCluster)
Returns a prefix to be rendered before the provided cluster's label.

Parameters:
rawCluster -

getClusterLabelSuffix

String getClusterLabelSuffix(RawCluster rawCluster)
Returns a suffix to be rendered after the provided cluster's label.

Parameters:
rawCluster -

getPlainClusterInfo

String getPlainClusterInfo(RawCluster rawCluster)
Returns additional information about the provided cluster in plain text format.

Parameters:
rawCluster -

getHtmlClusterInfo

String getHtmlClusterInfo(RawCluster rawCluster)
Returns additional information about the provided cluster in HTML format. (html and body tags must not be returned -- they will be added by the caller).

Parameters:
rawCluster -


Copyright (c) Dawid Weiss, Stanislaw Osinski