示例#1
0
 public BarSettingsDialog(
     ChartsComposite chartTarget, BarSettings barSettings, ActionDialogAction action) {
   this.barChartSettings = barSettings;
   this.parent = chartTarget.getShell();
   this.chartTarget = chartTarget;
   this.action = action;
   initialAlphaDividend = barChartSettings.getAlphaDividend();
 }
  public ChartIndicatorDisplay(ChartsComposite chartTarget) {
    super();

    this.barChartSettings = new BarSettings();

    this.chartTarget = chartTarget;
    populatePopups(chartTarget.getPopusGroup());
    this.chartTarget
        .getMainChartWraper()
        .initMainPlot(
            ChartMain.NUMBER_FORMAT,
            "Nothing to display?\n"
                + "Select a stock in your portfolio and "
                + "Use '"
                + TRENDBUTTXT
                + "' and/or '"
                + INDICATORSBUTTXT
                + "' buttons to select your calculator(s).\n"
                + "Also check the portfolio stocks and sliding date ranges. There may be no quotations available.");

    this.chartTarget.setStripedCloseFunction(this, new StripedCloseRealPrice());

    resetChart(true);
  }