Class WidgetProcessorImpl
- java.lang.Object
-
- org.intermine.webservice.server.widget.WidgetProcessorImpl
-
- All Implemented Interfaces:
WidgetProcessor
- Direct Known Subclasses:
FlatWidgetProcessor
,JSONWidgetProcessor
,XMLWidgetProcessor
public abstract class WidgetProcessorImpl extends java.lang.Object implements WidgetProcessor
A base class for Widget Processors- Author:
- Alex Kalderimis
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
WidgetProcessorImpl.WidgetType
Of widget types there are several:
-
Constructor Summary
Constructors Constructor Description WidgetProcessorImpl()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected java.util.Map<java.lang.String,java.lang.String>
getLabels(GraphWidgetConfig widgetConfig)
Get the labels for Graph widgets.protected WidgetProcessorImpl.WidgetType
getWidgetType(WidgetConfig widgetConfig)
abstract java.util.List<java.lang.String>
process(java.lang.String name, WidgetConfig widgetConfig)
Process a list called x with a widget y
-
-
-
Method Detail
-
process
public abstract java.util.List<java.lang.String> process(java.lang.String name, WidgetConfig widgetConfig)
Process a list called x with a widget y- Specified by:
process
in interfaceWidgetProcessor
- Parameters:
name
- the name of the list.widgetConfig
- the description of the widget.- Returns:
- results.
-
getWidgetType
protected WidgetProcessorImpl.WidgetType getWidgetType(WidgetConfig widgetConfig)
- Parameters:
widgetConfig
- The description of the widget.- Returns:
- What type of widget we have here.
-
getLabels
protected java.util.Map<java.lang.String,java.lang.String> getLabels(GraphWidgetConfig widgetConfig)
Get the labels for Graph widgets.- Parameters:
widgetConfig
- The Graph widget config.- Returns:
- A mapping from axis name (x or y) to meat-friendly label.
-
-