Examples of RotateParameters


Examples of org.bric.imageEditParameters.RotateParameters

    private javax.swing.JSpinner toSpinner;
    // End of variables declaration//GEN-END:variables

    @Override
    public RotateParameters getImageEditParameters() {
        RotateParameters rotateParameters = new RotateParameters();
        rotateParameters.setEnabled(RotateEnableCheckBox.isSelected());
        rotateParameters.setCustom(customRadioButton.isSelected());
        rotateParameters.setPredefined(predefinedRadioButton.isSelected());
        int angle = jRotator1.getAngle();
        rotateParameters.setAngle(angle);
        rotateParameters.setRandom(randomCheckBox.isSelected());
        rotateParameters.setDifferentValues(differentValueCheckBox.isSelected());
        rotateParameters.setLimit(limitCheckBox.isSelected());
        rotateParameters.setFrom((Integer)fromSpinner.getValue());
        rotateParameters.setTo((Integer)toSpinner.getValue());
        rotateParameters.setAction(actionsComboBox.getSelectedIndex());
        rotateParameters.setRandomAngle(calculateRandomAngle());

        return rotateParameters;
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.