15 refactoring graphic device class

#15 #16対応。