// File: InheritEdgePanel.java // Classes: InheritEdgePanel // Author: Kedar Patankar package edu.neu.ccs.demeter.tools.apstudio.graphedit; import java.awt.Panel; import java.awt.TextField; import java.awt.Color; import edu.neu.ccs.demeter.tools.apstudio.ui.PropsGridLayout; public class InheritEdgePanel extends Panel { private Editor _editor; private String _fromVertex,_toVertex; private TextField _fromText, _toText; public InheritEdgePanel(Editor editor) { _editor = editor; setLayout(new PropsGridLayout(5,5)); TextField fromLabel,toLabel; fromLabel = new TextField("From"); toLabel = new TextField("To"); fromLabel.setEditable(false); toLabel.setEditable(false); _fromText = new TextField(); _toText = new TextField(); _fromText.setEditable(false); _toText.setEditable(false); add(fromLabel); add(_fromText); add(toLabel); add(_toText); setBackground(Color.lightGray); } public void setValues(String from, String to) { _fromText.setText(from); _toText.setText(to); } } /* end class InheritEdgePanel */