当前位置: 首页>>代码示例>>Java>>正文


Java LineChart.setCreateSymbols方法代码示例

本文整理汇总了Java中javafx.scene.chart.LineChart.setCreateSymbols方法的典型用法代码示例。如果您正苦于以下问题:Java LineChart.setCreateSymbols方法的具体用法?Java LineChart.setCreateSymbols怎么用?Java LineChart.setCreateSymbols使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在javafx.scene.chart.LineChart的用法示例。


在下文中一共展示了LineChart.setCreateSymbols方法的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: createGraph

import javafx.scene.chart.LineChart; //导入方法依赖的package包/类
private Node createGraph() { // create a graph node to be acted on by the controls.
  // setup graph
  NumberAxis xAxis = new NumberAxis(); xAxis.setLabel("X Axis");
  NumberAxis yAxis = new NumberAxis(); yAxis.setLabel("Y Axis");
  LineChart<Number,Number> graph = new LineChart<Number,Number>(xAxis,yAxis);
  graph.setTitle("Test Graph");
  graph.setCreateSymbols(false);

  // add starting data
  XYChart.Series<Number,Number> series = new XYChart.Series<Number,Number>();
  series.setName("Squares");
  for (int x = 0; x <= 10; x++) series.getData().add(new XYChart.Data<Number,Number>(x, x * x));
  graph.getData().add(series);

  graph.setMinSize(300, 260);
  graph.setMaxSize(300, 260);

  //return graph;
  
  return new Circos(new long[]{34,56,90, 65, 10}, null, null);
}
 
开发者ID:paolopavan,项目名称:circosFX,代码行数:22,代码来源:CenteredNodeInScrollPaneExample.java

示例2: build

import javafx.scene.chart.LineChart; //导入方法依赖的package包/类
@Override
public LineChart<Number, Number> build()
    {
	final NumberAxis xAxis = new NumberAxis();
	xAxis.setLabel("MAPQ");
    final NumberAxis yAxis = new NumberAxis();
    yAxis.setLabel("Count");

	final  XYChart.Series<Number,Number> serie = new XYChart.Series<Number,Number>();
	serie.setName(xAxis.getLabel());
	
    for(int g=0;g<=100;++g)
    	{
    	serie.getData().add(new XYChart.Data<Number,Number>(
    			g,this.mapq2count.count(g))
    			);
    	}
    
    final LineChart<Number, Number> sbc =
            new LineChart<Number, Number>(xAxis, yAxis);
    sbc.setTitle(this.getName());
    sbc.getData().add(serie);
    sbc.setCreateSymbols(false);
    sbc.setLegendVisible(false);
    return sbc;
    }
 
开发者ID:lindenb,项目名称:jvarkit,代码行数:27,代码来源:MapqChartFactory.java

示例3: build

import javafx.scene.chart.LineChart; //导入方法依赖的package包/类
@Override
public Chart build() {
   	final NumberAxis xAxis = new NumberAxis();
   	xAxis.setLabel("QUAL");
       final NumberAxis yAxis = new NumberAxis();
       yAxis.setLabel("Count");

   	final  XYChart.Series<Number,Number> serie = new XYChart.Series<Number,Number>();
   	serie.setName(xAxis.getLabel());
   	
       for(final Integer i: new TreeSet<>(this.qual2count.keySet()))
       	{
       	serie.getData().add(new XYChart.Data<Number,Number>(
       			i,this.qual2count.count(i))
       			);
       	}
       
       
       final LineChart<Number, Number> sbc =
               new LineChart<Number, Number>(xAxis, yAxis);
       sbc.setTitle(this.getName());
       sbc.getData().add(serie);
       sbc.setCreateSymbols(false);
       sbc.setLegendVisible(false);
       return sbc;
       }
 
开发者ID:lindenb,项目名称:jvarkit,代码行数:27,代码来源:VariantQualChartFactory.java

示例4: createChart

