|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
jigcell.compare.ui.PanelTab
jigcell.compare.ui.DataEditorPanelTab
jigcell.compare.views.ProgrammableDataGeneratorEditor
public abstract class ProgrammableDataGeneratorEditor
Supports shared functionality between the transform and objective editors.
This code is licensed under the DARPA BioCOMP Open Source License. See LICENSE for more details.
| Nested Class Summary | |
|---|---|
protected class |
ProgrammableDataGeneratorEditor.SetReadHelper
Helper class for performing read operations on other threads. |
| Nested classes/interfaces inherited from class jigcell.compare.ui.DataEditorPanelTab |
|---|
DataEditorPanelTab.ReadHelper |
| Nested classes/interfaces inherited from class javax.swing.JPanel |
|---|
javax.swing.JPanel.AccessibleJPanel |
| Nested classes/interfaces inherited from class javax.swing.JComponent |
|---|
javax.swing.JComponent.AccessibleJComponent |
| Nested classes/interfaces inherited from class java.awt.Container |
|---|
java.awt.Container.AccessibleAWTContainer |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy |
| Field Summary | |
|---|---|
protected static java.lang.String |
BUTTON_ADD
Label for add button |
protected javax.swing.JViewport |
customizer
Customizer for object |
protected java.util.List |
localNames
List of object names created in this editor |
protected IDataGeneratorList |
localObjects
List of objects created in this editor |
protected java.lang.String |
NAME_CUSTOMIZERS
Name for customizers requested by this component |
protected java.util.List |
names
Selectable object names |
protected ListComboBoxModel |
objectModel
Model for object list |
protected IDataGeneratorList |
objects
List of known objects |
protected IDataGeneratorList |
primitives
List of primitives to build objects out of |
protected java.lang.String |
propertyKey
Edit property key to advertise in events |
protected java.lang.String |
resourceKey
Resource key to advertise in events |
protected static java.lang.String |
TITLE_NAMEPOPUP
Title of popup dialog for inputting name |
| Fields inherited from class jigcell.compare.ui.DataEditorPanelTab |
|---|
CONFIG_RECENTSOURCE, CONFIG_RECENTSOURCECOUNT, exception, manager, MENU_OPENRECENT, MENUBAR_DEFAULT, menuManager, menus, MESSAGE_LOADERROR, MESSAGE_LOADING, MESSAGE_SAVEERROR, OPTION_CHOOSEROPEN, OPTION_CHOOSERSAVE, PROPERTY_RECENTSOURCETARGET, READ_LOCK, recentReadablesMenu, TOOLBAR_DEFAULT |
| Fields inherited from class jigcell.compare.ui.PanelTab |
|---|
compare, configMarkers, PATH_ABOUT, PATH_DESCRIPTION_ABOUT, tabName |
| Fields inherited from class javax.swing.JComponent |
|---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
| Fields inherited from class java.awt.Component |
|---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface jigcell.compare.ITab |
|---|
CONFIG_TABNAME, STATE_ENDINITIALIZE, STATE_ENDUI, STATE_INITIALIZE, STATE_RUNNING, STATES |
| Fields inherited from interface java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
ProgrammableDataGeneratorEditor(Compare compare,
java.lang.String configMarker)
Creates a new editor for working with transorm or objective functions. |
|
| Method Summary | |
|---|---|
void |
actionPerformed(java.awt.event.ActionEvent e)
|
void |
add()
Adds a new object. |
abstract void |
add(java.lang.String name)
Adds a new object. |
protected void |
add(java.lang.String name,
IProgrammableDataGenerator object)
Adds a new object. |
protected void |
cleanup(IProgrammableDataGenerator object)
Performs any necessary cleanup operations on an object before it's removed from the view. |
void |
clear()
Deletes all objects owned by this editor. |
void |
clearAndNew()
Create a new data set for editing. |
protected abstract javax.swing.JFileChooser |
createFileChooserSet()
A file chooser specialized for the view. |
protected IDataGeneratorList |
createObjects()
A list of objects for the view. |
protected void |
createPrimitiveList(java.lang.String property)
Constructs a list of primitives for this editor. |
void |
delete(IProgrammableDataGenerator object)
Deletes an object owned by this editor. |
void |
duplicate()
Duplicates the currently selected object. |
abstract void |
duplicate(java.lang.String name)
Duplicates the currently selected object. |
protected void |
indexNames(IDataGeneratorList generators,
java.util.List names)
Creates a sorted index of names from a list of generators. |
protected void |
initialize()
Performs any initialization work for the view. |
void |
loadSet(IReadableDataSource source)
Loads the data for the view from some external source. |
void |
loadSetDirect(IReadableDataSource source)
Loads the data for the view from some external source without user prompting. |
protected java.lang.String |
promptForName(java.lang.String initial,
java.lang.String accept)
Prompts for an object name. |
void |
propertyChange(java.beans.PropertyChangeEvent e)
|
protected void |
readInternal(java.lang.Object readResult)
Processes data that has been read from some external source. |
protected void |
readInternalSet(java.lang.Object readResult)
Imports all of the entries from the range of a data generator map. |
protected void |
readNotify()
Notifies listeners after a read operation has completed. |
void |
rename(IProgrammableDataGenerator object)
Renames an object. |
void |
setCurrentSource(IWriteableDataSource source)
Sets the current data source to work from. |
protected void |
setCustomizerView(IProgrammableDataGenerator object)
Updates the customizer view for the edited object. |
protected void |
updateList()
Updates the internal list of objects to match the master list. |
protected void |
updateNames()
Updates the names of all known objects. |
protected void |
write(IWriteableDataSource source)
Writes data to some external source. |
| Methods inherited from class jigcell.compare.ui.DataEditorPanelTab |
|---|
addRecentSource, createFileChooser, createMenus, createReadableRecentSourceMenuItems, createTools, getCurrentSource, getRecentSource, getRecentSourceCount, load, loadDirect, loadRecentSource, readConfiguration, save, saveDirect |
| Methods inherited from class jigcell.compare.ui.PanelTab |
|---|
createAboutDialog, createAboutDialogForTab, createConfigEditor, createUI, getCompare, getConfigForView, getConfigMarkers, getHostIdentifier, getName |
| Methods inherited from class javax.swing.JPanel |
|---|
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
| Methods inherited from class javax.swing.JComponent |
|---|
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update |
| Methods inherited from class java.awt.Container |
|---|
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusBackward, transferFocusDownCycle, validate, validateTree |
| Methods inherited from class java.awt.Component |
|---|
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusUpCycle |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface jigcell.compare.ui.IDataEditorTab |
|---|
getCurrentSource, load, loadDirect, save, saveDirect |
| Methods inherited from interface jigcell.compare.ITab |
|---|
createAboutDialog, createConfigEditor, getName, readConfiguration |
| Methods inherited from interface java.awt.event.ItemListener |
|---|
itemStateChanged |
| Field Detail |
|---|
protected static final java.lang.String BUTTON_ADD
protected static final java.lang.String TITLE_NAMEPOPUP
protected IDataGeneratorList localObjects
protected IDataGeneratorList objects
protected IDataGeneratorList primitives
protected javax.swing.JViewport customizer
protected java.util.List localNames
protected java.util.List names
protected ListComboBoxModel objectModel
protected final java.lang.String NAME_CUSTOMIZERS
protected java.lang.String propertyKey
protected java.lang.String resourceKey
| Constructor Detail |
|---|
public ProgrammableDataGeneratorEditor(Compare compare,
java.lang.String configMarker)
compare - Comparator backend to interface withconfigMarker - Marker for retrieving configuration information from Comparator backend| Method Detail |
|---|
public void actionPerformed(java.awt.event.ActionEvent e)
actionPerformed in interface java.awt.event.ActionListenerpublic void add()
public abstract void add(java.lang.String name)
name - Name of objectpublic void clear()
clear in interface IDataEditorTabpublic void clearAndNew()
clearAndNew in interface IDataEditorTabpublic void delete(IProgrammableDataGenerator object)
object - Object to deletepublic void duplicate()
public abstract void duplicate(java.lang.String name)
name - Name of new objectpublic void loadSet(IReadableDataSource source)
source - Data source to read frompublic void loadSetDirect(IReadableDataSource source)
source - Data source to read frompublic void propertyChange(java.beans.PropertyChangeEvent e)
propertyChange in interface java.beans.PropertyChangeListenerpropertyChange in class PanelTabpublic void rename(IProgrammableDataGenerator object)
object - Object to renamepublic void setCurrentSource(IWriteableDataSource source)
setCurrentSource in interface IDataEditorTabsetCurrentSource in class DataEditorPanelTabsource - Data source
protected void add(java.lang.String name,
IProgrammableDataGenerator object)
name - Name of objectobject - Objectprotected void cleanup(IProgrammableDataGenerator object)
object - Objectprotected abstract javax.swing.JFileChooser createFileChooserSet()
protected IDataGeneratorList createObjects()
protected void createPrimitiveList(java.lang.String property)
property - Configuration property that lists the primitive classes
protected void indexNames(IDataGeneratorList generators,
java.util.List names)
generators - List of data generatorsnames - List to store names inprotected void initialize()
initialize in class DataEditorPanelTab
protected java.lang.String promptForName(java.lang.String initial,
java.lang.String accept)
initial - Initial value to provide for nameaccept - Text for accept button
protected void readInternal(java.lang.Object readResult)
throws java.lang.Exception
readInternal in class DataEditorPanelTabreadResult - Data
java.lang.Exception
protected void readInternalSet(java.lang.Object readResult)
throws java.lang.Exception
readResult - Data
java.lang.Exceptionprotected void readNotify()
readNotify in class DataEditorPanelTabprotected void setCustomizerView(IProgrammableDataGenerator object)
object - Objectprotected void updateList()
protected void updateNames()
protected void write(IWriteableDataSource source)
throws java.lang.Exception
write in class DataEditorPanelTabsource - Data source to write to
java.lang.Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||