org.grinvin.factories

Class AbstractNamedFactory

Implemented Interfaces:
Factory, NamedFactory
Known Direct Subclasses:
AbstractGraphFactory, AbstractGraphGenerator

public class AbstractNamedFactory
extends AbstractFactory
implements NamedFactory

Common superclass of various visual graph factory classes. Provides support for loading various properties from an xml configuration file

Field Summary

protected InternationalizedProperties
factoryProps
Internationalized properties associated with this factory.

Fields inherited from class org.grinvin.factories.AbstractFactory

list, valueStrings, values

Constructor Summary

AbstractNamedFactory(String type)
Default constructor.

Method Summary

String
getDescription()
String
getIconPath()
Return the URI of the factory icon when the factory is not selected.
String
getId()
Return the fully qualified class name of this factory as its id.
String
getLongName()
String
getName()
String
getSelectedIconPath()
Return the URI of the factory icon when the factory is selected.

Methods inherited from class org.grinvin.factories.AbstractFactory

checkParameters, getParameterValues, getParameters, getParametersAsString, setParameterValues

Field Details

factoryProps

protected InternationalizedProperties factoryProps
Internationalized properties associated with this factory.

Constructor Details

AbstractNamedFactory

public AbstractNamedFactory(String type)
Default constructor.
Parameters:
type - String identifying the type of this factory.

Method Details

getDescription

public String getDescription()
Specified by:
getDescription in interface NamedFactory

getIconPath

public String getIconPath()
Return the URI of the factory icon when the factory is not selected.
Specified by:
getIconPath in interface NamedFactory

getId

public String getId()
Return the fully qualified class name of this factory as its id.

getLongName

public String getLongName()
Specified by:
getLongName in interface NamedFactory

getName

public String getName()
Specified by:
getName in interface NamedFactory

getSelectedIconPath

public String getSelectedIconPath()
Return the URI of the factory icon when the factory is selected.
Specified by:
getSelectedIconPath in interface NamedFactory