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

📄 coloredrect.java

📁 MPICH是MPI的重要研究,提供了一系列的接口函数,为并行计算的实现提供了编程环境.
💻 JAVA
字号:
import com.sun.java.swing.Icon;import java.awt.Color;import java.awt.Graphics;import java.awt.Component;/** * This class is used to make the colored rect representing a state  */public class ColoredRect implements Icon {  Color color;  public ColoredRect (Color c) {    this.color = c;  }    public void paintIcon(Component c, Graphics g, int x, int y) {    Color oldColor = g.getColor();    g.setColor(color);    g.fill3DRect(x,y,getIconWidth(), getIconHeight(), true);    g.setColor(oldColor);  }  public int getIconWidth() { return 25; }  public int getIconHeight() { return 18; }}

⌨️ 快捷键说明

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