private javax.swing.JTextField watermarkImageText;
// End of variables declaration//GEN-END:variables
@Override
public WatermarkParameters getImageEditParameters() {
WatermarkParameters watermarkParameters = new WatermarkParameters();
watermarkParameters.setEnabled(watermarkEnableCheckBox.isSelected());
watermarkParameters.setWatermarkText(editorTextPane.getText());
watermarkParameters.setPattern(patternComboBox.getSelectedIndex());
watermarkParameters.setTiledRows((Integer) rowsSlidder.getValue());
watermarkParameters.setTiledColumns((Integer) coloumnsSpinner.getValue());
watermarkParameters.setFont(jFontChooser1.getSelectedFont());
watermarkParameters.setColor(jPlacer1.getColor());
watermarkParameters.setComponentWidth(jPlacer1.getWidth());
watermarkParameters.setComponentHeight(jPlacer1.getHeight());
watermarkParameters.setCenterX(jPlacer1.getLabelCenterX());
watermarkParameters.setCenterY(jPlacer1.getLabelCenterY());
BufferedImage watermarkImage = computeWatermarkBufferedImage();
watermarkParameters.setWatermarkImage(watermarkImage);
watermarkParameters.setWatermarkWidth(watermarkImage.getWidth());
watermarkParameters.setWatermarkHeight(watermarkImage.getHeight());
return watermarkParameters;
}