Free cookie consent management tool by TermsFeed Policy Generator

source: branches/OKBJavaConnector/ECJClient/src/ec/display/chart/ChartableStatistics.java @ 6152

Last change on this file since 6152 was 6152, checked in by bfarka, 13 years ago

added ecj and custom statistics to communicate with the okb services #1441

File size: 1.1 KB
Line 
1/*
2  Copyright 2006 by Sean Luke
3  Licensed under the Academic Free License version 3.0
4  See the file "LICENSE" for more information
5*/
6
7
8/*
9 * Created on Apr 16, 2005 12:25:57 PM
10 *
11 * By: spaus
12 */
13package ec.display.chart;
14
15import org.jfree.chart.JFreeChart;
16
17import ec.EvolutionState;
18import ec.Statistics;
19import ec.util.Parameter;
20
21/**
22 * @author spaus
23 */
24public abstract class ChartableStatistics
25    extends Statistics
26    {
27   
28    public static final String P_TITLE = "title";
29    public static final String P_XAXIS = "x-axis-label";
30    public static final String P_YAXIS = "y-axis-label";
31   
32    public String title;
33    public String xlabel;
34    public String ylabel;
35   
36    public void setup(EvolutionState state, Parameter base)
37        {
38        super.setup(state, base);
39       
40        title = state.parameters.getStringWithDefault(base.push(P_TITLE),null,"Title");
41        xlabel = state.parameters.getStringWithDefault(base.push(P_XAXIS),null,"x");
42        ylabel = state.parameters.getStringWithDefault(base.push(P_YAXIS),null,"y");
43        }
44   
45    public abstract JFreeChart makeChart();
46
47    }
Note: See TracBrowser for help on using the repository browser.