String () { String path = (String)myPathField.getComboBox().getEditor().getItem(); String type = getFillRbGroup().getSelection().getActionCommand().replace('-', '_'); String anchor = getAnchorRbGroup().getSelection().getActionCommand().replace('-', '_'); int flip = (myFlipHorCb.isSelected() ? 1 : 0) << 1 | (myFlipVerCb.isSelected() ? 1 : 0); return path.trim() + "," + myOpacitySpinner.getValue() + "," + StringUtil.toLowerCase(type + "," + anchor) + (flip == 0 ? "" : "," + (flip == 3 ? "flipHV" : flip == 2 ? "flipH" : "flipV")); }