Using JDoc's Class Libraries
For the Java programmer, both novice and advanced, JDoc's classes provide all the
benefits of any Java class library. You can easily:
- Create instances of any JDoc object from within your own code, setting its properties
and utilizing its methods.
- Extend any class by defining a Java subclass to provide additional functionality.
- Use and distribute JDoc's class library in your own applets and applications without
additional license fees.
See our detailed documentation
for JDoc's classes, including specification of all variables and methods.
Many of us, however, dislike plowing through manuals and would rather jump right in and
get started playing with code to get a job underway. If that's your style, take a look at
the java source code for the ready-to-use programs and other high-level classes supplied
with JDoc:
- JDoc. The basic applet
that renders HTML pages in a frameless window, with optional scrollbars. Also take a look
at the DocumentPanel
class in which JDoc's main work is accomplished.
- JDocViewer. An
enhanced JDoc window with banner and a footer featuring a few basic navigation controls.
- JDocViewerApp. The JDocViewer deployed
as a stand-alone, Java console application rather than an applet.
- JImage. A stand-alone
image-display applet including optional wrapped caption.
- JText. A stand-alone
text-display applet that wraps text within a user-supplied width and features optional
horizontal rules.
- WebApplet and WebFrame. The parent classes for most of
EarthStones applets and applications, respective. They handle the optional splash panel
(see SplashPanel class) and other tasks
associated with getting a complex program up and running.
- WebSite, Web, and Site. These behind-the-scenes
objects are responsible for linking JDoc's data model with the elements of the user
interface. Inter- (and Intra-)
Applet Communication Tips provides further information.
- SelectRes. A stand-alone implementation of
features of EarthStones' AutoResTM technology. This nonvisual utility applet
determine's viewer's screen resolution and loads a corresponding file into a specified
frame.