congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
LineChart.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
javafx.scene.chart.LineChart
constructor

Best Java code snippets using javafx.scene.chart.LineChart.<init> (Showing top 3 results out of 315)

origin: com.github.giulianini.jestures/jestures

/**
 * Create the charts.
 * 
 * @param timeRange
 *            the max time range
 * @return the {@link LineChart}
 */
public static LineChart<Number, Number> createDerivativeLineChart(final int timeRange) {
  final NumberAxis x2Axis = new NumberAxis("Space", -100, 100, 1);
  final NumberAxis x1Axis = new NumberAxis("Time", 0, timeRange, 1);
  final LineChart<Number, Number> lineChart = new LineChart<>(x1Axis, x2Axis);
  lineChart.getYAxis().setAutoRanging(false);
  lineChart.getYAxis().setAutoRanging(false);
  lineChart.setAnimated(false);
  return lineChart;
}
origin: GoMint/GoMint

public TPSChart() {
  final NumberAxis yAxis = new NumberAxis();
  this.xAxis = new NumberAxis( 0, 512, 1000 );
  this.xAxis.setAutoRanging( false );
  this.chart = new LineChart<>( xAxis, yAxis );
  this.chart.setAnimated( false );
  this.chart.setCreateSymbols( false );
  this.chart.setLegendVisible( false );
  this.fullTimeSeries = new XYChart.Series<>();
  this.actualTimeSeries = new XYChart.Series<>();
  this.averageTimeSeries = new XYChart.Series<>();
  this.scrollBar = new ScrollBar();
  this.scrollBar.valueProperty().addListener( new ChangeListener<Number>() {
    @Override
    public void changed( ObservableValue<? extends Number> observable, Number oldValue, Number newValue ) {
      currentDataStart = (int) ( newValue.floatValue() * ( TimeUnit.SECONDS.toNanos( 1 ) / tickNanos ) * 60 );
      updateChart();
    }
  } );
}
origin: com.aquafx-project/aquafx

static Node createLineChart() {
  NumberAxis xAxis = new NumberAxis("Values for X-Axis", 0, 3, 1);
  NumberAxis yAxis = new NumberAxis("Values for Y-Axis", 0, 3, 1);
  ObservableList<XYChart.Series<Double,Double>> lineChartData = FXCollections.observableArrayList(
    new LineChart.Series<Double,Double>("Series 1", FXCollections.observableArrayList(
      new XYChart.Data<Double,Double>(0.0, 1.0),
      new XYChart.Data<Double,Double>(1.2, 1.4),
      new XYChart.Data<Double,Double>(2.2, 1.9),
      new XYChart.Data<Double,Double>(2.7, 2.3),
      new XYChart.Data<Double,Double>(2.9, 0.5)
    )),
    new LineChart.Series<Double,Double>("Series 2", FXCollections.observableArrayList(
      new XYChart.Data<Double,Double>(0.0, 1.6),
      new XYChart.Data<Double,Double>(0.8, 0.4),
      new XYChart.Data<Double,Double>(1.4, 2.9),
      new XYChart.Data<Double,Double>(2.1, 1.3),
      new XYChart.Data<Double,Double>(2.6, 0.9)
    ))
  );
  return new LineChart(xAxis, yAxis, lineChartData);
}

javafx.scene.chartLineChart<init>

Popular methods of LineChart

  • getData
  • setAnimated
  • getYAxis
  • setCreateSymbols
  • setLegendVisible
  • setPrefHeight
  • setTitle

Popular in Java

  • Making http requests using okhttp
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • setContentView (Activity)
  • MessageFormat (java.text)
    Produces concatenated messages in language-neutral way. New code should probably use java.util.Forma
  • NoSuchElementException (java.util)
    Thrown when trying to retrieve an element past the end of an Enumeration or Iterator.
  • Scanner (java.util)
    A parser that parses a text string of primitive types and strings with the help of regular expressio
  • JFileChooser (javax.swing)
  • LogFactory (org.apache.commons.logging)
    Factory for creating Log instances, with discovery and configuration features similar to that employ
  • Join (org.hibernate.mapping)
  • Top 17 Plugins for Android Studio
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now