annotool.gui.model
Class ModelHelper

java.lang.Object
  extended by annotool.gui.model.ModelHelper

public class ModelHelper
extends java.lang.Object

This helper class provides methods to get html formatted strings to display in GUI.


Constructor Summary
ModelHelper()
           
 
Method Summary
static java.lang.String getClassNamesInfo(java.util.HashMap<java.lang.String,java.lang.String> classNames)
          Gets the HTML formatted string from class names.
static java.lang.String getModelInfo(java.util.ArrayList<ChainModel> chainModels)
          Gets the HTML formatted string including the information from the passed in ArrayList of ChainModel.
static java.lang.String getStatsInfo(java.util.HashMap<java.lang.String,java.lang.String> classNames, annotool.Annotation[][] annotations, java.lang.String[] modelLabels)
          Returns a HTML formatted string containing simple annotation statistics
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ModelHelper

public ModelHelper()
Method Detail

getModelInfo

public static java.lang.String getModelInfo(java.util.ArrayList<ChainModel> chainModels)
Gets the HTML formatted string including the information from the passed in ArrayList of ChainModel.


getClassNamesInfo

public static java.lang.String getClassNamesInfo(java.util.HashMap<java.lang.String,java.lang.String> classNames)
Gets the HTML formatted string from class names.


getStatsInfo

public static java.lang.String getStatsInfo(java.util.HashMap<java.lang.String,java.lang.String> classNames,
                                            annotool.Annotation[][] annotations,
                                            java.lang.String[] modelLabels)
Returns a HTML formatted string containing simple annotation statistics