📄 smallnumberdemo.java
字号:
// Decompiled by DJ v3.7.7.81 Copyright 2004 Atanas Neshkov Date: 7/18/2005 5:13:57 PM
// Home Page : http://members.fortunecity.com/neshkov/dj.html - Check often for new version!
// Decompiler options: packimports(3)
package org.jfree.chart.demo;
import java.awt.Dimension;
import java.io.PrintStream;
import org.jfree.chart.*;
import org.jfree.chart.axis.NumberAxis;
import org.jfree.chart.axis.StandardTickUnitSource;
import org.jfree.chart.plot.PlotOrientation;
import org.jfree.chart.plot.XYPlot;
import org.jfree.data.xy.XYSeries;
import org.jfree.data.xy.XYSeriesCollection;
import org.jfree.ui.ApplicationFrame;
import org.jfree.ui.RefineryUtilities;
public class SmallNumberDemo extends ApplicationFrame
{
public SmallNumberDemo(String s)
{
super(s);
XYSeries xyseries = new XYSeries("Small Numbers");
xyseries.add(1.0000000000000001E-005D, 9.9999999999999998E-017D);
xyseries.add(5.0000000000000002E-005D, 2E-012D);
xyseries.add(0.000173D, 4.9999999999999998E-007D);
xyseries.add(0.000212D, 9.0000000000000002E-006D);
xyseries.add(0.00041199999999999999D, 1.2E-005D);
XYSeriesCollection xyseriescollection = new XYSeriesCollection(xyseries);
JFreeChart jfreechart = ChartFactory.createXYLineChart("Small Number Demo", "X", "Y", xyseriescollection, PlotOrientation.VERTICAL, true, true, false);
XYPlot xyplot = jfreechart.getXYPlot();
NumberAxis numberaxis = (NumberAxis)xyplot.getDomainAxis();
numberaxis.setStandardTickUnits(new StandardTickUnitSource());
NumberAxis numberaxis1 = (NumberAxis)xyplot.getRangeAxis();
numberaxis1.setStandardTickUnits(new StandardTickUnitSource());
ChartPanel chartpanel = new ChartPanel(jfreechart);
chartpanel.setPreferredSize(new Dimension(500, 270));
setContentPane(chartpanel);
}
public static void main(String args[])
{
System.out.println("Min Double: 4.9E-324");
SmallNumberDemo smallnumberdemo = new SmallNumberDemo("Small Number Demo");
smallnumberdemo.pack();
RefineryUtilities.centerFrameOnScreen(smallnumberdemo);
smallnumberdemo.setVisible(true);
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -