* @param editor
* The editor for which to create an editor factory.
* @return Returns a configured editor factory for the specified editor.
*/
protected JGraphEditorFactory createFactory(final JGraphEditor editor) {
JGraphEditorFactory factory = new JGraphEditorFactoryEx(editor.getKit()) {
public JGraph createGraph(GraphLayoutCache graphLayoutCache) {
return jgraphpad.createGraph(editor, graphLayoutCache);
}
};
configureFactory(editor, factory);