sigIRCv2/src/sig/Module.java
sigonasr2 b236798544 Configuration controls! Added an overlay mode, so you can see the
overlay on your own screen. Config file has a lot more customizability
now and provides more control over the program.
2017-04-10 23:58:01 -05:00

51 lines
1.0 KiB
Java

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) {
}
}