Пример #1
0
  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();
  }
Пример #2
0
  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();
  }