It would be very helpful to be able to
override the GraphToolBar which is
currently a hardcoded default. I
realize there are complications with
doing this, since GraphToolBar is
currently tightly coupled with the
Graph, using mostly package-accessible
members.
In my case, this is necessary for I am
implementing an applet version of the
graph and hence the file open/save
buttons do nothing but throw
exceptions. Other functions may be
needed by anyone needing to integrate
openjgraph into their application.
It would seem that the cleanest way to
do this would be to have an interface
for GraphToolBar which would have a
mandatory constructor that would take
a Graph reference (should be enough?).
The member variables which are
currently package accessible should
probably get accessor methods...
GraphToolBarImpl can then be the new
name for GraphToolBar.
Also, as an aside, it may be
beneficial to have the ability to shut
off editing of the graph, something
like "graph.setEditable(boolean)"
which would cause all modication
features to be suppressed (perhaps not
moving objects, but creating/deleting
them)