public void setColor(AddressType type, Color newColor) {
		ToolOptions options = tool.getOptions(OPTIONS_NAME);
		switch (type) {
			case DATA:
				options.setColor("Data Color", newColor);
				break;
			case EXTERNAL_REF:
				options.setColor("External Reference Color", newColor);
				break;
			case FUNCTION:
				options.setColor("Function Color", newColor);
				break;
			case INSTRUCTION:
				options.setColor("Instruction Color", newColor);
				break;
			case UNDEFINED:
				options.setColor("Undefined Color", newColor);
				break;
			case UNINITIALIZED:
				options.setColor("Uninitialized Color", newColor);
				break;
			default:
				break;

		}
	}
Sets the color to be associated with a given {@link AddressType}

@param type the AddressType for which to assign the color.
@param newColor the new color for the given {@link AddressType}
Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/overview/addresstype/AddressTypeOverviewColorService.java