You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
37 lines
778 B
37 lines
778 B
8 years ago
|
package sig;
|
||
|
import java.awt.Graphics;
|
||
|
import java.awt.event.MouseEvent;
|
||
|
import java.awt.event.MouseWheelEvent;
|
||
|
import java.awt.geom.Rectangle2D;
|
||
|
|
||
|
public class Module {
|
||
|
protected Rectangle2D bounds;
|
||
|
protected boolean enabled;
|
||
|
protected String name;
|
||
|
|
||
|
public Module(Rectangle2D bounds, String moduleName) {
|
||
|
this.bounds = bounds;
|
||
|
this.name = moduleName;
|
||
|
this.enabled=true;
|
||
|
}
|
||
|
|
||
|
public Module(Rectangle2D bounds, String moduleName, boolean enabled) {
|
||
|
this.bounds = bounds;
|
||
|
this.name = moduleName;
|
||
|
this.enabled=enabled;
|
||
|
}
|
||
|
|
||
|
public void mousePressed(MouseEvent ev) {
|
||
|
}
|
||
|
|
||
|
public void run() {
|
||
|
}
|
||
|
|
||
|
public void draw(Graphics g) {
|
||
|
sigIRC.panel.repaint(bounds.getBounds());
|
||
|
}
|
||
|
|
||
|
public void mouseWheel(MouseWheelEvent ev) {
|
||
|
}
|
||
|
}
|