class View { String shortname = ""; boolean awakened = false; Gui gui = null; Axes ax = null; Stylesheet styles = null; Toolbar toolbar = null; View() {} // setup that doesn't require knowledge of the screen layout can go in the constructor. Pass arguments to it here. void wakeup(Gui gui) { awakened = true; ax = gui.availableViewSpace(); styles = gui.styles; define(); } void define() { // setup that requires knowledge of the gui, styles, or anything else graphical goes here. Don't pass arguments to this directly; use the constructor. } boolean update() { return false; } void draw() {} boolean offerMousePress() { return false; } }