Class GraphWidget


  • public class GraphWidget
    extends Widget
    Author:
    Xavier Watkins, Alex Kalderimis, Daniela Butano
    • Constructor Detail

      • GraphWidget

        public GraphWidget​(GraphWidgetConfig config,
                           InterMineBag interMineBag,
                           ObjectStore os,
                           WidgetOptions options,
                           java.lang.String ids)
        Parameters:
        config - config for widget
        interMineBag - bag for widget
        os - objectstore
        ids - intermine IDs, required if bag is NULL
        options - 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
        Specified by:
        process in class 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 class Widget
        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 class Widget
        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 class Widget
        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 class Widget
        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