當前位置: 首頁>>代碼示例>>Java>>正文


Java RefineryUtilities類代碼示例

本文整理匯總了Java中org.jfree.ui.RefineryUtilities的典型用法代碼示例。如果您正苦於以下問題:Java RefineryUtilities類的具體用法?Java RefineryUtilities怎麽用?Java RefineryUtilities使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


RefineryUtilities類屬於org.jfree.ui包,在下文中一共展示了RefineryUtilities類的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: MultiLineChart

import org.jfree.ui.RefineryUtilities; //導入依賴的package包/類
public MultiLineChart(final String title, List<Users> tpaverficationUserList) {
	super(title);
	this.tpaverficationUserList = tpaverficationUserList;
	XYDataset dataset = null;
	try {
		dataset = createDataset();
	} catch (Exception e) {
		System.out.println("MultiLineChart -- Constructor" + e);
	}
	final JFreeChart chart = createChart(dataset);
	final ChartPanel chartPanel = new ChartPanel(chart);
	chartPanel.setPreferredSize(new java.awt.Dimension(700, 470));
	setContentPane(chartPanel);
	this.pack();
	RefineryUtilities.centerFrameOnScreen(this);
	this.setVisible(true);

}
 
開發者ID:cyberheartmi9,項目名稱:Mona-Secure-Multi-Owner-Data-Sharing-for-Dynamic-Group-in-the-Cloud,代碼行數:19,代碼來源:MultiLineChart.java

示例2: displayChart

import org.jfree.ui.RefineryUtilities; //導入依賴的package包/類
/**
 * Displays a chart in a frame.
 * @param chart the chart to be displayed
 */
private static void displayChart(JFreeChart chart) {
    // Chart panel
    ChartPanel panel = new ChartPanel(chart);
    panel.setFillZoomRectangle(true);
    panel.setMouseWheelEnabled(true);
    panel.setPreferredSize(new Dimension(1024, 400));
    // Application frame
    ApplicationFrame frame = new ApplicationFrame("Ta4j example - Cash flow to chart");
    frame.setContentPane(panel);
    frame.pack();
    RefineryUtilities.centerFrameOnScreen(frame);
    frame.setVisible(true);
}
 
開發者ID:ta4j,項目名稱:ta4j,代碼行數:18,代碼來源:CashFlowToChart.java

示例3: main

import org.jfree.ui.RefineryUtilities; //導入依賴的package包/類
/**
 * Starting point for the demonstration application.
 *
 * @param args  ignored.
 */
public static void main(String[] args) {

    // ******************************************************************
    //  More than 150 demo applications are included with the JFreeChart
    //  Developer Guide...for more information, see:
    //
    //  >   http://www.object-refinery.com/jfreechart/guide.html
    //
    // ******************************************************************

    PieChartDemo1 demo = new PieChartDemo1("JFreeChart: Pie Chart Demo 1");
    demo.pack();
    RefineryUtilities.centerFrameOnScreen(demo);
    demo.setVisible(true);
}
 
開發者ID:Yarichi,項目名稱:Proyecto-DASI,代碼行數:21,代碼來源:PieChartDemo1.java

示例4: visualizarSerieChartAsignRescateVict

import org.jfree.ui.RefineryUtilities; //導入依賴的package包/類
public void  visualizarSerieChartAsignRescateVict(Color color,CategoryDataset dataset) {
     ChartPanel chartPanel = new ChartPanel(chartNotifAsigResc);
     chartNotifAsigResc.setBackgroundPaint(Color.white);
    CategoryPlot plot = (CategoryPlot) chartNotifAsigResc.getPlot();
     plot.setBackgroundPaint(color);
     plot.setDataset(dataset);
     plot.setDomainGridlinePaint(Color.white);
     plot.setRangeGridlinePaint(Color.white);
     NumberAxis rangeAxis = (NumberAxis) plot.getRangeAxis();
     rangeAxis.setUpperMargin(0.15);
     CategoryItemRenderer renderer = plot.getRenderer();
     renderer.setItemLabelGenerator(new LabelGenerator(50.0));
     renderer.setItemLabelFont(new Font("Serif", Font.PLAIN, 8));
     renderer.setItemLabelsVisible(true);
     chartPanel.setPreferredSize(new java.awt.Dimension(500, 270));
   setContentPane(chartPanel);
   this.pack();
   RefineryUtilities.centerFrameOnScreen(this);
   this.setVisible(true);
}
 
開發者ID:Yarichi,項目名稱:Proyecto-DASI,代碼行數:21,代碼來源:VisualizacionJfreechart.java

示例5: mousePressed

import org.jfree.ui.RefineryUtilities; //導入依賴的package包/類
/**
 * Handles a 'mouse pressed' event.
 * <P>
 * This event is the popup trigger on Unix/Linux.  For Windows, the popup
 * trigger is the 'mouse released' event.
 *
 * @param e  The mouse event.
 */
