DisplaySummary Class Reference

Collaboration diagram for DisplaySummary:

Collaboration graph
[legend]

List of all members.


Public Member Functions

String getQueryParam (String param)
String getSave ()
Dataset getDataset ()
YAxis getYAxis ()
XAxis getXAxis ()
String getFirstAuthorName ()
String getFirstExperimentName ()
String getFirstInformalName ()

Detailed Description

Definition at line 16 of file DisplaySummary.java.


Member Function Documentation

String getQueryParam ( String  param  ) 

Definition at line 25 of file DisplaySummary.java.

00025                                              {
00026        return _reqGlobals.getRequest().getParameter(param);
00027     }

String getSave (  ) 

Definition at line 29 of file DisplaySummary.java.

Referenced by DisplaySummary.getDataset(), DisplaySummary.getXAxis(), and DisplaySummary.getYAxis().

00029                            {
00030        return this.getQueryParam("string");
00031     }

Dataset getDataset (  ) 

Definition at line 43 of file DisplaySummary.java.

References DisplaySummary.getSave().

00043                                {
00044        int i1 = getSave().indexOf("d");
00045        int i2 = getSave().indexOf("y");
00046        String ids = getSave().substring(i1+2,i2);
00047        Dataset _dataset = this.getPaper().getDataset(Integer.parseInt(ids));
00048        return _dataset;
00049     }

YAxis getYAxis (  ) 

Definition at line 52 of file DisplaySummary.java.

References DisplaySummary.getSave().

00052                            {
00053        int i1 = getSave().indexOf("d");
00054        int i2 = getSave().indexOf("y");
00055        String ids = getSave().substring(i1+2,i2);
00056        String idy = getSave().substring(i2+2);
00057        YAxis _yaxis = this.getPaper().getDataset(Integer.parseInt(ids)).getYAxis(Integer.parseInt(idy));
00058        return _yaxis;
00059     }

XAxis getXAxis (  ) 

Definition at line 62 of file DisplaySummary.java.

References DisplaySummary.getSave().

00062                            {
00063        int i1 = getSave().indexOf("d");
00064        int i2 = getSave().indexOf("y");
00065        String ids = getSave().substring(i1+2,i2);
00066        XAxis _xaxis = this.getPaper().getDataset(Integer.parseInt(ids)).getXAxis(1);
00067        return _xaxis;
00068     }

String getFirstAuthorName (  ) 

Definition at line 70 of file DisplaySummary.java.

00070                                       {
00071        int n = 0;
00072        String _firstauthor = "";
00073        for (String author : getPaper().getAuthors()){
00074          n += 1;
00075          if(n == 1) {_firstauthor = author;}
00076        }
00077        String _refdate = "xx";
00078        for (Reference reference : getPaper().getReferences()){
00079           _refdate = reference.getDate();
00080        }
00081         int _lref = _refdate.length();
00082        _firstauthor = _firstauthor + " " + _refdate.substring(_lref-2,_lref);
00083        return _firstauthor;
00084    }

String getFirstExperimentName (  ) 

Definition at line 86 of file DisplaySummary.java.

00086                                          {
00087        int n = 0;
00088        String _firstexperiment = "";
00089        for (Experiment experiment : getPaper().getExperiments()){
00090            n += 1;
00091            if(n == 1) { _firstexperiment = experiment.getName();}
00092        }
00093        return _firstexperiment;
00094    }

String getFirstInformalName (  ) 

Definition at line 95 of file DisplaySummary.java.

00095                                        {
00096        int n = 0;
00097        String _firstinformal = "";
00098        for (Experiment experiment : getPaper().getExperiments()){
00099            n += 1;
00100            if(n == 1) { _firstinformal = experiment.getInformalName();}
00101        }
00102        return _firstinformal;
00103     }


The documentation for this class was generated from the following file:


Generated on Tue Apr 21 15:55:03 2009 for HepData Web servlets by  doxygen 1.5.5