JPanel panel_1 = new JPanel();
tinaTransformationsTabbedPane.addTab("Gamma", null, panel_1, null);
panel_1.setLayout(null);
xFormModGammaSlider = new JSlider();
xFormModGammaSlider.setValue(0);
xFormModGammaSlider.setSize(new Dimension(172, 22));
xFormModGammaSlider.setPreferredSize(new Dimension(172, 22));
xFormModGammaSlider.setMinimum(-100);
xFormModGammaSlider.setMaximum(100);
xFormModGammaSlider.setLocation(new Point(125, 21));
xFormModGammaSlider.setFont(new Font("Dialog", Font.BOLD, 10));
xFormModGammaSlider.setBounds(125, 6, 195, 22);
xFormModGammaSlider.addMouseListener(new MouseAdapter() {
@Override
public void mousePressed(MouseEvent e) {
tinaController.saveUndoPoint();
}
});
xFormModGammaSlider.addChangeListener(new javax.swing.event.ChangeListener() {
public void stateChanged(javax.swing.event.ChangeEvent e) {
tinaController.xFormModGammaSlider_changed();
}
});
panel_1.add(xFormModGammaSlider);
xFormModGammaREd = new JWFNumberField();
xFormModGammaREd.setValueStep(0.01);
xFormModGammaREd.setText("");
xFormModGammaREd.setSize(new Dimension(55, 22));
xFormModGammaREd.setPreferredSize(new Dimension(55, 22));
xFormModGammaREd.setMinValue(-3.0);
xFormModGammaREd.setMaxValue(3.0);
xFormModGammaREd.setLocation(new Point(70, 21));
xFormModGammaREd.setHasMinValue(true);
xFormModGammaREd.setHasMaxValue(true);
xFormModGammaREd.setFont(new Font("Dialog", Font.PLAIN, 10));
xFormModGammaREd.setBounds(70, 6, 55, 22);
xFormModGammaREd.addChangeListener(new ChangeListener() {
public void stateChanged(ChangeEvent e) {
if (tinaController != null) {
if (!xFormModGammaREd.isMouseAdjusting() || xFormModGammaREd.getMouseChangeCount() == 0) {
if (!xFormModGammaSlider.getValueIsAdjusting()) {
tinaController.saveUndoPoint();
}
}
tinaController.xFormModGammaREd_changed();
}
}
});
panel_1.add(xFormModGammaREd);
JLabel label = new JLabel();
label.setToolTipText("Local change of gamma");
label.setText("Gamma");
label.setSize(new Dimension(64, 22));
label.setPreferredSize(new Dimension(64, 22));
label.setLocation(new Point(6, 21));
label.setFont(new Font("Dialog", Font.BOLD, 10));
label.setBounds(6, 6, 64, 22);
panel_1.add(label);
JLabel label_2 = new JLabel();
label_2.setToolTipText("Blending of local gamma change");
label_2.setText("Gamma Spd");
label_2.setSize(new Dimension(64, 22));
label_2.setPreferredSize(new Dimension(64, 22));
label_2.setLocation(new Point(6, 47));
label_2.setFont(new Font("Dialog", Font.BOLD, 10));
label_2.setBounds(6, 32, 64, 22);
panel_1.add(label_2);
xFormModGammaSpeedSlider = new JSlider();
xFormModGammaSpeedSlider.setValue(0);
xFormModGammaSpeedSlider.setSize(new Dimension(172, 22));
xFormModGammaSpeedSlider.setPreferredSize(new Dimension(172, 22));
xFormModGammaSpeedSlider.setMinimum(-100);
xFormModGammaSpeedSlider.setMaximum(100);
xFormModGammaSpeedSlider.setLocation(new Point(125, 47));
xFormModGammaSpeedSlider.setFont(new Font("Dialog", Font.BOLD, 10));
xFormModGammaSpeedSlider.setBounds(125, 32, 195, 22);
xFormModGammaSpeedSlider.addMouseListener(new MouseAdapter() {
@Override
public void mousePressed(MouseEvent e) {
tinaController.saveUndoPoint();
}
});
xFormModGammaSpeedSlider.addChangeListener(new javax.swing.event.ChangeListener() {
public void stateChanged(javax.swing.event.ChangeEvent e) {
tinaController.xFormModGammaSpeedSlider_changed();
}
});
panel_1.add(xFormModGammaSpeedSlider);
xFormModGammaSpeedREd = new JWFNumberField();
xFormModGammaSpeedREd.setValueStep(0.01);
xFormModGammaSpeedREd.setText("");
xFormModGammaSpeedREd.setSize(new Dimension(55, 22));
xFormModGammaSpeedREd.setPreferredSize(new Dimension(55, 22));
xFormModGammaSpeedREd.setMinValue(-1.0);
xFormModGammaSpeedREd.setMaxValue(1.0);
xFormModGammaSpeedREd.setLocation(new Point(70, 47));
xFormModGammaSpeedREd.setHasMinValue(true);
xFormModGammaSpeedREd.setHasMaxValue(true);
xFormModGammaSpeedREd.setFont(new Font("Dialog", Font.PLAIN, 10));
xFormModGammaSpeedREd.setBounds(70, 32, 55, 22);
xFormModGammaSpeedREd.addChangeListener(new ChangeListener() {
public void stateChanged(ChangeEvent e) {
if (tinaController != null) {
if (!xFormModGammaSpeedREd.isMouseAdjusting() || xFormModGammaSpeedREd.getMouseChangeCount() == 0) {
if (!xFormModGammaSpeedSlider.getValueIsAdjusting()) {
tinaController.saveUndoPoint();
}
}
tinaController.xFormModGammaSpeedREd_changed();
}
}
});
panel_1.add(xFormModGammaSpeedREd);
JLabel lblContrast = new JLabel();
lblContrast.setToolTipText("Local contrast change (increase/decrease)");
lblContrast.setText("Contrast");
lblContrast.setSize(new Dimension(64, 22));
lblContrast.setPreferredSize(new Dimension(64, 22));
lblContrast.setLocation(new Point(6, 21));
lblContrast.setFont(new Font("Dialog", Font.BOLD, 10));
lblContrast.setBounds(6, 61, 64, 22);
panel_1.add(lblContrast);
xFormModContrastREd = new JWFNumberField();
xFormModContrastREd.setValueStep(0.01);
xFormModContrastREd.setText("");
xFormModContrastREd.setSize(new Dimension(55, 22));
xFormModContrastREd.setPreferredSize(new Dimension(55, 22));
xFormModContrastREd.setMinValue(-2.0);
xFormModContrastREd.setMaxValue(2.0);
xFormModContrastREd.setLocation(new Point(70, 21));
xFormModContrastREd.setHasMinValue(true);
xFormModContrastREd.setHasMaxValue(true);
xFormModContrastREd.setFont(new Font("Dialog", Font.PLAIN, 10));
xFormModContrastREd.setBounds(70, 61, 55, 22);
xFormModContrastREd.addChangeListener(new ChangeListener() {
public void stateChanged(ChangeEvent e) {
if (tinaController != null) {
if (!xFormModContrastREd.isMouseAdjusting() || xFormModContrastREd.getMouseChangeCount() == 0) {
if (!xFormModContrastSlider.getValueIsAdjusting()) {
tinaController.saveUndoPoint();
}
}
tinaController.xFormModContrastREd_changed();
}
}
});
panel_1.add(xFormModContrastREd);
xFormModContrastSlider = new JSlider();
xFormModContrastSlider.setValue(0);
xFormModContrastSlider.setSize(new Dimension(172, 22));
xFormModContrastSlider.setPreferredSize(new Dimension(172, 22));
xFormModContrastSlider.setMinimum(-100);
xFormModContrastSlider.setMaximum(100);
xFormModContrastSlider.setLocation(new Point(125, 21));
xFormModContrastSlider.setFont(new Font("Dialog", Font.BOLD, 10));
xFormModContrastSlider.setBounds(125, 61, 195, 22);
xFormModContrastSlider.addMouseListener(new MouseAdapter() {
@Override
public void mousePressed(MouseEvent e) {
tinaController.saveUndoPoint();
}
});
xFormModContrastSlider.addChangeListener(new javax.swing.event.ChangeListener() {
public void stateChanged(javax.swing.event.ChangeEvent e) {
tinaController.xFormModContrastSlider_changed();
}
});
panel_1.add(xFormModContrastSlider);
JLabel lblContrstSpd = new JLabel();
lblContrstSpd.setToolTipText("Blending of local contrast change");
lblContrstSpd.setText("Contrst Spd");
lblContrstSpd.setSize(new Dimension(64, 22));
lblContrstSpd.setPreferredSize(new Dimension(64, 22));
lblContrstSpd.setLocation(new Point(6, 47));
lblContrstSpd.setFont(new Font("Dialog", Font.BOLD, 10));
lblContrstSpd.setBounds(6, 87, 64, 22);
panel_1.add(lblContrstSpd);
xFormModContrastSpeedREd = new JWFNumberField();
xFormModContrastSpeedREd.setValueStep(0.01);
xFormModContrastSpeedREd.setText("");
xFormModContrastSpeedREd.setSize(new Dimension(55, 22));
xFormModContrastSpeedREd.setPreferredSize(new Dimension(55, 22));
xFormModContrastSpeedREd.setMinValue(-1.0);
xFormModContrastSpeedREd.setMaxValue(1.0);
xFormModContrastSpeedREd.setLocation(new Point(70, 47));
xFormModContrastSpeedREd.setHasMinValue(true);
xFormModContrastSpeedREd.setHasMaxValue(true);
xFormModContrastSpeedREd.setFont(new Font("Dialog", Font.PLAIN, 10));
xFormModContrastSpeedREd.setBounds(70, 87, 55, 22);
xFormModContrastSpeedREd.addChangeListener(new ChangeListener() {
public void stateChanged(ChangeEvent e) {
if (tinaController != null) {
if (!xFormModContrastSpeedREd.isMouseAdjusting() || xFormModContrastSpeedREd.getMouseChangeCount() == 0) {
if (!xFormModContrastSpeedSlider.getValueIsAdjusting()) {
tinaController.saveUndoPoint();
}
}
tinaController.xFormModContrastSpeedREd_changed();
}
}
});
panel_1.add(xFormModContrastSpeedREd);
xFormModContrastSpeedSlider = new JSlider();
xFormModContrastSpeedSlider.setValue(0);
xFormModContrastSpeedSlider.setSize(new Dimension(172, 22));
xFormModContrastSpeedSlider.setPreferredSize(new Dimension(172, 22));
xFormModContrastSpeedSlider.setMinimum(-100);
xFormModContrastSpeedSlider.setMaximum(100);
xFormModContrastSpeedSlider.setLocation(new Point(125, 47));
xFormModContrastSpeedSlider.setFont(new Font("Dialog", Font.BOLD, 10));
xFormModContrastSpeedSlider.setBounds(125, 87, 195, 22);
xFormModContrastSpeedSlider.addMouseListener(new MouseAdapter() {
@Override
public void mousePressed(MouseEvent e) {
tinaController.saveUndoPoint();
}
});
xFormModContrastSpeedSlider.addChangeListener(new javax.swing.event.ChangeListener() {
public void stateChanged(javax.swing.event.ChangeEvent e) {
tinaController.xFormModContrastSpeedSlider_changed();
}
});
panel_1.add(xFormModContrastSpeedSlider);
JLabel lblSaturation = new JLabel();
lblSaturation.setToolTipText("Local modification of color saturation");
lblSaturation.setText("Saturation");
lblSaturation.setSize(new Dimension(64, 22));
lblSaturation.setPreferredSize(new Dimension(64, 22));
lblSaturation.setLocation(new Point(6, 21));
lblSaturation.setFont(new Font("Dialog", Font.BOLD, 10));
lblSaturation.setBounds(6, 117, 64, 22);
panel_1.add(lblSaturation);
xFormModSaturationREd = new JWFNumberField();
xFormModSaturationREd.setValueStep(0.01);
xFormModSaturationREd.setText("");
xFormModSaturationREd.setSize(new Dimension(55, 22));
xFormModSaturationREd.setPreferredSize(new Dimension(55, 22));
xFormModSaturationREd.setMinValue(-2.0);
xFormModSaturationREd.setMaxValue(2.0);
xFormModSaturationREd.setLocation(new Point(70, 21));
xFormModSaturationREd.setHasMinValue(true);
xFormModSaturationREd.setHasMaxValue(true);
xFormModSaturationREd.setFont(new Font("Dialog", Font.PLAIN, 10));
xFormModSaturationREd.setBounds(70, 117, 55, 22);
xFormModSaturationREd.addChangeListener(new ChangeListener() {
public void stateChanged(ChangeEvent e) {
if (tinaController != null) {
if (!xFormModSaturationREd.isMouseAdjusting() || xFormModSaturationREd.getMouseChangeCount() == 0) {
if (!xFormModSaturationSlider.getValueIsAdjusting()) {
tinaController.saveUndoPoint();
}
}
tinaController.xFormModSaturationREd_changed();
}
}
});
panel_1.add(xFormModSaturationREd);
xFormModSaturationSlider = new JSlider();
xFormModSaturationSlider.setValue(0);
xFormModSaturationSlider.setSize(new Dimension(172, 22));
xFormModSaturationSlider.setPreferredSize(new Dimension(172, 22));
xFormModSaturationSlider.setMinimum(-100);
xFormModSaturationSlider.setMaximum(100);
xFormModSaturationSlider.setLocation(new Point(125, 21));
xFormModSaturationSlider.setFont(new Font("Dialog", Font.BOLD, 10));
xFormModSaturationSlider.setBounds(125, 117, 195, 22);
xFormModSaturationSlider.addMouseListener(new MouseAdapter() {
@Override
public void mousePressed(MouseEvent e) {
tinaController.saveUndoPoint();
}
});
xFormModSaturationSlider.addChangeListener(new javax.swing.event.ChangeListener() {
public void stateChanged(javax.swing.event.ChangeEvent e) {
tinaController.xFormModSaturationSlider_changed();
}
});
panel_1.add(xFormModSaturationSlider);
JLabel lblSaturatSpd = new JLabel();
lblSaturatSpd.setToolTipText("Blending of local saturation change");
lblSaturatSpd.setText("Saturat Spd");
lblSaturatSpd.setSize(new Dimension(64, 22));
lblSaturatSpd.setPreferredSize(new Dimension(64, 22));
lblSaturatSpd.setLocation(new Point(6, 47));
lblSaturatSpd.setFont(new Font("Dialog", Font.BOLD, 10));
lblSaturatSpd.setBounds(6, 143, 64, 22);
panel_1.add(lblSaturatSpd);
xFormModSaturationSpeedREd = new JWFNumberField();
xFormModSaturationSpeedREd.setValueStep(0.01);
xFormModSaturationSpeedREd.setText("");
xFormModSaturationSpeedREd.setSize(new Dimension(55, 22));
xFormModSaturationSpeedREd.setPreferredSize(new Dimension(55, 22));
xFormModSaturationSpeedREd.setMinValue(-1.0);
xFormModSaturationSpeedREd.setMaxValue(1.0);
xFormModSaturationSpeedREd.setLocation(new Point(70, 47));
xFormModSaturationSpeedREd.setHasMinValue(true);
xFormModSaturationSpeedREd.setHasMaxValue(true);
xFormModSaturationSpeedREd.setFont(new Font("Dialog", Font.PLAIN, 10));
xFormModSaturationSpeedREd.setBounds(70, 143, 55, 22);
xFormModSaturationSpeedREd.addChangeListener(new ChangeListener() {
public void stateChanged(ChangeEvent e) {
if (tinaController != null) {
if (!xFormModSaturationSpeedREd.isMouseAdjusting() || xFormModSaturationSpeedREd.getMouseChangeCount() == 0) {
if (!xFormModSaturationSpeedSlider.getValueIsAdjusting()) {
tinaController.saveUndoPoint();
}
}
tinaController.xFormModSaturationSpeedREd_changed();
}
}
});
panel_1.add(xFormModSaturationSpeedREd);
xFormModSaturationSpeedSlider = new JSlider();
xFormModSaturationSpeedSlider.setValue(0);
xFormModSaturationSpeedSlider.setSize(new Dimension(172, 22));
xFormModSaturationSpeedSlider.setPreferredSize(new Dimension(172, 22));
xFormModSaturationSpeedSlider.setMinimum(-100);
xFormModSaturationSpeedSlider.setMaximum(100);