/*
 * Copyright 2022 epimethix@protonmail.com
 * 
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * 
 *     http://www.apache.org/licenses/LICENSE-2.0
 * 
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.github.epimethix.lumicore.swing.dialog;

public class CropImageDialog {

//	private final CropImagePanel cropImagePanel;
//
//	private final JPanel pnContent;
//
//	public CropImageDialog(SwingUI uiController, Dimension targetSize, File imageFile) {
//		cropImagePanel = new CropImagePanel(targetSize);
//		cropImagePanel.setBorder(BorderFactory.createBevelBorder(BevelBorder.LOWERED));
//
//		pnContent = new JPanel(new BorderLayout());
//		pnContent.add(cropImagePanel, BorderLayout.CENTER);
//
//		cropImagePanel.setImage(imageFile);
//	}
//
//	public int showCropDialog(Component parent) {
//		return JOptionPane.showConfirmDialog(parent, pnContent, A.getLabel(A.DLG_TITLE_CHOOSE_CROP),
//				JOptionPane.YES_NO_CANCEL_OPTION);
//	}
//
//	public boolean isCropped() {
//		return cropImagePanel.isCrop();
//	}
//
//	public void persistCrop(File fDestination, String fileType) {
//		try {
//			cropImagePanel.persistCrop(fDestination, fileType);
//		} catch (IOException e) {
//			e.printStackTrace();
//		}
//	}
}
