private void reshapeButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_reshapeButtonActionPerformed
        try {
            JViewport viewport = spriteSheetScrollPane.getViewport();
            SpriteSheetPane ssPane = (SpriteSheetPane) viewport.getView();
            ButtonModel selectedModel = rsAnchorGroup.getSelection();

            SpriteClip.AnchorType anchor;
            if (selectedModel == tlRadioButton.getModel()) {
                anchor = SpriteClip.AnchorType.TL;
            }else if (selectedModel == tcRadioButton.getModel()) {
                anchor = SpriteClip.AnchorType.TC;
            }else if (selectedModel == trRadioButton.getModel()) {
                anchor = SpriteClip.AnchorType.TR;
            }else if (selectedModel == clRadioButton.getModel()) {
                anchor = SpriteClip.AnchorType.CL;
            }else if (selectedModel == crRadioButton.getModel()) {
                anchor = SpriteClip.AnchorType.CR;
            }else if (selectedModel == blRadioButton.getModel()) {
                anchor = SpriteClip.AnchorType.BL;
            }else if (selectedModel == bcRadioButton.getModel()) {
                anchor = SpriteClip.AnchorType.BC;
            }else if (selectedModel == brRadioButton.getModel()) {
                anchor = SpriteClip.AnchorType.BR;
            }else {
                anchor = SpriteClip.AnchorType.CC;
            }

            spriteClipper.reshapeSprites(ssPane.getSelectedClips(), anchor);
        } catch (Exception e) {
            exceptionDialog(e);
        }        
    }//GEN-LAST:event_reshapeButtonActionPerformed