Examples of Chart


Examples of fr.soleil.comete.swt.Chart

        GridData tableBooleanData = new GridData(200, 100);
        tableBooleanData.verticalAlignment = GridData.BEGINNING;
        tableBoolean.setLayoutData(tableBooleanData);

        // ChartViewer
        chartViewer = new Chart(parent, SWT.NONE);
        GridData chartData = new GridData();
        chartData.verticalAlignment = GridData.BEGINNING;
        chartData.minimumWidth = 600;
        chartData.minimumHeight = 400;
        chartData.horizontalSpan = 2;
View Full Code Here

Examples of fr.soleil.comete.swt.both.Chart

    }

    private Chart getChartViewer() {
        if (chartViewer == null) {
            // System.out.println("plotAreaComposite = " + tableAreaComposite);
            chartViewer = new Chart(plotAreaComposite, SWT.NONE);
        }
        plotAreaLayout.topControl = chartViewer;
        return chartViewer;
    }
View Full Code Here

Examples of io.lumify.analystsNotebook.model.Chart

        }

        Locale locale = getLocale(request);
        String timeZone = getTimeZone(request);
        String baseUrl = getBaseUrl(request);
        Chart chart = analystsNotebookExporter.toChart(version, workspace, user, authorizations, locale, timeZone, baseUrl);

        List<String> comments = new ArrayList<String>();
        comments.add(String.format("Lumify Workspace: %s", workspace.getDisplayTitle()));
        comments.add(String.format("%s/#w=%s", baseUrl, workspaceId));
        comments.add(String.format("Exported %1$tF %1$tT %1$tz for Analyst's Notebook version %2$s", new Date(), version.toString()));
View Full Code Here

Examples of jofc2.model.Chart

   * assigned, no matter whether it is the same as the previous, it will
   * always cause re-render.
   */
  public void setModel(ChartModel model) {
    this.model = model;
    Chart chart = renderChart();
    //    String json = "{ \"elements\": [ { \"type\": \"bar_filled\",\"alpha\":\"0.8\", \"colour\": \"#3399ff\", \"outline-colour\": \"#0066CC\", \"values\": [ 9, 8, 7, 6, 5, 4, 3, 2, 1 ] } ], \"title\": { \"text\": \"Wed May 20 2009\" }, \"bg_colour\": \"#ffffff\" }";
    String json = chart.toString();
    setChart(json);
    System.out.println(chart.toDebugString());
  }
View Full Code Here

Examples of jofc2.model.Chart

  protected double maxValue;

  public OFCChartFactory(OFC ofc) {
    this.ofc = ofc;
    this.model = (CategoryModel) ofc.getModel();
    this.chart = new Chart();
    this.minValue = Double.POSITIVE_INFINITY;
    this.maxValue = Double.NEGATIVE_INFINITY;
  }
View Full Code Here

Examples of jofc2.model.Chart

    super(ofc);
  }

  @Override
  public Chart createChart() {
    Chart chart = super.createChart();
    return chart;
  }
View Full Code Here

Examples of jofc2.model.Chart

    super(ofc);
  }

  @Override
  public Chart createChart() {
    Chart chart = super.createChart();
    chart.setXAxis(createXAxis());
    chart.setYAxis(createYAxis());
    return chart;
  }
View Full Code Here

Examples of joshua.decoder.chart_parser.Chart

      startTime = System.currentTimeMillis();
    }
    if (logger.isLoggable(Level.FINE))
      logger.fine("now translating\n" + segment.sentence());
   
    Chart chart; {
      //TODO: we should not use "(((" to decide whether it is a lattice input
      final boolean looksLikeLattice = segment.sentence().startsWith("(((");
      Lattice<Integer> inputLattice = null;
      Pattern sentence = null;
      if (looksLikeLattice) {
        inputLattice = Lattice.createFromString(segment.sentence(),
                  this.symbolTable);
        sentence = null; // TODO SA needs to accept lattices!
      } else {
        int[] intSentence = this.symbolTable.getIDs(segment.sentence());
        if (logger.isLoggable(Level.FINEST))
          logger.finest("Converted \"" + segment.sentence() + "\" into " + Arrays.toString(intSentence));
        inputLattice = Lattice.createLattice(intSentence);
        sentence = new Pattern(this.symbolTable, intSentence);
      }
      if (logger.isLoggable(Level.FINEST))
        logger.finest("Translating input lattice:\n" + inputLattice.toString());

      Grammar[] grammars = new Grammar[grammarFactories.size()];
      int i = 0;
      for (GrammarFactory factory : this.grammarFactories) {
        grammars[i] = factory.getGrammarForSentence(sentence);
       
        // For batch grammar, we do not want to sort it every time
        if (! grammars[i].isSorted()) {
          System.out.println("!!!!!!!!!!!! called again");
          // TODO Check to see if this is ever called here. It probably is not
          grammars[i].sortGrammar(this.featureFunctions);
        }
       
        i++;
      }
     
     
      /* Seeding: the chart only sees the grammars, not the factories */
      chart = new Chart(
        inputLattice,
        this.featureFunctions,
        this.stateComputers,
        this.symbolTable,
        Integer.parseInt(segment.id()),
        grammars,
        this.hasLanguageModel,
        JoshuaConfiguration.goal_symbol,
        segment.constraints());
     
      if (logger.isLoggable(Level.FINER))
        logger.finer("after seed, time: "
          + ((double)(System.currentTimeMillis() - startTime) / 1000.0)
          + " seconds");
    }
   
   
   
    /* Parsing */
    HyperGraph hypergraph = chart.expand();
   
    if (JoshuaConfiguration.visualize_hypergraph) {
      HyperGraphViewer.visualizeHypergraphInFrame(hypergraph, symbolTable);
    }
   
View Full Code Here

Examples of net.sourceforge.ganttproject.chart.Chart

    }

    /** Print the project */
    public void printProject() {

        Chart chart = getUIFacade().getActiveChart();

        if (chart==null) {
            getUIFacade().showErrorDialog("Failed to find active chart.\nPlease report this problem to GanttProject development team");
            return;
        }
View Full Code Here

Examples of net.sourceforge.ganttproject.chart.Chart

    }

    public void previewPrint() {

        Date startDate, endDate;
        Chart chart = getUIFacade().getActiveChart();

        if (chart==null) {
            getUIFacade().showErrorDialog("Failed to find active chart.\nPlease report this problem to GanttProject development team");
            return;
        }

        try {
            startDate = chart.getStartDate();
            endDate = chart.getEndDate();
        } catch (UnsupportedOperationException e) {
            startDate = null;
            endDate = null;
        }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.