Package dialog
Class DomainsPanel
java.lang.Object
java.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
dialog.DialogPanel
dialog.DomainsPanel
- All Implemented Interfaces:
ImageObserver
,MenuContainer
,Serializable
,Accessible
Class for a domains determination panel
for graphical user interfaces.
- Since:
- 2007.02.11
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class javax.swing.JPanel
JPanel.AccessibleJPanel
Nested classes/interfaces inherited from class javax.swing.JComponent
JComponent.AccessibleJComponent
Nested classes/interfaces inherited from class java.awt.Container
Container.AccessibleAWTContainer
Nested classes/interfaces inherited from class java.awt.Component
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected JCheckBox
whether to determine types automaticallyprotected JCheckBox
the path to the C programsstatic final int
mode: external programs checkboxprotected JTextField
the name of the domains fileprotected JTextField
the name of the table fileprotected FormatPanel
the associated data format panelstatic final int
mode: locate programs buttonprotected File
the path to the C programsprotected JCheckBox
whether to sort the values of nominal attributesFields inherited from class dialog.DialogPanel
BOLD, buf, chooser, FILL, HALF, LEFT, MIDDLE, RIGHT, SMALL
Fields inherited from class javax.swing.JComponent
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
accessibleContext, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
-
Constructor Summary
ConstructorsConstructorDescriptionDomainsPanel
(int mode) Create a domains determination panel.DomainsPanel
(int mode, FormatPanel format) Create a domains determination panel.DomainsPanel
(FormatPanel format) Create a domains determination panel. -
Method Summary
Modifier and TypeMethodDescriptionString[]
Create a command to determine attribute domains.table.DomainsFinder
Create a domain finder.Get the data file.Get the domains file.Get the associated data format panel.int
getOps()
Get the additional operations.getPath()
Get the path to the C programs.void
loadConfig
(FileReader reader) Load domain arguments from a configuration file.void
saveConfig
(FileWriter writer) Save domain arguments to a configuration file.void
setDataFile
(File file) Set the data file.void
setDomainsFile
(File file) Set the domains file.void
setExternal
(boolean extern) Get flag for external program usage.void
setFormat
(FormatPanel format) Set the associated data format panel.void
setOps
(int ops) Set the additional operations.void
Set the path to the C programs.protected static String[]
Shrink a command to a given length.boolean
Get flag for external program usage.Methods inherited from class dialog.DialogPanel
add, addButton, addButton, addCheckBox, addCheckBox, addCheckBox, addCheckBox, addComboBox, addComboBox, addFileInput, addFileInput, addFiller, addHelp, addLabel, addLabel, addNumberInput, addNumberInput, addSpinner, addSpinner, addTextInput, addTextInput, createNumberInput, editDomains, editDomains, editFile, editFile, getFileChooser, getFileName, getFileName, readInt, readLine, showTable, showTable
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, getBaseline, getBaselineResizeBehavior, 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, hide, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingOrigin, 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, 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, getName, getParent, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, 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, requestFocus, requestFocus, requestFocusInWindow, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setMixingCutoutShape, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
-
Field Details
-
EXTERNAL
public static final int EXTERNALmode: external programs checkbox- See Also:
-
LOCATE
public static final int LOCATEmode: locate programs button- See Also:
-
format
the associated data format panel -
path
the path to the C programs -
fn_tab
the name of the table file -
autotype
whether to determine types automatically -
sortvals
whether to sort the values of nominal attributes -
fn_dom
the name of the domains file -
extern
the path to the C programs
-
-
Constructor Details
-
DomainsPanel
public DomainsPanel(int mode) Create a domains determination panel.- Parameters:
mode
- the mode (additional input selector)- Since:
- 2007.07.26 (Christian Borgelt)
-
DomainsPanel
Create a domains determination panel.- Parameters:
format
- the corresponding format panel- Since:
- 2007.02.11 (Christian Borgelt)
-
DomainsPanel
Create a domains determination panel.- Parameters:
mode
- the mode (additional input selector)format
- the associated data format panel- Since:
- 2007.02.11 (Christian Borgelt)
-
-
Method Details
-
getFormat
Get the associated data format panel.- Returns:
- the associated data format panel
- Since:
- 2014.04.02 (Christian Borgelt)
-
setFormat
Set the associated data format panel.- Parameters:
format
- the associated data format panel- Since:
- 2007.07.27 (Christian Borgelt)
-
getDataFile
Get the data file.- Returns:
- the data file
- Since:
- 2007.07.24 (Christian Borgelt)
-
setDataFile
Set the data file.- Parameters:
file
- the data file to set- Since:
- 2007.07.24 (Christian Borgelt)
-
getDomainsFile
Get the domains file.- Returns:
- the domains file
- Since:
- 2007.07.24 (Christian Borgelt)
-
setDomainsFile
Set the domains file.- Parameters:
file
- the domains file to set- Since:
- 2007.07.24 (Christian Borgelt)
-
getOps
public int getOps()Get the additional operations.- Returns:
- the additional operations
- Since:
- 2007.07.27 (Christian Borgelt)
-
setOps
public void setOps(int ops) Set the additional operations.- Parameters:
ops
- the additional operations- Since:
- 2007.07.27 (Christian Borgelt)
-
createCmd
Create a command to determine attribute domains.- Returns:
- the command to determine attribute domains
- Since:
- 2004.05.25 (Christian Borgelt)
-
createFinder
public table.DomainsFinder createFinder()Create a domain finder.- Returns:
- a domain finder for the current settings
- Since:
- 2007.05.08 (Christian Borgelt)
-
useExternal
public boolean useExternal()Get flag for external program usage.- Returns:
- whether to use external programs
- Since:
- 2007.05.17 (Christian Borgelt)
-
setExternal
public void setExternal(boolean extern) Get flag for external program usage.- Parameters:
extern
- whether to use external programs- Since:
- 2007.05.17 (Christian Borgelt)
-
getPath
Get the path to the C programs.- Returns:
- the path to the C programs
- Since:
- 2007.02.11 (Christian Borgelt)
-
setPath
Set the path to the C programs.- Parameters:
path
- the path to the C programs- Since:
- 2007.02.11 (Christian Borgelt)
-
shrinkCmd
Shrink a command to a given length.- Parameters:
cmd
- the command to shrinkn
- the number of arguments- Returns:
- a string with the shrunk command
- Since:
- 2007.02.16 (Christian Borgelt)
-
loadConfig
Load domain arguments from a configuration file.- Parameters:
reader
- file reader to read from- Throws:
IOException
- if a read error occurs- Since:
- 2013.11.26 (Christian Borgelt)
-
saveConfig
Save domain arguments to a configuration file.- Parameters:
writer
- file writer to write to- Throws:
IOException
- if a write error occurs- Since:
- 2013.11.26 (Christian Borgelt)
-