JGraphpad Pro
v6.0.5.0


com.jgraph.pad.factory
Class JGraphpadPane.FactoryMethod

java.lang.Object
  extended bycom.jgraph.editor.factory.JGraphEditorFactoryMethod
      extended bycom.jgraph.pad.factory.JGraphpadPane.FactoryMethod
Enclosing class:
JGraphpadPane

public static class JGraphpadPane.FactoryMethod
extends JGraphEditorFactoryMethod

Provides a factory method to construct an editor pane.


Field Summary
protected  JGraphEditor editor
          References the enclosing editor.
static String NAME
          Defines the default name for factory methods of this kind.
static String NODENAME_MENUBAR
          Node name used for menu configurations.
static String NODENAME_TOOLBAR
          Node name used for toolbar configurations.
static String NODENAME_TOOLBOX
          Node name used for toolbox configurations.
 
Fields inherited from class com.jgraph.editor.factory.JGraphEditorFactoryMethod
name
 
Constructor Summary
JGraphpadPane.FactoryMethod(JGraphEditor editor)
          Constructs a new factory method for the specified enclosing editor using NAME.
 
Method Summary
 Component createInstance(Node configuration)
          Returns a new component for the specified configuration.
protected  String getWindowTitle(JGraphpadPane pane)
          Hook for subclassers to return the window title for the specified editor pane.
 
Methods inherited from class com.jgraph.editor.factory.JGraphEditorFactoryMethod
getName, setName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NAME

public static String NAME
Defines the default name for factory methods of this kind.


NODENAME_MENUBAR

public static final String NODENAME_MENUBAR
Node name used for menu configurations.

See Also:
Constant Field Values

NODENAME_TOOLBAR

public static final String NODENAME_TOOLBAR
Node name used for toolbar configurations.

See Also:
Constant Field Values

NODENAME_TOOLBOX

public static final String NODENAME_TOOLBOX
Node name used for toolbox configurations.

See Also:
Constant Field Values

editor

protected JGraphEditor editor
References the enclosing editor.

Constructor Detail

JGraphpadPane.FactoryMethod

public JGraphpadPane.FactoryMethod(JGraphEditor editor)
Constructs a new factory method for the specified enclosing editor using NAME.

Parameters:
editor - The editor that contains the factory method.
Method Detail

createInstance

public Component createInstance(Node configuration)
Description copied from class: JGraphEditorFactoryMethod
Returns a new component for the specified configuration.

Specified by:
createInstance in class JGraphEditorFactoryMethod
Parameters:
configuration - The configuration to create the component with.
Returns:
Returns a new component.

getWindowTitle

protected String getWindowTitle(JGraphpadPane pane)
Hook for subclassers to return the window title for the specified editor pane. This implementation appens the parent file title for the focused diagram or library using JGraphpadFileAction.getPermanentFocusOwnerFile() and JGraphpadPane.getFileTitle(JGraphEditorFile) to JGraphpad.APPTITLE.

Parameters:
pane - The editor pane to create the title for.
Returns:
Returns the window title.

JGraphpad Pro
v6.0.5.0


Copyright (C) 2005 JGraph.com. All rights reserved.