CAIP's XML Supported WhiteBoard Java Bean
Contents
-
Introduction
-
Download and Installation
-
Running the WhiteBoard in DISCIPLE
-
User's
Manual
-
Design Documentation
-
Java API
Specification for Multiple Document Environment
-
Bug Report
-
Contact Information
Introduction
A whiteboard application is a tool that contains a space into which a user
can draw graphics. At minimum, the user should be able to simulate drawing
into the space with a pen or set of pens. More elaborate whiteboards provide
shape drawing abilities such that a user could quickly construct a drawing
containing rectangles, ellipses, lines, curves, etc.
In the DISCIPLE Project a WhiteBoard Java Bean has been developed using
the Multi-Document Editor Framework. This Bean provides a
fully functioning multi-document interface that allows a user to construct
complex 2D graphical drawings into one or more documents (spaces). It resembles
Microsoft's PowerPoint in its functionality. (NOTE: this whiteboard
is not a bitmap editor, so images cannot be edited). By utilizing
the capabilities of the JFC
(Java Foundation Classes) within the JDK (Java Development Kit) Version
1.2, a variety of powerful features are available within the whiteboard.
The key features are as follows:
-
Multi-Document Interface. The WhiteBoard contains a multi-document
interface such that a user can work on more than one document at a time.
A document can be created, opened or save at any time. Also, figures can
be cut/copied/pasted between documents.
-
Variety of Figures Available. A selection of figures comes
with the whiteboard. A user can easily construct rectangles, lines, arrows,
curves, free-hand drawings, images and text within each whiteboard document.
-
Figure Properties Modification. A user can alter a figure's
properties at any time. For instance, a rectangle could be modified such
that its color is red and its outline is a thick, blue, dashed line. The
appearance of text could also be adjusted by changing its font, font size,
and color. Figures can also be grouped/ungrouped along with being ordered
to appear in front of or behind other figures.
-
View Adjustments. Each document's view can be adjusted by
the user such that it can be scrolled horizontally or vertically and zoomed
in or out.
-
File Opening/Saving. A user can open or save a document anytime.
Documents are saved in XML (eXtensible
Markup Language) document format. In essence, the whiteboard is an
XML browser, with custom defined style sheets.
This application comes already packaged in a JAR file, ready to use as
a JavaBean within the DISCIPLE
collaboration framework or any environment that supports Java Beans (e.g.,
IBM VisualAge, Symantec VisualCafe, etc.). It is also a Java applet
and can be run in the appletviewer
or in a Web browser which supports JDK 1.2. At this time none of the major
Web browsers do so, but look for more information below.
When running within the DISCIPLE framework, the WhiteBoard behaves as
a collaboration-aware application in the sense that it knows that it is
shared by multiple users simultaneously. The WhiteBoard takes advantage
of this knowledge to improve the performance and to facilitate the group
work.
Download and Installation
If you want to run the WhiteBoard as an Applet, follow the steps below.
To run it, use appletviewer, which is supplied by Javasoft as
part of JDK1.2. The Applet will not work in any currently available browser
since there is no support for JFC classes, but you can download a plug-in
for JDK 1.2. (NOTE: Make sure you get plugins for JDK 1.2, not JDK
1.1 !!) After installing the new JRE, check the demo applets on JavaSoft's
site to see if the installation was carried out successfully. If it doesn't
work (most probably it will not) then follow the instructions on this
page.
NOTE: Do not try to run this version in the DISCIPLE framework.
DISCIPLE accepts only jarred beans, and WhiteBoard is already packaged
with the DISCIPLE software itself. If you still wish to download the latest
version of the WhiteBoard to run in DISCIPLE then you may download the
WhiteBoard JAR file by right clicking here
and selecting the "Save link as" option to download it to local
directory.Also see:
Further instructions
System Requirements
What is required to use with the WhiteBoard:
-
Personal or Multimedia computer with an Intel Pentium or higher processor.
-
Microsoft Windows 95 or 98 operating system, or Windows NT Workstation
4.0 with Service Pack 3 or later.
-
16 MB of RAM or more.
-
VGA or higher-resolution video adapter (Super VGA, 256-color recommended).
-
Microsoft Mouse, Microsoft IntelliMouse, or compatible pointing device.
-
Java Development Kit version 1.2.
-
JDK 1.2 plug-ins
(to run the whiteboard in a Web browser)
Download and Run in Appletviewer
-
Make sure that JDK 1.2 (final release) is installed as the default
Java environment on your system.
-
Download the Windows
version of the WhiteBoard class files.
OR
Download the UNIX
version the WhiteBoard class files.
-
Extract all of the files into a separate directory on your hard disk (e.g.,
on the Windows system D:\Java\WhiteBoard).
-
Add the directory into the CLASSPATH environment variable.
Here is an example for the Windows system:
set CLASSPATH=.;%JAVA_HOME%\lib\classes.zip;D:\Java\WhiteBoard
OR for the UNIX system:
export CLASSPATH=.:${JAVA_HOME}/lib/classes.zip:/usr/local/WhiteBoard
(Look at your operating system documentation for specifics on how to
set the environment variables.)
-
To run the WhiteBoard Bean on Windows (or unix) , go to the root directory
of the WhiteBoard and type : appletviewer whiteboard.html
WARNING: Applets don't allow direct access to files and other system
properties. So do not try to open or save any files.
Source Code
The WhiteBoard's Java source code for Windows can be downloaded
from here.
Click here
to download the the source code for UNIX.
Running the WhiteBoard Collaboratively in DISCIPLE
To run the WhiteBoard within the DISCIPLE Desktop, download the latest
desktop from here.
Follow the instructions to install and run DISCIPLE. WhiteBoard can be
loaded through the DISCIPLE bean browser.
Screen snapshot of the WhiteBoard Bean in the DISCIPLE Desktop:
Design Documentation
WhiteBoard software design documentation describes object-oriented analysis
and design of the multi-document editor framework and the tutorial example
of how the whiteboard is built using this framework. This document includes
the textual description of the software along with the relevant class and
sequence diagrams defined using Unified Modeling Language (UML).
Download design document: MS
Word file (427 Kbytes)
Bug Report
Here is the list of known bugs:
-
Maximizing any document window of the WhiteBoard causes erratic behaviour,
e.g., title bars and the toolbars vanish, etc. This is presumed to be a
bug in the Swing/JFC.
-
The display for the zooming factors not listed in the ComboBox works correctly
for the local user, but the remote users will see the nearest value listed
in the ComboBox.
-
Dragging the toolbars out of the main window causes erratic behavior, e.g.,
it sometimes disappears or when returned back, it occupies the entire workspace.
-
The size of the WhiteBoard workspace is fixed to the length of the toolbar,
so if the main window is larger, the workspace will not cover it entirely.
-
Grouping large figures, e.g., large pictures, doesn't work properly for
remote users due to the communication problems with iBus.
These options are under construction and still not available:
Contact Information
Questions? Comments? Bugs? Please send e-mail to the
DISCIPLE Group at the
CAIP Center, Rutgers University and we will promptly answer your concerns.
Back to
-
DISCIPLE Home Page
-
CAIP Center
-
Rutgers, The State University of New
Jersey
Last update: August 18, 1999