org.ow2.weblab.portlet.tool
Class LegendFactory

java.lang.Object
  extended by org.ow2.weblab.portlet.tool.LegendFactory

public class LegendFactory
extends java.lang.Object

Factory to make the legend of a weblab media unit. Media unit is analised to add all distinct annotations as fields. Each field corresponding a random color and a name (corresponding the annotation type).

Author:
emilien

Method Summary
static MediaUnitLegend getLegend(org.ow2.weblab.core.model.MediaUnit mediaUnit)
          To get the MediaUnitLegend of the media unit.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getLegend

public static MediaUnitLegend getLegend(org.ow2.weblab.core.model.MediaUnit mediaUnit)
To get the MediaUnitLegend of the media unit.

Parameters:
mediaUnnit - the media unit used to make the legend.
Returns:
the legend of media unit.


Copyright © 2004-2011. All Rights Reserved.