import javafx.scene.chart.LineChart; //导入方法依赖的package包/类
protected LineChart<Number, Number> createChart() {
    xAxis = new NumberAxis(0,24,3);
    final NumberAxis yAxis = new NumberAxis(0,100,10);
    final LineChart<Number,Number> lc = new LineChart<Number,Number>(xAxis,yAxis);
    // setup chart
    lc.setId("lineStockDemo");
    lc.setCreateSymbols(false);
    lc.setAnimated(false);
    lc.setLegendVisible(false);
    lc.setTitle("ACME Company Stock");
    xAxis.setLabel("Time");
    xAxis.setForceZeroInRange(false);
    yAxis.setLabel("Share Price");
    yAxis.setTickLabelFormatter(new NumberAxis.DefaultFormatter(yAxis,"$",null));
    // add starting data
    hourDataSeries = new XYChart.Series<Number,Number>();
    hourDataSeries.setName("Hourly Data");
    minuteDataSeries = new XYChart.Series<Number,Number>();
    minuteDataSeries.setName("Minute Data");
    // create some starting data
    hourDataSeries.getData().add(new XYChart.Data<Number,Number>(timeInHours,prevY));
    minuteDataSeries.getData().add(new XYChart.Data<Number,Number>(timeInHours,prevY));
    for (double m=0; m<(60); m++) {
        nextTime();
        plotTime();
    }
    lc.getData().add(minuteDataSeries);
    lc.getData().add(hourDataSeries);
    return lc;
}
 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:31,代码来源:ChartAdvancedStockLine.java

示例5: showChart

import javafx.scene.chart.LineChart; //导入方法依赖的package包/类
private void showChart(LineChart chart, String name) {

		chart.setCreateSymbols(false);
		chart.setTitle(name);
		chart.setAnimated(false);
		chart.autosize();
		controller.getGraphVBox().getChildren().add(chart);
	}
 
开发者ID:Stefn93,项目名称:CellularAutomata,代码行数:9,代码来源:SimulationApplication.java

示例6: buildChart

import javafx.scene.chart.LineChart; //导入方法依赖的package包/类
@Override
protected XYChart<ZonedDateTime, Double> buildChart(ZonedDateTimeAxis xAxis, ValueAxis<Double> yAxis, BooleanProperty showSymbolsProperty) {
    LineChart<ZonedDateTime, Double> newChart = new LineChart<>(xAxis, yAxis);
    newChart.setCreateSymbols(false);
    newChart.createSymbolsProperty().bindBidirectional(showSymbolsProperty);
    return newChart;
}
 
开发者ID:fthevenet,项目名称:binjr,代码行数:8,代码来源:LineChartWorksheetController.java

示例7: build

import javafx.scene.chart.LineChart; //导入方法依赖的package包/类
@Override
public LineChart<Number, Number> build()
    {
	final NumberAxis xAxis = new NumberAxis();
	xAxis.setLabel("%GC");
    final NumberAxis yAxis = new NumberAxis();
    yAxis.setLabel("Count");

    

	final  XYChart.Series<Number,Number> serie = new XYChart.Series<Number,Number>();
	serie.setName("QC");
	
    for(int g=0;g<=100;++g)
    	{
    	serie.getData().add(new XYChart.Data<Number,Number>(
    			g,this.gcPercent2count.count(g))
    			);
    	}
    
    
    final LineChart<Number, Number> sbc =
            new LineChart<Number, Number>(xAxis, yAxis);
    sbc.setTitle("Percentage GC");
    sbc.getData().add(serie);
    sbc.setCreateSymbols(false);
    sbc.setLegendVisible(false);
    return sbc;
    }
 
开发者ID:lindenb,项目名称:jvarkit,代码行数:30,代码来源:GCPercentChartFactory.java

示例8: build

