private void renderEnumEntry(EnumEntry entry, int maxNameLength, int maxValueLength) {
		String name = entry.name;
		name = pad(name, maxNameLength);
		String valStr = Long.toHexString(entry.value);
		valStr = pad(valStr, maxValueLength);
		insertString("    " + name, fieldNameAttrs);
		insertString(" = 0x" + valStr, contentAttrs);
		if (entry.comment != null) {
			insertString("   " + entry.comment, commentAttrs);
		}
		insertString("\n", contentAttrs);
	}
Panel to show the contents of a Data Type.
Ghidra/Features/Base/src/main/java/ghidra/app/merge/datatypes/DataTypePanel.java