JGraphpad Pro
v6.0.5.0


com.jgraph.editor.factory
Class JGraphEditorFactoryMethod

java.lang.Object
  extended bycom.jgraph.editor.factory.JGraphEditorFactoryMethod
Direct Known Subclasses:
JGraphEditorComboBox.BorderComboFactoryMethod, JGraphEditorComboBox.DashPatternComboFactoryMethod, JGraphEditorComboBox.LineDecorationComboFactoryMethod, JGraphEditorComboBox.LineWidthComboFactoryMethod, JGraphEditorNavigator.FactoryMethod, JGraphpadComboBox.ColorComboFactoryMethod, JGraphpadComboBox.VertexShapeComboFactoryMethod, JGraphpadConsole.FactoryMethod, JGraphpadLibraryPane.FactoryMethod, JGraphpadOpenRecentMenu, JGraphpadPane.BottomTabFactoryMethod, JGraphpadPane.FactoryMethod, JGraphpadPane.LeftTabFactoryMethod, JGraphpadStatusBar.FactoryMethod, JGraphpadWindowMenu.FactoryMethod

public abstract class JGraphEditorFactoryMethod
extends Object

Defines the basic implementation of a factory method.


Field Summary
protected  String name
          Holds the name.
 
Constructor Summary
JGraphEditorFactoryMethod(String name)
          Constructs a new factory method using the specified name.
 
Method Summary
abstract  Component createInstance(Node configuration)
          Returns a new component for the specified configuration.
 String getName()
          Returns the name of the factory method.
 void setName(String name)
          Sets the name of the factory method.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

name

protected String name
Holds the name.

Constructor Detail

JGraphEditorFactoryMethod

public JGraphEditorFactoryMethod(String name)
Constructs a new factory method using the specified name.

Parameters:
name - The name of the factory method to construct.
Method Detail

createInstance

public abstract Component createInstance(Node configuration)
Returns a new component for the specified configuration.

Parameters:
configuration - The configuration to create the component with.
Returns:
Returns a new component.

getName

public String getName()
Returns the name of the factory method.

Returns:
Returns the name.

setName

public void setName(String name)
Sets the name of the factory method.

Parameters:
name - The name to set.

JGraphpad Pro
v6.0.5.0


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