|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjigcell.compare.ui.CustomizableInterface
public abstract class CustomizableInterface
Interface for a ProgrammableDataGenerator.
This code is licensed under the DARPA BioCOMP Open Source License. See LICENSE for more details.
| Field Summary | |
|---|---|
protected java.util.Map |
customizers
Customizers managed by this view |
protected static java.util.Map |
DESCRIPTION_INPUT
Description for the input of a generator |
protected static java.util.Map |
DESCRIPTION_OUTPUT
Description for the output of a generator |
protected IProgrammableDataGenerator |
generator
Generator |
protected java.lang.Object |
LOCK_CUSTOMIZERS
Lock for manipulating customizers map |
protected InterfaceBuilder |
manager
Interface manager |
protected MenuBuilder |
menuManager
Builds menus for the interface |
protected boolean |
multipleViewSupport
Whether this interface support multiple, simultaneous views |
static java.lang.String |
PATH_DESCRIPTION_INPUT
Path fragment where input description is stored |
static java.lang.String |
PATH_DESCRIPTION_OUTPUT
Path fragment where output description is stored |
static java.lang.String |
PATH_HELP
Path where help files are stored |
protected javax.swing.JPopupMenu |
popup
Context menu |
static java.lang.String |
POPUP_DEFAULT
Default name for the popup menu |
protected static java.lang.String |
PROPERTY_CUSTOMIZERNAME
Component client property for customizer name |
| Fields inherited from interface jigcell.compare.ICustomizableInterface |
|---|
DIMENSION_HELP, OPTION_INPUTDESCRIPTION, OPTION_OUTPUTDESCRIPTION |
| Constructor Summary | |
|---|---|
CustomizableInterface(IProgrammableDataGenerator generator)
Creates a new interface for a ProgrammableDataGenerator. |
|
| Method Summary | |
|---|---|
protected abstract javax.swing.JComponent |
createCustomizer()
Generates a new customizer for the generator. |
javax.swing.JComponent |
createCustomizer(java.lang.String name)
A customization component for a generator. |
protected javax.swing.JPopupMenu |
createPopup()
Creates a context menu for the view. |
protected void |
decorateCustomizer(javax.swing.JComponent component)
Applies standard decorations to a customizer. |
void |
destroyCustomizer(java.lang.String name)
Destroys a customization component created by this interface. |
protected Compare |
getCompare()
Comparator for the generator. |
IComponentDescription |
getInputDescription()
A description of the input of this data source. |
IComponentDescription |
getOutputDescription()
A description of the output of this data source. |
boolean |
hasMultipleViewSupport()
Whether this interface supports multiple, simultaneous views. |
void |
mouseClicked(java.awt.event.MouseEvent e)
|
void |
mouseEntered(java.awt.event.MouseEvent e)
|
void |
mouseExited(java.awt.event.MouseEvent e)
|
void |
mousePressed(java.awt.event.MouseEvent e)
|
void |
mouseReleased(java.awt.event.MouseEvent e)
|
protected void |
setInputDescription(IComponentDescription description)
Sets an HTML formatted description of the input of this generator. |
protected void |
setMultipleViewSupport(boolean multipleViewSupport)
Sets whether this interface supports multiple views. |
protected void |
setOutputDescription(IComponentDescription description)
Sets an HTML formatted description of the output of this generator. |
void |
updateInterface(java.lang.String propertyName)
Updates customizers based on the generator state. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String PATH_HELP
public static final java.lang.String PATH_DESCRIPTION_INPUT
public static final java.lang.String PATH_DESCRIPTION_OUTPUT
public static final java.lang.String POPUP_DEFAULT
protected static final java.util.Map DESCRIPTION_INPUT
protected static final java.util.Map DESCRIPTION_OUTPUT
protected static final java.lang.String PROPERTY_CUSTOMIZERNAME
protected boolean multipleViewSupport
protected final InterfaceBuilder manager
protected final IProgrammableDataGenerator generator
protected transient javax.swing.JPopupMenu popup
protected final transient java.util.Map customizers
protected transient MenuBuilder menuManager
protected final transient java.lang.Object LOCK_CUSTOMIZERS
| Constructor Detail |
|---|
public CustomizableInterface(IProgrammableDataGenerator generator)
generator - Generator| Method Detail |
|---|
public javax.swing.JComponent createCustomizer(java.lang.String name)
createCustomizer in interface ICustomizableInterfacename - Identifying name for the customizer. Each unique expected usage of a customizer should have a distinct name.public void destroyCustomizer(java.lang.String name)
destroyCustomizer in interface ICustomizableInterfacename - Identifying name for the customizerpublic IComponentDescription getInputDescription()
getInputDescription in interface ICustomizableInterfacepublic IComponentDescription getOutputDescription()
getOutputDescription in interface ICustomizableInterfacepublic boolean hasMultipleViewSupport()
hasMultipleViewSupport in interface ICustomizableInterfacepublic void mouseClicked(java.awt.event.MouseEvent e)
mouseClicked in interface java.awt.event.MouseListenerpublic void mouseEntered(java.awt.event.MouseEvent e)
mouseEntered in interface java.awt.event.MouseListenerpublic void mouseExited(java.awt.event.MouseEvent e)
mouseExited in interface java.awt.event.MouseListenerpublic void mousePressed(java.awt.event.MouseEvent e)
mousePressed in interface java.awt.event.MouseListenerpublic void mouseReleased(java.awt.event.MouseEvent e)
mouseReleased in interface java.awt.event.MouseListenerpublic void updateInterface(java.lang.String propertyName)
updateInterface in interface ICustomizableInterfacepropertyName - Name of the property that changed or null to indicate that all properties may have changedprotected abstract javax.swing.JComponent createCustomizer()
protected javax.swing.JPopupMenu createPopup()
protected void decorateCustomizer(javax.swing.JComponent component)
component - Customizerprotected Compare getCompare()
protected void setInputDescription(IComponentDescription description)
description - Input descriptionprotected void setMultipleViewSupport(boolean multipleViewSupport)
multipleViewSupport - Whether this interface supports multiple, simultaneous viewsprotected void setOutputDescription(IComponentDescription description)
description - Output description
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||