📄 chart2.java
字号:
// Decompiled by DJ v2.9.9.60 Copyright 2000 Atanas Neshkov Date: 2002-12-03 18:41:32
// Home Page : http://members.fortunecity.com/neshkov/dj.html - Check often for new version!
// Decompiler options: packimports(3)
// Source File Name: Chart2.java
package cn.com.fcsoft.chart;
import java.awt.*;
import java.io.Serializable;
class Chart2
implements Serializable
{
final void paint(Graphics g, Dimension dimension)
{
if(g != null && dimension != null)
{
if(copyright)
{
int i = dimension.height / 2;
int j = dimension.width / 2;
g.setColor(Color.white);
g.fillRect(0, 0, dimension.width, dimension.height);
g.setColor(Color.black);
g.setFont(new Font("Dialog", 1, 20));
FontMetrics fontmetrics = g.getFontMetrics();
String s = "webGraph " + version;
g.drawString(s, j - fontmetrics.stringWidth(s) / 2, i - 20);
g.setFont(new Font("Dialog", 0, 10));
fontmetrics = g.getFontMetrics();
s = "(注册后广告条将被移走!)";
g.drawString(s, j - fontmetrics.stringWidth(s) / 2, i - 5);
s = "Copyright 2002-2003";
g.drawString(s, j - fontmetrics.stringWidth(s) / 2, i + 10);
s = "Fcsoft, Inc. - 版权所有";
g.drawString(s, j - fontmetrics.stringWidth(s) / 2, i + 25);
s = "www.fcsoft.com.cn";
g.drawString(s, j - fontmetrics.stringWidth(s) / 2, i + 40);
g.setColor(Color.black);
g.drawRect(0, 0, dimension.width - 1, dimension.height - 1);
return;
}
g.setColor(Color.red.darker());
g.fill3DRect(0, dimension.height - 8, 8, 8, true);
g.setColor(Color.gray);
if(counter <= 0)
{
x = (int)(Math.random() * (double)dimension.width);
y = (int)(Math.random() * (double)dimension.height);
}
g.setFont(new Font("Dialog", 1, 12));
g.drawString("fcsoft.com.cn", x, y);
if(--counter < 0)
counter = 20;
}
}
Chart2()
{
}
static final long serialVersionUID = 0xf65dbfc9fd31e3b1L;
boolean copyright;
int counter;
String version;
int x;
int y;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -