The best definition of an allegory is to define it as a mode of expression or interpretation which consists of representing thoughts, ideas, qualities in figurative form.
It is generally treated as a figure of rhetoric. An allegory does not have to be expressed in language: it can be directed to the eyes and is often found in painting, sculpture, or another form of mimetic art.