2.17.2: 2011-06-17

net.sf.basedb.clients.web.extensions.plot
Class MAPlotFactory

java.lang.Object
  extended by net.sf.basedb.clients.web.extensions.AbstractJspFactory
      extended by net.sf.basedb.clients.web.extensions.AbstractJspActionFactory<OverviewPlotAction>
          extended by net.sf.basedb.clients.web.extensions.plot.MAPlotFactory
All Implemented Interfaces:
ActionFactory<OverviewPlotAction>

public class MAPlotFactory
extends AbstractJspActionFactory<OverviewPlotAction>

Factory for generating MA and correction factor plots for 2-channel data. This factory will only generate plots if the current bioassay set has data in the database.

If the conditions are fulfilled the factory generates MA plots for each bioassay in the bioassay set. The image generation is handled by the standard plot servlet: PlotServlet.

If the bioassay set is not a root bioassayset the factory also generates correction factor plots.

Version:
2.12
Author:
Nicklas
Last modified
$Date: 2009-11-05 10:40:18 +0100 (Thu, 05 Nov 2009) $

Field Summary
private  int height
           
private  String servletPath
           
private  int width
           
 
Constructor Summary
MAPlotFactory()
           
 
Method Summary
 OverviewPlotAction[] getActions(InvokationContext<? super OverviewPlotAction> context)
          This method may be called one or several times for each request.
 boolean prepareContext(InvokationContext<? super OverviewPlotAction> context)
          Checks if the bioassay set has 2-channel data in the database.
 void setHeight(String height)
           
 void setPlotServler(String servletPath)
           
 void setWidth(String width)
           
 
Methods inherited from class net.sf.basedb.clients.web.extensions.AbstractJspFactory
getScripts, getStylesheets, prepareContext, setScript, setStylesheet
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

servletPath

private String servletPath

width

private int width

height

private int height
Constructor Detail

MAPlotFactory

public MAPlotFactory()
Method Detail

prepareContext

public boolean prepareContext(InvokationContext<? super OverviewPlotAction> context)
Checks if the bioassay set has 2-channel data in the database.

Specified by:
prepareContext in interface ActionFactory<OverviewPlotAction>
Overrides:
prepareContext in class AbstractJspActionFactory<OverviewPlotAction>
Parameters:
context - The current invokation context
Returns:
Always TRUE

getActions

public OverviewPlotAction[] getActions(InvokationContext<? super OverviewPlotAction> context)
Description copied from interface: ActionFactory
This method may be called one or several times for each request. This is decided by the extension point. If, for example, the extension point is a pure single-item extension point then this method is probably only called once. If the extension point is a per-item extension point in a list context, then this method may be called once for every item in the list. The context parameter contains all information about the context of the extension point, including the current item, if any.

Parameters:
context - The current invokation context
Returns:
An array of actions that should be added to the extension point. Returns null or an empty array if there are no actions in the current context.

setPlotServler

@VariableSetter
@PathSetter
public void setPlotServler(String servletPath)

setWidth

public void setWidth(String width)

setHeight

public void setHeight(String height)

2.17.2: 2011-06-17