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.
50 lines
1.0 KiB
50 lines
1.0 KiB
package sig;
|
|
import java.awt.Graphics;
|
|
import java.awt.event.KeyEvent;
|
|
import java.awt.event.MouseEvent;
|
|
import java.awt.event.MouseWheelEvent;
|
|
import java.awt.geom.Rectangle2D;
|
|
|
|
import javax.swing.SwingUtilities;
|
|
|
|
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) {
|
|
SwingUtilities.invokeLater(new Runnable() {
|
|
public void run() {
|
|
sigIRC.panel.repaint(bounds.getBounds());
|
|
}
|
|
});
|
|
}
|
|
|
|
public void mouseWheel(MouseWheelEvent ev) {
|
|
}
|
|
|
|
public void keypressed(KeyEvent ev) {
|
|
|
|
}
|
|
|
|
public void keyreleased(KeyEvent ev) {
|
|
}
|
|
}
|
|
|