Hi list,
now for already some time I am looking for an extended version of the Java
TextWindow resp. ResultTable.
I also think that some of these extensions "might benefit all users"......
What I am looking for is:
1) Ability to select the font programmatically, especially monospaced fonts
2) Add a printout capability to the TextWindow that tries to acchieve a
minimum WYSIWYG (the width of the TextWindow being mapped to the paper
width,
the font size adjusted accordingly)
3) Have the line spacing "fixed", IMHO in the current TextWindow the line
spacing is way too large (too much empty space between the lines),
compare it to the appearence of the same contents in an Editor window!
4) Ability to specify the initial size of the TextWindow in character/line
units
As the respective classes TextWindow, TextPanel and TextCanvas are all part
of the package "ij.ext", I first tried what I can get with extending the
TextWindow class.
Respective the "features" mentioned above:
1) You can do this once with getting a reference to the underlying
TextPanel, BUT the font setting is completely lost when somebody uses "Make
Text Larger/Smaller"
(I have not yet looked deeper if I can somehow override this)
2) I can extend the menu bar of the Text Window and a print capability,
copying some of the code from the Editor class, but have not yet fixed the
Font adjustment issues
3) Here there seems to exist no chance, the spacing is determined by some
private variable of the underlying TextCanvas class
4) Could probably work if the other issues are fixed.
I know that the Editor class itself already can do some of the things I
would like to see and I do not need the "tabbed columns" capability in my
case,
however using the Editor for it seems a bit overblown and it would be
useful to add a "readonly" flag to the Editor class so that it can be
filled/changed programmatically
(and not by the user vias keyboard etc.)
(Actually, when you create a new "Text Window" from the "Plugins/New..."
Menu, also an Editor window is created, even including capability 4), but
this does not yet seem to work
correctly)
Any suggestions?
Sincerely
Mit freundlichen Grüßen / Best regards
Joachim Wesner
____________________________________________
Leica Microsystems CMS GmbH | GmbH mit Sitz in Wetzlar | Amtsgericht
Wetzlar HRB 2432
Geschäftsführer: Dr. Stefan Traeger | Dr. David Roy Martyr | Colin Davis
www.leica-microsystems.com
______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit
http://www.messagelabs.com/email
______________________________________________________________________