| |||||||||||
|
This demo shows the room bookings for a college classroom, color coded by the department offering the course. The Add button adds predefined bookings and the Remove button removes selected bookings. Clicking on a booking selects it, and control-clicking adds to the selection. The Change button executes several predefined changes if the affected bookings are visible in the diagram. Click on the screen shot to run the applet. Java Web Start The demo's data model, ScheduleData, extends the toolkit's simple data model class to hold a collection of Booking instances. The toolkit's element model instantiates display elements automatically for the data objects. The demo's display element class, ScheduleElement, calculates the rectangle for each booking based on the day and time of the booking. The Add, Remove and Change buttons modify the data. The main program, Schedule, assembles the demo. The background image displays the schedule outline. Renderers are configured in the schedule.rdr file. Shape and Text renderers display the bookings. | |||||||||||
|
Copyright © 2001-2007 Apprisant Technologies Inc. | |||||||||||