⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 plotapplet.java

📁 无线通信的主要编程软件,是无线通信工作人员的必备工具,关天相关教程我会在后续传上.
💻 JAVA
字号:
// $Id: PlotApplet.java,v 1.2 2003/10/07 21:46:02 idgay Exp $package net.tinyos.plot;import java.applet.*;import java.awt.*;import javax.swing.*;import java.util.*;public class PlotApplet extends JApplet {	private plotpanel plot;		public PlotApplet() {	}	private Color toColor (String s) {		StringTokenizer st = new StringTokenizer(s);		Color c = new Color (Integer.parseInt(st.nextToken()),			Integer.parseInt(st.nextToken()), Integer.parseInt(st.nextToken()));		return c;	}		public void init() {		plot = new plotpanel();		getContentPane().add(plot);		String bg = null;		String antialiasing = getParameter ("antialiasing");		String minX=getParameter ("minX"),		       maxX=getParameter ("maxX"),		       minY=getParameter ("minY"),		       maxY=getParameter ("maxY");		if (minX != null)			plot.setMinX (Double.parseDouble(minX));		if (minY != null)			plot.setMinY (Double.parseDouble(minY));		if (maxX != null)			plot.setMaxX (Double.parseDouble(maxX));		if (maxY != null)			plot.setMaxY (Double.parseDouble(maxY));		if (antialiasing != null && antialiasing.equals("true"))			plot.setAntiAliasing (true);		if ((bg = getParameter ("background")) != null) {			Color c = toColor (bg);			plot.setBackground(c);		}		for (int i = 1; ; i++) {			String function = getParameter ("function"+i);			if (function == null) {				break;			}			String description = getParameter ("description"+i);			String color = getParameter ("color"+i);			plot.addFunction (new ParsedFunction(function), toColor(color), description);		}		//add (plot);		}}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -