org.openjump.swing.factory.component
Interface ComponentFactory<T extends java.awt.Component>


public interface ComponentFactory<T extends java.awt.Component>

The ComponentFactory is used to create instances of the Component type T.

Author:
Paul Austin

Method Summary
 T createComponent()
          Create an instance of the component.
 javax.swing.Icon getIcon()
          Get the icon for the component.
 java.lang.String getName()
          Get the display name of the component.
 java.lang.String getToolTip()
          Get the tool-tip for the component.
 

Method Detail

createComponent

T createComponent()
Create an instance of the component.

Returns:
The new component instance.

getName

java.lang.String getName()
Get the display name of the component. Used in the UI as a Frame or menu title.

Returns:
The name.

getIcon

javax.swing.Icon getIcon()
Get the icon for the component.

Returns:
The icon.

getToolTip

java.lang.String getToolTip()
Get the tool-tip for the component.

Returns:
The tool-tip.