Class MAPlotFactory
java.lang.Object
net.sf.basedb.clients.web.extensions.AbstractJspFactory
net.sf.basedb.clients.web.extensions.AbstractJspActionFactory<OverviewPlotAction>
net.sf.basedb.clients.web.extensions.plot.MAPlotFactory
- All Implemented Interfaces:
DynamicActionAttributes
,ActionFactory<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 Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetActions
(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
void
setPlotServler
(String servletPath) void
Methods inherited from class net.sf.basedb.clients.web.extensions.AbstractJspFactory
getDynamicActionAttributes, getParameter, getScripts, getStylesheets, prepareContext, setParameter, setScript, setStylesheet
-
Field Details
-
servletPath
-
width
private int width -
height
private int height
-
-
Constructor Details
-
MAPlotFactory
public MAPlotFactory()
-
-
Method Details
-
prepareContext
Checks if the bioassay set has 2-channel data in the database.- Specified by:
prepareContext
in interfaceActionFactory<OverviewPlotAction>
- Overrides:
prepareContext
in classAbstractJspActionFactory<OverviewPlotAction>
- Parameters:
context
- The current invokation context- Returns:
- Always TRUE
-
getActions
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
-
setWidth
-
setHeight
-