Class MAPlotFactory

All Implemented Interfaces:
DynamicActionAttributes, 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: 2013-09-09 09:56:59 +0200 (må, 09 sep 2013) $
  • Field Details

    • servletPath

      private String servletPath
    • width

      private int width
    • height

      private int height
  • Constructor Details

    • MAPlotFactory

      public MAPlotFactory()
  • Method Details

    • 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)