|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectsystem.CurvedControl
This class is the coupling between the GUI and the data. It has methods for use
cases and initialisation of the program. It handles the main Group
and the file reader.
If the program becomes interactive it will contain the functionality.
| Field Summary | |
protected CurvedFrame |
gui
The GUI associated with this control object. |
protected Group |
maingroup
The main Group. |
| Constructor Summary | |
CurvedControl(CurvedFrame cf)
Constructs a new control class associated with the given GUI, and an empty Group. |
|
| Method Summary | |
void |
actionPerformed(ActionEvent event)
This method is called whenever there is an interaction by the user, such as clicking a button. |
Group |
getMainGroup()
Returns the main group. |
void |
loadCurveScheme(String filename)
Loads a new scheme of Curves. |
void |
setMainGroup(Group group)
Sets the main group. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected Group maingroup
Group.
protected CurvedFrame gui
| Constructor Detail |
public CurvedControl(CurvedFrame cf)
Group.
cf - The GUI associated with this control class.| Method Detail |
public void actionPerformed(ActionEvent event)
actionPerformed in interface ActionListenerevent - The standard ActionEvent that is passed.ActionListener.actionPerformed(java.awt.event.ActionEvent)public void loadCurveScheme(String filename)
Curves.
filename - The name of the file to load the Curve Scheme from.public Group getMainGroup()
public void setMainGroup(Group group)
group - The Group to be set as main group.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||