Logo Search packages:      
Sourcecode: matplotlib version File versions

resource_factory.py

00001 """ Default base-class for resource factories. """


00004 class ResourceFactory:
    """ Default base-class for resource factories. """
    
    ###########################################################################
    # 'ResourceFactory' interface.
    ###########################################################################

00011     def image_from_file(self, filename):
        """ Creates an image from the data in the specified filename. """
        
        raise NotImplemented

00016     def image_from_data(self, data):
        """ Creates an image from the specified data. """
        
        raise NotImplemented
    
#### EOF ######################################################################

Generated by  Doxygen 1.6.0   Back to index