public void mousePressed(MouseEvent e) {

    if (this.zoomRectangle == null) {

        this.zoomPoint = RefineryUtilities.getPointInRectangle(
            e.getX(), e.getY(), getScaledDataArea()
        );
        LOGGER.debug("In mousePressed()");
        LOGGER.debug("getScaledDataArea() = " + getScaledDataArea());
        LOGGER.debug("this.zoomPoint = " + this.zoomPoint);

        // check for popup trigger...
        if (e.isPopupTrigger()) {
            if (this.popup != null) {
                displayPopupMenu(e.getX(), e.getY());
            }
        }
    }

}
 
開發者ID:parabuild-ci,項目名稱:parabuild-ci,代碼行數:29,代碼來源:ChartPanel.java

示例6: main

import org.jfree.ui.RefineryUtilities; //導入依賴的package包/類
/**
 * Starting point for the demonstration application.
 *
 * @param args  ignored.
 */
public static void main(String[] args) {

    // ******************************************************************
    //  More than 150 demo applications are included with the JFreeChart
    //  Developer Guide...for more information, see:
    //
    //  >   http://www.object-refinery.com/jfreechart/guide.html
    //
    // ******************************************************************
    
    PieChartDemo1 demo = new PieChartDemo1("Pie Chart Demo 1");
    demo.pack();
    RefineryUtilities.centerFrameOnScreen(demo);
    demo.setVisible(true);
}
 
開發者ID:parabuild-ci,項目名稱:parabuild-ci,代碼行數:21,代碼來源:PieChartDemo1.java

示例7: KeySignatureGraph

import org.jfree.ui.RefineryUtilities; //導入依賴的package包/類
public KeySignatureGraph(String title, int one, int two) {
	super(title);
	XYDataset dataset = null;
	try {
		dataset = createDataset(one, two);
	} catch (Exception e) {
		System.out.println("MultiLineChart -- Constructor" + e);
	}
	final JFreeChart chart = createChart(dataset);
	final ChartPanel chartPanel = new ChartPanel(chart);
	chartPanel.setPreferredSize(new java.awt.Dimension(500, 370));
	setContentPane(chartPanel);
	this.pack();
	RefineryUtilities.centerFrameOnScreen(this);
	this.setVisible(true);
	setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
}
 
開發者ID:cyberheartmi9,項目名稱:Mona-Secure-Multi-Owner-Data-Sharing-for-Dynamic-Group-in-the-Cloud,代碼行數:18,代碼來源:KeySignatureGraph.java

示例8: KeyStorageGraph

import org.jfree.ui.RefineryUtilities; //導入依賴的package包/類
public KeyStorageGraph(String title, int one, int two) {
		
	super(title);
	XYDataset dataset = null;
	try {
		dataset = createDataset();
	} catch (Exception e) {
		System.out.println("MultiLineChart -- Constructor" + e);
	}
	final JFreeChart chart = createChart(dataset);
	final ChartPanel chartPanel = new ChartPanel(chart);
	chartPanel.setPreferredSize(new java.awt.Dimension(500, 370));
	setContentPane(chartPanel);
	this.pack();
	RefineryUtilities.centerFrameOnScreen(this);
	this.setVisible(true);
	setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);

}
 
開發者ID:cyberheartmi9,項目名稱:Mona-Secure-Multi-Owner-Data-Sharing-for-Dynamic-Group-in-the-Cloud,代碼行數:20,代碼來源:KeyStorageGraph.java

示例9: TimeandCostGraph

import org.jfree.ui.RefineryUtilities; //導入依賴的package包/類
public TimeandCostGraph(String title, int one, int two) {

		super(title);
		XYDataset dataset = null;
		try {
			dataset = createDataset();
		} catch (Exception e) {
			System.out.println("MultiLineChart -- Constructor" + e);
		}
		final JFreeChart chart = createChart(dataset);
		final ChartPanel chartPanel = new ChartPanel(chart);
		chartPanel.setPreferredSize(new java.awt.Dimension(700, 470));
		setContentPane(chartPanel);
		this.pack();
		RefineryUtilities.centerFrameOnScreen(this);
		this.setVisible(true);
		setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
	}
 
開發者ID:cyberheartmi9,項目名稱:Mona-Secure-Multi-Owner-Data-Sharing-for-Dynamic-Group-in-the-Cloud,代碼行數:19,代碼來源:TimeandCostGraph.java

示例10: main

