Displays the open file dialog, where you can select a document
to be opened. You can either open .class or .jar documents.
If you select multiple files, they will all be opened in the
same window, as will be the classes in a .jar archive.
Note: .jar support depends on a 'jar.exe' program, whose
location you can specify in the Settings:JAR
menu. The jar.exe will be called exactly like this:
<full path to jar.exe> vxf <full name of .jar file
>.
This should extract all the .class files from the .jar to the
same directory, from where JUG tries to read them.
The 'vxf' option works with the JRE 1.3.0_02 from sun.com. Let
me know if
this should be more customizable or you know of a better
solution. (If I find some free decoder lib for .jar files I
will add native support for JAR to JUG of course.)
Displays the save file dialog, where you can select the
filename for a document to be saved as. You can either save
the diagrams as .emf or .eps for now. Note however, that there
is only direct support for the .emf format. To save as .eps,
you need an eps printer driver. (Available for free from
Adobe for example) You can select the printer driver to use
in the Settings Menu. The saved document will contain exactly
what is displayed in the main window, including the margin.
See the format menu for a way to disable
the margin.
One weak point of .eps files is the handling of the
bounding box. Where you can just pass the coordinates to
emf files which are directly supported, with eps the bounding
box is first passed to the printer driver. And the printer
might decide to just print on a default paper format, like
<letter> or <A4> (Normally it should work
however). If you happen to know of a free eps printer driver
which could be included with JAR, let
me know.
(Upon request, future versions will correct the bounding box
entry in .eps files before writing them to disk, to work
around bad printer behaviour.)
Closes the active document, without saving. Note, that you currently can't change anything in the diagram, so there is no point saving it anyway. 'Save' just exports it to .emf / .eps.
Opens a dialog where you can print the active document.
Closes all open documents without saving, and exits the application.
Let's you specify the font and color in which to display text.
Select the color for highlighted text here.
Selects the color for the class diagram background.
Selects the color for the frame drawn around classes, and for the ruler lines in the class diagrams.
Turns the margin on or off.
Shows the types of properties and methods in the class.
Includes private fields in the class diagram.
Includes protected fields in the class diagram.
Includes any special information found in the class file.
I don't know much .java, but this displays the constructors
(called <init>) and some other generated methods, recognized
by their names starting with '$' (?)
Anyone who can enlighten me on this - and knows better ways to
use (or hide) that information, tell me.
Before saving to the .eps format, you should select the eps printer driver to use here. Otherwise, you will just receive an error message.
Before attempting to load .jar files, you tell the JUG application the location of jar.exe here. Ideally, this should be autodetected. (or better even, if there is any free .jar library out there, native support could be added. (See the Open Command.)