Package org.intermine.web.logic.widget
Class GraphWidget
- java.lang.Object
-
- org.intermine.web.logic.widget.Widget
-
- org.intermine.web.logic.widget.GraphWidget
-
public class GraphWidget extends Widget
- Author:
- Xavier Watkins, Alex Kalderimis, Daniela Butano
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
GraphWidget.DivNumberFormat
class used to format the p-values on the graph
-
Field Summary
-
Fields inherited from class org.intermine.web.logic.widget.Widget
bag, config, ids, notAnalysed, os, poplationCount
-
-
Constructor Summary
Constructors Constructor Description GraphWidget(GraphWidgetConfig config, InterMineBag interMineBag, ObjectStore os, WidgetOptions options, java.lang.String ids)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<java.util.List<java.lang.String>>
getExportResults(java.lang.String[] selected)
boolean
getHasResults()
PathQuery
getPathQuery()
Returns the pathquery based on the views set in config file and the bag constraint.java.util.List<java.util.List<java.lang.Object>>
getResults()
Return the result that represents the data from this widget.PathQuery
getSimplePathQuery()
Returns the pathquery based on the classkey.void
process()
Process the data and create the widgetvoid
setFilter(java.lang.String filter)
-
Methods inherited from class org.intermine.web.logic.widget.Widget
createPathQueryView, getConfigId, getNotAnalysed, getPopulationCount, getTitle, setNotAnalysed, setPopulationCount
-
-
-
-
Constructor Detail
-
GraphWidget
public GraphWidget(GraphWidgetConfig config, InterMineBag interMineBag, ObjectStore os, WidgetOptions options, java.lang.String ids)
- Parameters:
config
- config for widgetinterMineBag
- bag for widgetos
- objectstoreids
- intermine IDs, required if bag is NULLoptions
- The options for this widget.
-
-
Method Detail
-
setFilter
public void setFilter(java.lang.String filter)
- Parameters:
filter
- Set the filter to something else
-
process
public void process()
Process the data and create the widget
-
getExportResults
public java.util.List<java.util.List<java.lang.String>> getExportResults(java.lang.String[] selected) throws java.lang.Exception
- Specified by:
getExportResults
in classWidget
- Parameters:
selected
- the list of checked items from the form- Returns:
- the checked items in export format
- Throws:
java.lang.Exception
- something has gone wrong. oh no.
-
getHasResults
public boolean getHasResults()
- Specified by:
getHasResults
in classWidget
- Returns:
- the hasResults
-
getResults
public java.util.List<java.util.List<java.lang.Object>> getResults()
Description copied from class:Widget
Return the result that represents the data from this widget. Each row is represented as a list of Object- Specified by:
getResults
in classWidget
- Returns:
- a list representing the rows containing a list of objects
-
getPathQuery
public PathQuery getPathQuery()
Returns the pathquery based on the views set in config file and the bag constraint. Executed when the user click on 'View results' button in the graph widget.- Specified by:
getPathQuery
in classWidget
- Returns:
- the query generated
-
getSimplePathQuery
public PathQuery getSimplePathQuery()
Returns the pathquery based on the classkey. Executed when the user selects any columns in the in the graph widget and a popup is shown.- Returns:
- the query generated
-
-