encapsulated graphic library