net.sourceforge.jiu.gui.awt.dialogs
Class ShearDialog
Dialog
net.sourceforge.jiu.gui.awt.dialogs.ShearDialog
- ActionListener, KeyListener
public class ShearDialog
extends Dialog
implements ActionListener, KeyListener
An AWT dialog to enter the angle for a shearing operation.
ShearDialog(Frame owner, Strings strings, double initialValue, int imageWidth, int imageHeight) - Creates a ShearDialog.
|
angleTextField
private TextField angleTextField
cancel
private Button cancel
imageHeight
private int imageHeight
imageWidth
private int imageWidth
newWidthLabel
private Label newWidthLabel
pressedOk
private boolean pressedOk
result
private Double result
ShearDialog
public ShearDialog(Frame owner,
Strings strings,
double initialValue,
int imageWidth,
int imageHeight)
Creates a ShearDialog.
owner
- the Frame this dialog will belong to
actionPerformed
public void actionPerformed(ActionEvent e)
Hides (closes) this dialog if the OK button was source of the action event
(e.g. if the button was pressed).
getValue
public Double getValue()
getValue
private Double getValue(TextField tf)
handleKeys
public void handleKeys(KeyEvent e)
hasPressedOk
public boolean hasPressedOk()
keyPressed
public void keyPressed(KeyEvent e)
keyReleased
public void keyReleased(KeyEvent e)
keyTyped
public void keyTyped(KeyEvent e)