public ProfitPanel( TACAASimulationPanel simulationPanel, int agent, String advertiser, Color legendColor) { super(simulationPanel); this.agent = agent; this.advertiser = advertiser; currentDay = 0; this.legendColor = legendColor; simulationPanel.addTickListener(new DayListener()); simulationPanel.addViewListener(new BankStatusListener()); initialize(); }
public AdvertiserQueryTabPanel( int agent, String advertiser, Query query, ResultsPageModel resultsPageModel, TACAASimulationPanel simulationPanel, Color legendColor) { this.agent = agent; this.advertiser = advertiser; this.query = query; this.simulationPanel = simulationPanel; this.legendColor = legendColor; this.resultsPageModel = resultsPageModel; agentSupport = new AgentSupport(); simulationPanel.addViewListener(agentSupport); initialize(); }