system
Class CurvedControl

java.lang.Object
  extended bysystem.CurvedControl
All Implemented Interfaces:
ActionListener, EventListener

public class CurvedControl
extends Object
implements ActionListener

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.

Since:
1.00
Version:
1.10
Author:
Berend "Kirk" Wouda

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

maingroup

protected Group maingroup
The main Group.


gui

protected CurvedFrame gui
The GUI associated with this control object.

Constructor Detail

CurvedControl

public CurvedControl(CurvedFrame cf)
Constructs a new control class associated with the given GUI, and an empty Group.

Parameters:
cf - The GUI associated with this control class.
Method Detail

actionPerformed

public void actionPerformed(ActionEvent event)
This method is called whenever there is an interaction by the user, such as clicking a button.

Specified by:
actionPerformed in interface ActionListener
Parameters:
event - The standard ActionEvent that is passed.
See Also:
ActionListener.actionPerformed(java.awt.event.ActionEvent)

loadCurveScheme

public void loadCurveScheme(String filename)
Loads a new scheme of Curves.

Parameters:
filename - The name of the file to load the Curve Scheme from.

getMainGroup

public Group getMainGroup()
Returns the main group.

Returns:
The main group.

setMainGroup

public void setMainGroup(Group group)
Sets the main group.

Parameters:
group - The Group to be set as main group.