CMSC 498B: Developing User Interfaces - Spring 2005Drawing Architectures | |
Drawing ArchitecturesFunctions
Interaction
Data Structures
Expense
Sample codeThis code implements a basic arbitrary object drawing architecture with support for simple selection. Java: Glyph.java
RectGlyph.java
Scene.java
Application.java How would we:
Double BufferingWithout care, animated displays will flicker Due to user seeing sequence of render actions - background cleared, then items drawn back to front In Java, create offscreen buffer (or "back buffer"). Render onto that, and then copy entire back buffer to screen at once. This eliminates flicker, and can be faster for some display hardware - but uses more memory. ToolkitsPiccolo.NET - A zoomable structured object manager |