SimDisplay |
1 package interfaces; 2 3 import javax.swing.*; 4 import java.awt.*; 5 6 /** Interface class for all SimDisplays 7 * @author Graham Ritchie 8 */ 9 public abstract class SimDisplay extends JPanel 10 { 11 /** Main repaint method. This mathod is called whenever SimUI calls this 12 * SimDisplay's repaint methods It must repaint this SimDisplay's JPanel. 13 * @param g Java graphics object 14 */ 15 public void paintComponent(Graphics g) 16 { 17 this.setDoubleBuffered(true); 18 super.paintComponent(g); 19 20 } 21 22 } 23
SimDisplay |