Changeset 505


Ignore:
Timestamp:
02/03/11 17:34:42 (2 years ago)
Author:
philsmart
Message:
 
Location:
raptor-information-model/trunk/src/main/java/uk/ac/cardiff/model
Files:
2 added
2 edited

Legend:

Unmodified
Added
Removed
  • raptor-information-model/trunk/src/main/java/uk/ac/cardiff/model/Graph/AggregatorGraphModel.java

    r367 r505  
    33import java.util.ArrayList; 
    44import java.util.List; 
     5 
     6import uk.ac.cardiff.model.Presentation; 
    57 
    68 
     
    1517        private List<String> seriesLabels; 
    1618        private List<List<Double>> chartValues; 
     19 
     20        private Presentation presentation; 
    1721 
    1822 
     
    7276        } 
    7377 
     78        public void setPresentation(Presentation presentation) { 
     79            this.presentation = presentation; 
     80        } 
     81 
     82        public Presentation getPresentation() { 
     83            return presentation; 
     84        } 
     85 
    7486 
    7587} 
  • raptor-information-model/trunk/src/main/java/uk/ac/cardiff/model/StatisticParameters.java

    r499 r505  
    55 
    66import java.io.Serializable; 
     7import java.util.ArrayList; 
    78import java.util.Calendar; 
    89import java.util.Date; 
     
    4142    private List<MethodParameter> methodParams; 
    4243 
    43     /* The textual description of the series, as attached to the x-axis */ 
    44     private String seriesLabel; 
    45     /* A formatted textual description of the series, typically formatted by the logic of the authentication statistic*/ 
    46     private String SeriesLabelFormatted; 
    47  
    4844    /* 
    4945     * the start time from which to produce the starts, defining the temporal extent If a starttime and endtime is not given, the entire temporal extent of the 
     
    6763    private SQLFilter sqlFilter; 
    6864 
     65    /* Configures the parameters used to view a graphical representation*/ 
     66    private Presentation presentation; 
     67 
     68    /* A series to plot on the graph*/ 
     69     private List<Series> series; 
     70 
     71     public StatisticParameters(){ 
     72         presentation = new Presentation(); 
     73         presentation.setGraphTitle(""); 
     74         presentation.setxAxisLabel(""); 
     75         presentation.setyAxisLabel(""); 
     76         setSeries(new ArrayList<Series>()); 
     77     } 
     78 
    6979    public void setUnitName(String unitName) { 
    70         log.debug("Setting unit name: "+unitName); 
    7180        this.unitName = unitName; 
    7281    } 
     
    9099    public List<MethodParameter> getMethodParams() { 
    91100        return methodParams; 
    92     } 
    93  
    94     public void setSeriesLabel(String seriesLabel) { 
    95         this.seriesLabel = seriesLabel; 
    96     } 
    97  
    98     public String getSeriesLabel() { 
    99         return seriesLabel; 
    100101    } 
    101102 
     
    313314    } 
    314315 
    315     public void setSeriesLabelFormatted(String seriesLabelFormatted) { 
    316         SeriesLabelFormatted = seriesLabelFormatted; 
    317     } 
    318  
    319     public String getSeriesLabelFormatted() { 
    320         return SeriesLabelFormatted; 
    321     } 
    322  
    323316    public void setSqlFilter(SQLFilter sqlFilter) { 
    324317        this.sqlFilter = sqlFilter; 
     
    329322    } 
    330323 
    331  
     324    public void setPresentation(Presentation presentation) { 
     325        this.presentation = presentation; 
     326    } 
     327 
     328    public Presentation getPresentation() { 
     329        return presentation; 
     330    } 
     331 
     332    public void setSeries(List<Series> series) { 
     333        this.series = series; 
     334    } 
     335 
     336    public List<Series> getSeries() { 
     337        return series; 
     338    } 
    332339 
    333340 
Note: See TracChangeset for help on using the changeset viewer.