import org.jfree.ui.RefineryUtilities; //導入依賴的package包/類
/**
  * Starting point for the demonstration application.
  *
  * @param args 
  */
 public static void main(final String[] args) {

     ScatterPlotter sp = new ScatterPlotter("");
     
     if(sp.getScatterPlot().isBatch()){
     	sp.pack();
     	RefineryUtilities.centerFrameOnScreen(sp);
     	sp.setVisible(false);
     	//try {
//	scatter.saveSVG(new File("out.svg"), 500, 500);
//} catch (IOException e) {
//	e.printStackTrace();
//}
     }else{
     	sp.pack();
     	RefineryUtilities.centerFrameOnScreen(sp);
     	sp.setVisible(true);
     }

 }
 
開發者ID:seqcode,項目名稱:seqcode-core,代碼行數:26,代碼來源:ScatterPlotter.java

示例11: showScheduleAndWait

import org.jfree.ui.RefineryUtilities; //導入依賴的package包/類
public static void showScheduleAndWait(
		List<Schedule> schedules, 
		HashMap<VirtualCommodity,PriceSignal> ps, 
		HashMap<VirtualCommodity,PowerLimitSignal> pls, 
		long currentTime) {
	
	final Object sync = new Object();
	
	ScheduleDrawer demo = new ScheduleDrawer(schedules, ps, pls, currentTime);
	JFrame frame = new JFrame("Schedule");
	frame.setContentPane(demo);
	frame.pack();
	RefineryUtilities.centerFrameOnScreen(frame);
	frame.setVisible(true);
	
	synchronized (sync) {
		try {
			sync.wait();
		} catch (InterruptedException e) {}
	}
	
	frame.dispose();
}
 
開發者ID:organicsmarthome,項目名稱:OSHv2,代碼行數:24,代碼來源:ScheduleDrawer.java

示例12: main

import org.jfree.ui.RefineryUtilities; //導入依賴的package包/類
/**
 * Main method
 * 
 * @param args
 *            NOT IN USE.
 */
public static void main(String[] args) {

	SwingUtilities.invokeLater(new Runnable() {

		@Override
		public void run() {

			ExternalBasicChart demo = new ExternalBasicChart("Active learning process", "",
					"Number of labeled instances");
			demo.pack();
			RefineryUtilities.centerFrameOnScreen(demo);
			demo.setVisible(true);
		}
	});

}
 
開發者ID:ogreyesp,項目名稱:JCLAL,代碼行數:23,代碼來源:ExternalBasicChart.java

示例13: showScheduleAndWait

import org.jfree.ui.RefineryUtilities; //導入依賴的package包/類
public static void showScheduleAndWait(
		List<Schedule> schedules, 
		EnumMap<AncillaryCommodity,PriceSignal> ps, 
		EnumMap<AncillaryCommodity,PowerLimitSignal> pls, 
		long currentTime) {
	
	final Object sync = new Object();
	
	ScheduleDrawer demo = new ScheduleDrawer(schedules, ps, pls, currentTime);
	JFrame frame = new JFrame("Schedule");
	frame.setContentPane(demo);
	frame.pack();
	RefineryUtilities.centerFrameOnScreen(frame);
	frame.setVisible(true);
	
	synchronized (sync) {
		try {
			sync.wait();
		} catch (InterruptedException e) {}
	}
	
	frame.dispose();
}
 
開發者ID:organicsmarthome,項目名稱:OSHv4,代碼行數:24,代碼來源:ScheduleDrawer.java

示例14: main

import org.jfree.ui.RefineryUtilities; //導入依賴的package包/類
/**
 * Starting point for the demonstration application.
 *
 * @param args  ignored.
 */
public static void main(String[] args) {

    // ******************************************************************
    //  More than 150 demo applications are included with the JFreeChart
    //  Developer Guide...for more information, see:
    //
    //  >   http://www.object-refinery.com/jfreechart/guide.html
    //
    // ******************************************************************

    PieChartDemo1 demo = new PieChartDemo1("Pie Chart Demo 1");
    demo.pack();
    RefineryUtilities.centerFrameOnScreen(demo);
    demo.setVisible(true);
}
 
開發者ID:SOCR,項目名稱:HTML5_WebSite,代碼行數:21,代碼來源:PieChartDemo1.java

示例15: execute

import org.jfree.ui.RefineryUtilities; //導入依賴的package包/類
/**
 * Execute.
 */
public void execute() {
	
	IntervalXYDataset dataset = createDataset();
    JFreeChart chart = createChart(dataset);

    final ChartPanel chartPanel = new ChartPanel(chart);
    chartPanel.setPreferredSize(new java.awt.Dimension(500, 270));
    setContentPane(chartPanel);

    this.pack();
    RefineryUtilities.centerFrameOnScreen(this);
    exportFigure(chart);
    //this.setVisible(true);
    

}
 
開發者ID:mattmagic149,項目名稱:AnSoMia,代碼行數:20,代碼來源:NewsHistogram.java


注:本文中的org.jfree.ui.RefineryUtilities類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。