Several of the classes in package
icsbep.graph.sgt.swing.prop
are subclasses of JDialog. These classes group various Java components and manage their associated
events and interactions. Several
methods commonly appear in these subclasses. These methods are:
- applyButton_actionPerformed is invoked when
the user clicks on the "Apply" button. This method invokes method updateXXXX where XXXX
is the associated attribute, such as ContourLineAttribute.
- addNotify records the size of the window and
adjusts the components according to the insets.
- cancelButton_actionPerformed is invoked when
the user clicks on the "Cancel" button. This method cancels the operation and exits the dialog box.
- colorEditor_actionPerformed is invoked when
the user clicks on the "Color Editor" button. This method updates the color with the entered red, green, and blue
values.
- fontEditor_actionPerformed is invoked when
the user clicks on the "Font editor" button. This method instantiates a FontDialog object and handles the
actions in the "Font Editor" dialog.
- fontString converts and returns the given
font as a String.
- getXXXX returns field XXXX where XXXX
denotes a field in the dialog class.
- jbInit initializes all the components in the
dialog box.
- labelColorEditor_actionPerformed is invoked
when the user clicks on the "Label Color" button. This method updates the label color with the red, green, and blue
values.
- okButton_actionPerformed is invoked when the
user clicks on the "OK" button. This
method invokes method update or updateXXXX where XXXX
is the attribute object. The method
then closes the dialog box.
- setXXXX where XXXX denotes a
field in the dialog class. This method
sets field XXXX to the given value.
- setVisible makes the dialog visible.
- showDialog shows the dialog for editing the
specified object and waits for a response.