SoftwareSphere Home

JPage class library

JPage is a set of Java components for the construction of documents that must be printed on paper or previewed on the screen. JPage contains components to draw boxes, text with variable font and color, tables, images, various kind of charts an geographical maps. JPage manages document printing and print previewing with a GUI component with zoom and scroll functions.

Main features

JPage is rich of functionalities and properties. JPage is highly extensible: new special types of boxes may be added provided they have the methods declared in the base interfaces. JPage is very accurate in drawing shapes and text. Computations are always done in floating point variables. The JPage components can be used both in stand-alone Java applications and in Java applets.

Current available box types

TextBox a box filled with text of variable format. The text can be aligned left or right, or can be centered or justified.
ImageBox a box containing a rectangular image that can be aligned in various ways in the box, zoomed or stretched.
PlotBox a box that draws a two-axis cartesian plot with a lot of properties to change the appearance of axis, grid, lines, etc.
PieBox a box that draws a pie chart or area chart with labels and automatic color assignment.
HistogramBox a box that draws an histogram chart with vertical columns and continuous vertical axis.
TableBox a very flexible box to draw a table with customizable cells, mergeable cells, cell borders etc.
MapBox a box to draw geographical maps in two kinds of projection: simple cartesian linear axis for latitude and longitude and orthogonal projection. The mapbox manages drawing of polygons and symbols given their geographical coordinates.

Requirements

JPage has been developed with the Sun JDK version 1.3. It has been tested with both 1.3 and 1.4 versions of the Java Runtime Environment. It should work also with 1.2 version.

Demo

You can see a working demo of the library if your browser has Java enabled. When the applet starts it has to create a print job in memory so the browser will ask you if you want to allow that. This demo does not print anything, it only creates the print preview. To see the print preview you have to allow the applet access to the printer at least for this time.

Click here if you have Java version 1.4 or greater
Click here if you have Java version 1.3