import javafx.scene.chart.LineChart; //导入方法依赖的package包/类
@Override
public LineChart<Number, Number> build()
    {
	final NumberAxis xAxis = new NumberAxis();
	xAxis.setLabel("Quality");
    final NumberAxis yAxis = new NumberAxis();
    yAxis.setLabel("Count");

	final  XYChart.Series<Number,Number> serie = new XYChart.Series<Number,Number>();
	serie.setName(xAxis.getLabel());
	
    for(int g=0;g<=100;++g)
    	{
    	serie.getData().add(new XYChart.Data<Number,Number>(
    			g,this.quality2count.count(g))
    			);
    	}
    
    
    final LineChart<Number, Number> sbc =
            new LineChart<Number, Number>(xAxis, yAxis);
    sbc.setTitle(this.getName());
    sbc.getData().add(serie);
    sbc.setCreateSymbols(false);
    sbc.setLegendVisible(false);
    return sbc;
    }
 
开发者ID:lindenb,项目名称:jvarkit,代码行数:28,代码来源:ReadQualityChartFactory.java

示例9: call

import javafx.scene.chart.LineChart; //导入方法依赖的package包/类
@Override
public TreeTableCell<FeatureTableRow, Object> call(TreeTableColumn<FeatureTableRow, Object> p) {
  return new TreeTableCell<FeatureTableRow, Object>() {
    @Override
    public void updateItem(Object object, boolean empty) {
      super.updateItem(object, empty);
      setStyle(
          "-fx-border-color: transparent -fx-table-cell-border-color -fx-table-cell-border-color transparent;");
      if (object == null) {
        setText(null);
      } else {

        Chromatogram chromatogram = (Chromatogram) object;

        ChromatographyInfo[] chromatographyInfoValues = chromatogram.getRetentionTimes();
        float[] intensityValues = chromatogram.getIntensityValues();
        int numOfDataPoints = chromatogram.getNumberOfDataPoints();

        // x-axis
        NumberAxis xAxis = new NumberAxis();
        xAxis.setTickLabelsVisible(false);
        xAxis.setOpacity(0);
        xAxis.setAutoRanging(false);
        xAxis.setLowerBound(chromatogram.getRtRange().lowerEndpoint().getRetentionTime());
        xAxis.setUpperBound(chromatogram.getRtRange().upperEndpoint().getRetentionTime());

        // y-axis
        NumberAxis yAxis = new NumberAxis();
        yAxis.setTickLabelsVisible(false);
        yAxis.setOpacity(0);

        // Chart line
        final LineChart<Number, Number> lineChart = new LineChart<Number, Number>(xAxis, yAxis);
        XYChart.Series series = new XYChart.Series();
        for (int i = 1; i < numOfDataPoints; i++) {
          series.getData().add(new XYChart.Data(chromatographyInfoValues[i].getRetentionTime(),
              intensityValues[i]));
        }

        // Chart
        lineChart.getData().addAll(series);
        lineChart.setLegendVisible(false);
        lineChart.setCreateSymbols(false);
        lineChart.setMinSize(0, 0);
        lineChart.setPrefHeight(75);
        lineChart.setPrefWidth(100);

        setGraphic(lineChart);
      }
    }
  };
}
 
开发者ID:mzmine,项目名称:mzmine3,代码行数:53,代码来源:ChromatogramRenderer.java

示例10: build

import javafx.scene.chart.LineChart; //导入方法依赖的package包/类
public LineChart<Number, Number> build()
   {
   
final NumberAxis xAxis = new NumberAxis();
xAxis.setLabel("Position in Read");
   final NumberAxis yAxis = new NumberAxis();
   yAxis.setLabel("Read Quality");

   

final  XYChart.Series<Number,Number> serie_mean = new XYChart.Series<Number,Number>();
serie_mean.setName("Mean Quality");
final  XYChart.Series<Number,Number> serie_min = new XYChart.Series<Number,Number>();
serie_min.setName("Min Quality");
final  XYChart.Series<Number,Number> serie_max = new XYChart.Series<Number,Number>();
serie_max.setName("Max Quality");

   for(int x=0;x < this.pos2qual.size();++x)
   	{
   	final QualData q= this.pos2qual.get(x);
   	serie_mean.getData().add(new XYChart.Data<Number,Number>(
   			(x+1),q.get())
   			);
   	serie_min.getData().add(new XYChart.Data<Number,Number>(
   			(x+1),q.min())
   			);
   	serie_max.getData().add(new XYChart.Data<Number,Number>(
   			(x+1),q.max())
   			);
   	}
   
   
   final LineChart<Number, Number> sbc =
           new LineChart<Number, Number>(xAxis, yAxis);
   sbc.setTitle("Position/Quality");
   sbc.getData().add(serie_min);
   sbc.getData().add(serie_mean);
   sbc.getData().add(serie_max);
   sbc.setCreateSymbols(false);
   return sbc;
   }
 
