Abstracted out color implementation from the API and provided color factory for the swing implementation.