public void setAlignmentType(AlignmentType alignmentType, int explicitValue) {
		viewDTM.withTransaction("Set Alignment", () -> {
			AlignmentType currentAlignType = getAlignmentType();
			if (alignmentType == AlignmentType.DEFAULT) {
				if (currentAlignType == AlignmentType.DEFAULT) {
					return;
				}
				viewComposite.setToDefaultAligned();
			}
			else if (alignmentType == AlignmentType.MACHINE) {
				if (currentAlignType == AlignmentType.MACHINE) {
					return;
				}
				viewComposite.setToMachineAligned();
			}
			else {
				if (currentAlignType == AlignmentType.EXPLICIT &&
					explicitValue == viewComposite.getExplicitMinimumAlignment()) {
					return;
				}
				viewComposite.setExplicitMinimumAlignment(explicitValue);
			}
		});
		if (fixSelection()) {
			selectionChanged();
		}
		notifyCompositeChanged();
	}
Return the (minimum) alignment type for the structure or union being viewed
@return the alignment type
Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/compositeeditor/CompEditorModel.java