开发者ID:lindenb,项目名称:jvarkit,代码行数:42,代码来源:QualityPerPositionChartFactory.java

示例11: buildLineChart

import javafx.scene.chart.LineChart; //导入方法依赖的package包/类
public static LineChart<String, Number> buildLineChart(Stats stats, Scene scene) {

        final CategoryAxis xAxis = new CategoryAxis();
        final NumberAxis yAxis = new NumberAxis();

        LineChart<String, Number> lineChart = new LineChart<String, Number>(xAxis, yAxis);

        // lineChart.setTitle("Réaction");
        // defining a series
        XYChart.Series series = new XYChart.Series();
        // series.setName("Temps de réaction");

        XYChart.Series average = new XYChart.Series();

        XYChart.Series sdp = new XYChart.Series();

        XYChart.Series sdm = new XYChart.Series();
        // populating the series with data

        ArrayList<Integer> shoots = null;

        if (stats instanceof BubblesGamesStats) {

            shoots = stats.getSortedLengthBetweenGoals();
        } else {

            shoots = stats.getLengthBetweenGoals();
        }

        double sd = stats.getSD();

        int i = 0;

        average.getData().add(new XYChart.Data(0 + "", stats.getAverageLength()));
        sdp.getData().add(new XYChart.Data(0 + "", stats.getAverageLength() + sd));
        sdm.getData().add(new XYChart.Data(0 + "", stats.getAverageLength() - sd));

        for (Integer I : shoots) {

            i++;
            series.getData().add(new XYChart.Data(i + "", I.intValue()));
            average.getData().add(new XYChart.Data(i + "", stats.getAverageLength()));

            sdp.getData().add(new XYChart.Data(i + "", stats.getAverageLength() + sd));
            sdm.getData().add(new XYChart.Data(i + "", stats.getAverageLength() - sd));
        }

        i++;
        average.getData().add(new XYChart.Data(i + "", stats.getAverageLength()));
        sdp.getData().add(new XYChart.Data(i + "", stats.getAverageLength() + sd));
        sdm.getData().add(new XYChart.Data(i + "", stats.getAverageLength() - sd));

        lineChart.setCreateSymbols(false);

        lineChart.getData().add(average);
        lineChart.getData().add(sdp);
        lineChart.getData().add(sdm);
        lineChart.getData().add(series);

        series.getNode().setStyle("-fx-stroke-width: 3; -fx-stroke: red; -fx-stroke-dash-offset:5;");
        average.getNode().setStyle("-fx-stroke-width: 1; -fx-stroke: lightgreen;");
        sdp.getNode().setStyle("-fx-stroke-width: 1; -fx-stroke: grey;");
        sdm.getNode().setStyle("-fx-stroke-width: 1; -fx-stroke: grey;");

        EventHandler<Event> openLineChartEvent = createZoomInLineChartEventHandler(lineChart, scene);

        lineChart.addEventHandler(MouseEvent.MOUSE_CLICKED, openLineChartEvent);

        lineChart.setLegendVisible(false);

        lineChart.setPrefWidth(scene.getWidth() * 0.4);
        lineChart.setPrefHeight(scene.getHeight() * 0.4);

        return lineChart;
    }
 
开发者ID:schwabdidier,项目名称:GazePlay,代码行数:76,代码来源:StatsDisplay.java


注:本文中的javafx.scene.chart.LineChart.setCreateSymbols方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。