//ObliqueControlGraph.java
import java.awt.*;
//import java.awt.event.*;
//import java.applet.*;
//import java.lang.*;  

public class ObliqueControlGraph extends Panel{
    private static final Color BGCOLOR = new Color(225,225,225);
    //private static final Font labfont = new Font("SanSerif",Font.PLAIN,10);
    //private static final Font labfont2 = new Font("SanSerif",Font.PLAIN,12);
    //private static final Font arrowfont = new Font("SanSerif",Font.PLAIN,25);
    //private static final Color BGCOLOR = new Color(170,240,240);
    public Checkbox c1, c2, c3, c4, c5, c6;
    CheckboxGroup cgrp;
    private final Oblique_State state;
    public Button button1, button2, button3;
    
    public ObliqueControlGraph(Oblique_State state){
	super();
        this.state = state;
	setBackground(BGCOLOR);
        setLayout(null);
        
	cgrp = new CheckboxGroup();
	c1 = new Checkbox("| Reflection Coefficient  \u0393  |",cgrp,true);
	c2 = new Checkbox("| Transmission Coefficient  \u03c4  |",cgrp,false);
        c5 = new Checkbox("Standing Wave",cgrp,false);
        c1.setBackground(BGCOLOR);
	c2.setBackground(BGCOLOR);
        c5.setBackground(BGCOLOR);
        c1.setForeground(Color.red.darker());
	c2.setForeground(Color.blue.darker());
        c5.setForeground(Color.magenta.darker());
        c1.setFont(new Font("SanSerif",Font.ITALIC,state.font10));
        c2.setFont(new Font("SanSerif",Font.ITALIC,state.font10));
        c5.setFont(new Font("SanSerif",Font.ITALIC,state.font10));
        
	//add(c1);
	//add(c2);
        //add(c5);
        
        //c1.setBounds(state.s40,state.s2,state.s200,state.s20);
        //c2.setBounds(state.s250,state.s2,state.s200,state.s20);
        //c5.setBounds(state.s400+state.s60,state.s2,state.s125,state.s20);
        
        //button1 = new Button("| Reflection Coefficient  \u0393  |");
        //button2 = new Button("| Transmission Coefficient  \u03c4  |");
        button1 = new Button("| Reflection Coefficient |");
        button2 = new Button("| Transmission Coefficient |");
        button3 = new Button("Standing Wave");
        //button1.setBackground(Color.red);
        button1.setBackground(new Color(250,250,250));
        button2.setBackground(new Color(250,250,250));
        button3.setBackground(new Color(250,250,250));
        button1.setForeground(Color.red);
        button2.setForeground(Color.black);
        button3.setForeground(Color.black);
        button1.setFont(new Font("SanSerif",Font.ITALIC,state.s11));
        button2.setFont(new Font("SanSerif",Font.ITALIC,state.s11));
        button3.setFont(new Font("SanSerif",Font.ITALIC,state.s11));
        
        button1.setBounds(state.s20,state.s2,state.s180,state.s18);
        button2.setBounds(state.s200+state.s10,state.s2,state.s180,state.s18);
        button3.setBounds(state.s400,state.s2,state.s180,state.s18);
        add(button1); add(button2); add(button3);
    }
    public void paint(Graphics g){
	g.draw3DRect(0,0,getSize().width-1,getSize().height-1,false); 
    }
}