public class SIL_Edit
extends javax.swing.JFrame
SIL_Edit is the main GUI window for the Data-Gathering activity of SILKin. It enables a field user to graphically create a family tree for one or more individuals and to provide the kinship terms used among relatives on that tree.
* NOTE: This file originally created via the form editor (GUI Builder) in NetBeans 6.9.1 For unknown reasons the form editor quit working, so I stripped out the comments that seem to guide the editor, deleted the form file, and now use this strictly as a SWING GUI file.
javax.swing.JFrame.AccessibleJFrame
java.awt.Window.AccessibleAWTWindow, java.awt.Window.Type
Modifier and Type | Field and Description |
---|---|
javax.swing.JMenuItem |
actOnSuggsItem |
ChartPanel |
chart |
javax.swing.JCheckBoxMenuItem |
displayGEDCOM |
static boolean |
helpScreenOnStartUp
This field controls whether the Help Window is displayed when a session
begins.
|
KinTermMatrix |
ktm |
javax.swing.JMenuItem |
returnToSuggsItem |
accessibleContext, EXIT_ON_CLOSE, rootPane, rootPaneCheckingEnabled
CROSSHAIR_CURSOR, DEFAULT_CURSOR, E_RESIZE_CURSOR, HAND_CURSOR, ICONIFIED, MAXIMIZED_BOTH, MAXIMIZED_HORIZ, MAXIMIZED_VERT, MOVE_CURSOR, N_RESIZE_CURSOR, NE_RESIZE_CURSOR, NORMAL, NW_RESIZE_CURSOR, S_RESIZE_CURSOR, SE_RESIZE_CURSOR, SW_RESIZE_CURSOR, TEXT_CURSOR, W_RESIZE_CURSOR, WAIT_CURSOR
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
Constructor and Description |
---|
SIL_Edit()
Creates new form SIL_Edit
|
Modifier and Type | Method and Description |
---|---|
static java.util.TreeMap<java.lang.String,SIL_Edit.PropagationMethod> |
buildLinkMethods()
Build a TreeMap of methods for propagating from each primitive predicate.
|
void |
chartComboSetEnabled(boolean bool) |
void |
chartComboUpdateTitle() |
void |
chooseLanguageItemActionPerformed(java.awt.event.ActionEvent evt) |
void |
clearInfo() |
boolean |
copyNodes(java.util.TreeMap oldRow,
java.util.TreeMap newRow) |
void |
deleteAllItemActionPerformed(java.awt.event.ActionEvent evt)
Clear the current context from all displays and memory.
|
void |
deleteCurrentChartItemActionPerformed(java.awt.event.ActionEvent evt) |
void |
distinctAdrItemActionPerformed(java.awt.event.ActionEvent evt) |
void |
doActiveLearning(Learned_DT learner)
Review all accepted definitions against new data then try to learn a definition
for each kin term that is not yet defined.
|
void |
editChartDescriptionItemActionPerformed(java.awt.event.ActionEvent evt)
Solicit from User a new descriptor string for this chart, correct any
prohibited characters, and then rebuild the Chart menu.
|
void |
editPrefsItemActionPerformed(java.awt.event.ActionEvent evt) |
void |
exportGEDCOMItemActionPerformed(java.awt.event.ActionEvent evt)
Call MainPane's export method and we're done.
|
FamilyPanel |
getFPanel() |
PersonPanel |
getPPanel() |
void |
getSuggestionsItemActionPerformed(java.awt.event.ActionEvent evt)
After assuring all needed resources are present, save the SILK file,
create and load a learner and then launch active learning.
|
void |
goToChart(java.lang.String ltr) |
static boolean |
higherPriority(java.util.ArrayList<java.lang.String> newPCS,
java.util.ArrayList<java.lang.String> oldPCS,
java.util.TreeMap<java.lang.String,java.lang.String> priorities) |
void |
importGEDCOMItemActionPerformed(java.awt.event.ActionEvent evt)
Call for MainPane's GEDCOM import method to parse a file into a new
context.
|
void |
labelMenuItems() |
void |
loadItemActionPerformed(java.awt.event.ActionEvent evt)
Call the ChartPanel method 'pickSILKFile()' to start the process of
loading a SILK file for a Context.
|
static void |
main(java.lang.String[] args) |
void |
noNameBtnActionPerformed(java.awt.event.ActionEvent evt)
This menu choice ActionPerformed calls a ChartPanel method
that records the labeling option.
|
void |
pageSetupItemActionPerformed(java.awt.event.ActionEvent evt)
Generate a page setup dialog box to capture User's preferences.
|
void |
printAllChartsItemActionPerformed(java.awt.event.ActionEvent evt)
Create a
PrintChart with the 'Whole' parameter = true for each
chart in the current context. |
void |
printCurrentChartItemActionPerformed(java.awt.event.ActionEvent evt)
Create a
PrintChart with the 'Whole' parameter = true. |
void |
printVisibleItemActionPerformed(java.awt.event.ActionEvent evt)
Create a
PrintChart with the 'Whole' parameter = false. |
static void |
propagate(Individual currInd,
Individual nextInd,
java.lang.String kinTyp,
KSQ bfq,
java.util.TreeMap newRow,
Individual target,
java.util.TreeMap<java.lang.String,java.lang.String> priorities) |
static void |
propagateNodes(KSQ bfq,
java.util.TreeMap newRow,
Individual target) |
void |
quitItemActionPerformed(java.awt.event.ActionEvent evt)
Check for any unsaved changes; if found, ask User if she wants to save.
|
void |
rebuildChartCombo()
Rebuild the ComboBox that holds the menu of chart pages.
|
void |
rebuildKTMatrixEtc()
Rebuild the KinTermMatrix's node lattice from the population's graph of
Individuals and Families.
|
void |
rebuildRecentSubMenu()
Rebuild the menu of recently-loaded SILK files.
|
void |
removeDef(DomainTheory dt,
int egoInt,
int alterInt,
java.lang.String term) |
void |
saveAsItemActionPerformed(java.awt.event.ActionEvent evt)
Call ChartPanel's's saveAsFile method and we're done.
|
void |
saveItemActionPerformed(java.awt.event.ActionEvent evt)
Call ChartPanel's's saveSILKFile method and we're done.
|
void |
setActOnSuggsEnabled(boolean yn) |
void |
setDistinctAdrMenuItemSelected(boolean val) |
void |
setSnap(boolean onOff)
Post whichever option the User has selected to
Library 's variable. |
void |
showInfo(Family fam)
Set the proper local flags, then pass the call to FamilyPanel;
make sure that the Family detail display is showing.
|
void |
showInfo(Individual ind)
Set the proper local flags, then pass the call to PersonPanel;
make sure that the Individual detail display is showing.
|
void |
synchronizeLabelParams(int labelName,
int labelKTerm)
This case statement is original KAES code.
|
addImpl, createRootPane, frameInit, getAccessibleContext, getContentPane, getDefaultCloseOperation, getGlassPane, getGraphics, getJMenuBar, getLayeredPane, getRootPane, getTransferHandler, isDefaultLookAndFeelDecorated, isRootPaneCheckingEnabled, paramString, processWindowEvent, remove, repaint, setContentPane, setDefaultCloseOperation, setDefaultLookAndFeelDecorated, setGlassPane, setIconImage, setJMenuBar, setLayeredPane, setLayout, setRootPane, setRootPaneCheckingEnabled, setTransferHandler, update
addNotify, getCursorType, getExtendedState, getFrames, getIconImage, getMaximizedBounds, getMenuBar, getState, getTitle, isResizable, isUndecorated, remove, removeNotify, setBackground, setCursor, setExtendedState, setMaximizedBounds, setMenuBar, setOpacity, setResizable, setShape, setState, setTitle, setUndecorated
addPropertyChangeListener, addPropertyChangeListener, addWindowFocusListener, addWindowListener, addWindowStateListener, applyResourceBundle, applyResourceBundle, createBufferStrategy, createBufferStrategy, dispose, getBackground, getBufferStrategy, getFocusableWindowState, getFocusCycleRootAncestor, getFocusOwner, getFocusTraversalKeys, getIconImages, getInputContext, getListeners, getLocale, getModalExclusionType, getMostRecentFocusOwner, getOpacity, getOwnedWindows, getOwner, getOwnerlessWindows, getShape, getToolkit, getType, getWarningString, getWindowFocusListeners, getWindowListeners, getWindows, getWindowStateListeners, hide, isActive, isAlwaysOnTop, isAlwaysOnTopSupported, isAutoRequestFocus, isFocusableWindow, isFocusCycleRoot, isFocused, isLocationByPlatform, isOpaque, isShowing, isValidateRoot, pack, paint, postEvent, processEvent, processWindowFocusEvent, processWindowStateEvent, removeWindowFocusListener, removeWindowListener, removeWindowStateListener, reshape, setAlwaysOnTop, setAutoRequestFocus, setBounds, setBounds, setCursor, setFocusableWindowState, setFocusCycleRoot, setIconImages, setLocation, setLocation, setLocationByPlatform, setLocationRelativeTo, setMinimumSize, setModalExclusionType, setSize, setSize, setType, setVisible, show, toBack, toFront
add, add, add, add, add, addContainerListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalPolicy, getInsets, getLayout, getMaximumSize, getMinimumSize, getMousePosition, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, print, printComponents, processContainerEvent, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusTraversalKeys, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setFont, transferFocusDownCycle, validate, validateTree
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBaseline, getBaselineResizeBehavior, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resize, resize, revalidate, setComponentOrientation, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setMaximumSize, setName, setPreferredSize, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
public static boolean helpScreenOnStartUp
public KinTermMatrix ktm
public javax.swing.JMenuItem actOnSuggsItem
public ChartPanel chart
public javax.swing.JCheckBoxMenuItem displayGEDCOM
public javax.swing.JMenuItem returnToSuggsItem
public static java.util.TreeMap<java.lang.String,SIL_Edit.PropagationMethod> buildLinkMethods()
public void labelMenuItems()
public void rebuildRecentSubMenu()
public void rebuildChartCombo()
public void setSnap(boolean onOff)
Library
's variable.onOff
- User's choice, made in 'Edit Prefs.'public void loadItemActionPerformed(java.awt.event.ActionEvent evt)
evt
- the event type (not used)public void importGEDCOMItemActionPerformed(java.awt.event.ActionEvent evt)
evt
- public void exportGEDCOMItemActionPerformed(java.awt.event.ActionEvent evt)
evt
- the mouse event that clicked on this menu itempublic void saveItemActionPerformed(java.awt.event.ActionEvent evt)
public void saveAsItemActionPerformed(java.awt.event.ActionEvent evt)
public void deleteAllItemActionPerformed(java.awt.event.ActionEvent evt)
evt
- the mouse event that chose this menu itempublic void printVisibleItemActionPerformed(java.awt.event.ActionEvent evt)
PrintChart
with the 'Whole' parameter = false.
This will suppress a chart title and cause only the visible portion
of current chart to be printed. Then call the PrintChart's printTheChart
method.evt
- the mouse event that chose this menu itempublic void printCurrentChartItemActionPerformed(java.awt.event.ActionEvent evt)
PrintChart
with the 'Whole' parameter = true.
This will select the entire current chart. Then call the PrintChart's
printTheChart method.evt
- the mouse event that chose this menu itempublic void printAllChartsItemActionPerformed(java.awt.event.ActionEvent evt)
PrintChart
with the 'Whole' parameter = true for each
chart in the current context. Then call the PrintChart's
printTheChart method on each one.evt
- the mouse event that chose this menu itempublic void pageSetupItemActionPerformed(java.awt.event.ActionEvent evt)
evt
- the event type (not used)public void quitItemActionPerformed(java.awt.event.ActionEvent evt)
evt
- the mouse click that chose this menu item.public void editChartDescriptionItemActionPerformed(java.awt.event.ActionEvent evt)
evt
- the menu choice eventpublic void deleteCurrentChartItemActionPerformed(java.awt.event.ActionEvent evt)
public void chooseLanguageItemActionPerformed(java.awt.event.ActionEvent evt)
public void editPrefsItemActionPerformed(java.awt.event.ActionEvent evt)
public void noNameBtnActionPerformed(java.awt.event.ActionEvent evt)
evt
- the menu choice eventpublic void setDistinctAdrMenuItemSelected(boolean val)
public void distinctAdrItemActionPerformed(java.awt.event.ActionEvent evt)
public void setActOnSuggsEnabled(boolean yn)
public void getSuggestionsItemActionPerformed(java.awt.event.ActionEvent evt)
evt
- the menu choice eventpublic void chartComboUpdateTitle()
public void chartComboSetEnabled(boolean bool)
public void goToChart(java.lang.String ltr)
public static void main(java.lang.String[] args)
args
- the command line argumentspublic void synchronizeLabelParams(int labelName, int labelKTerm)
labelName
- User's choice for displaying a person's namelabelKTerm
- User's choice for displaying the kin termpublic void rebuildKTMatrixEtc()
public boolean copyNodes(java.util.TreeMap oldRow, java.util.TreeMap newRow)
public static void propagateNodes(KSQ bfq, java.util.TreeMap newRow, Individual target)
public static void propagate(Individual currInd, Individual nextInd, java.lang.String kinTyp, KSQ bfq, java.util.TreeMap newRow, Individual target, java.util.TreeMap<java.lang.String,java.lang.String> priorities) throws KSDateParseException
KSDateParseException
public static boolean higherPriority(java.util.ArrayList<java.lang.String> newPCS, java.util.ArrayList<java.lang.String> oldPCS, java.util.TreeMap<java.lang.String,java.lang.String> priorities)
public PersonPanel getPPanel()
public FamilyPanel getFPanel()
public void clearInfo() throws KSParsingErrorException, JavaSystemException, KSBadHornClauseException, KSInternalErrorException, KSConstraintInconsistency, KSDateParseException
public void showInfo(Individual ind)
ind
- the person whose info we want to showpublic void showInfo(Family fam)
fam
- the family whose info we want to showpublic void removeDef(DomainTheory dt, int egoInt, int alterInt, java.lang.String term)
public void doActiveLearning(Learned_DT learner) throws KSInternalErrorException, KSParsingErrorException, KSBadHornClauseException, KSConstraintInconsistency, java.lang.ClassNotFoundException, JavaSystemException, java.io.FileNotFoundException, java.io.IOException
learner
- a specialized DomainTheory that can do active learningKSInternalErrorException
KSParsingErrorException
KSBadHornClauseException
KSConstraintInconsistency
java.lang.ClassNotFoundException
JavaSystemException
java.io.FileNotFoundException
java.io.IOException