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


Java ChartLauncher类代码示例

本文整理汇总了Java中org.jzy3d.chart.ChartLauncher的典型用法代码示例。如果您正苦于以下问题:Java ChartLauncher类的具体用法?Java ChartLauncher怎么用?Java ChartLauncher使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


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

示例1: main

import org.jzy3d.chart.ChartLauncher; //导入依赖的package包/类
public static void main(String[] args) throws UnsupportedAudioFileException, IOException {
    VocoParseFileAndFFT voice = new VocoParseFileAndFFT(new File("data/sound/piano.wav"));
    Chart chart = AWTChartComponentFactory.chart();
    SpectrumSurface d = new SpectrumSurface(new SpectrumModelSpectro(voice.getAnalysis()));
    chart.addDrawable(d);
    ChartLauncher.openChart(chart);
}
 
开发者ID:vocobox,项目名称:vocobox,代码行数:8,代码来源:VocoParseFFT3dTrial.java

示例2: main

import org.jzy3d.chart.ChartLauncher; //导入依赖的package包/类
public static void main(String[] args) throws Exception {
    LineSegmentChart d = new LineSegmentChart();
    d.makeMidiNoteChart(duration);
    
    
    ChartLauncher.openChart(d.midiNoteChart);

    d.midiNoteSerie.add(0.0f, 0.1f, Color.RED);
    d.midiNoteSerie.add(0.1f, 0.2f, Color.BLUE);
    /*d.midiNoteSerie.addOff(0.2f, 0.3f, Color.GREEN);
    
    d.midiNoteSerie.add(0.3f, 0.5f, Color.RED);
    d.midiNoteSerie.add(0.4f, 0.6f, Color.RED);
    d.midiNoteSerie.addOff(0.5f, 0.7f, Color.RED);*/
}
 
开发者ID:vocobox,项目名称:vocobox,代码行数:16,代码来源:LineSegmentChart.java

示例3: main

import org.jzy3d.chart.ChartLauncher; //导入依赖的package包/类
public static void main(String[] args) {

		AWTChartComponentFactory factory = new AWTChartComponentFactory();
		Chart chart = new Chart(factory, Quality.Nicest, SurfaceDemoTest.DEFAULT_CANVAS_TYPE,
				Settings.getInstance().getGLCapabilities());

		Cylinder cylinder = new Cylinder();
		cylinder.setData(new Coord3d(0, 0, 0), 5, 1, 20, 0, new Color(1, 1, 1, 0.75f));

		cylinder.setFaceDisplayed(true);
		// cylinder.setWireframeDisplayed(true);
		cylinder.setColorMapper(new ColorMapper(new ColorMapRainbow(), cylinder.getBounds()
				.getZmin(), cylinder.getBounds().getZmax(), new Color(1, 1, 1, 0.75f)));

		chart.getScene().getGraph().add(cylinder);

		cylinder = new Cylinder();
		cylinder.setData(new Coord3d(-10, -10, -10), 10, 3, 20, 0, new Color(-10, -10, -10, 0.75f));

		cylinder.setFaceDisplayed(true);
		cylinder.setWireframeDisplayed(true);
		cylinder.setColorMapper(new ColorMapper(new ColorMapRainbow(), cylinder.getBounds()
				.getZmin(), cylinder.getBounds().getZmax(), new Color(10, 10, 10, 0.75f)));

		chart.getScene().getGraph().add(cylinder);

		ChartLauncher.openChart(chart);
	}
 
开发者ID:gsi-upm,项目名称:BARMAS,代码行数:29,代码来源:CylinderDemoTest.java

示例4: openDelaunayChart

import org.jzy3d.chart.ChartLauncher; //导入依赖的package包/类
/**
 * @param coordinates
 */
public void openDelaunayChart(List<Coord3d> coordinates) {
	ChartLauncher.openChart(this.getDelaunayChart(coordinates));
}
 
开发者ID:gsi-upm,项目名称:BARMAS,代码行数:7,代码来源:Plotter.java

示例5: openScatterChart

import org.jzy3d.chart.ChartLauncher; //导入依赖的package包/类
/**
 * @param coordinates
 */
public void openScatterChart(List<Coord3d> coordinates, float width) {
	ChartLauncher.openChart(this.getScatterChart(coordinates, width));
}
 
开发者ID:gsi-upm,项目名称:BARMAS,代码行数:7,代码来源:Plotter.java

示例6: openCylinderChart

import org.jzy3d.chart.ChartLauncher; //导入依赖的package包/类
public void openCylinderChart(List<Cylinder> cylinders) {
	ChartLauncher.openChart(this.getCylinder3DChart(cylinders));
}
 
开发者ID:gsi-upm,项目名称:BARMAS,代码行数:4,代码来源:Plotter.java


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