public class GenericDialogPlus extends GenericDialog
Dialog.AccessibleAWTDialog, Dialog.ModalExclusionType, Dialog.ModalityTypeWindow.AccessibleAWTWindow, Window.TypeContainer.AccessibleAWTContainerComponent.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy| Modifier and Type | Field and Description |
|---|---|
protected int[] |
windowIDs
The window I ds.
|
protected String[] |
windowTitles
The window titles.
|
checkbox, choice, defaultChoiceIndexes, defaultStrings, defaultText, defaultValues, numberField, radioButtonGroups, slider, stringField, textArea1, textArea2, theLabelDEFAULT_MODALITY_TYPEaccessibleContext, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENTABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH| Constructor and Description |
|---|
GenericDialogPlus(String title)
Instantiates a new generic dialog plus.
|
GenericDialogPlus(String title,
Frame parent)
Instantiates a new generic dialog plus.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addButton(String label,
ActionListener listener)
Add button to the dialog.
|
void |
addComponent(Component component)
Adds the component.
|
void |
addComponent(Component component,
int fill,
double weightx)
Adds the component.
|
void |
addDirectoryField(String label,
String defaultPath)
Adds the directory field.
|
void |
addDirectoryField(String label,
String defaultPath,
int columns)
Adds the directory field.
|
void |
addDirectoryOrFileField(String label,
String defaultPath)
Adds the directory or file field.
|
void |
addDirectoryOrFileField(String label,
String defaultPath,
int columns)
Adds the directory or file field.
|
void |
addFileField(String label,
String defaultPath)
Adds the file field.
|
void |
addFileField(String label,
String defaultPath,
int columns)
Adds the file field.
|
JLabel |
addImage(ImageIcon image)
Adds an image to the generic dialog.
|
boolean |
addImage(String path)
Adds an image to the generic dialog.
|
boolean |
addImage(URL imgURL)
Adds an image to the generic dialog.
|
void |
addImageChoice(String label,
String defaultImage)
Adds the image choice.
|
void |
addStringField(String label,
String defaultString,
int columns) |
static ImageIcon |
createImageIcon(URL imgURL)
Returns an ImageIcon, or null if the path was invalid.
|
protected GridBagConstraints |
getConstraints()
Gets the constraints.
|
ImagePlus |
getNextImage()
Gets the next image.
|
void |
keyPressed(KeyEvent e) |
void |
keyReleased(KeyEvent e) |
void |
keyTyped(KeyEvent e) |
actionPerformed, addCheckbox, addCheckboxGroup, addCheckboxGroup, addChoice, addDialogListener, addHelp, addImage, addMessage, addMessage, addMessage, addNumericField, addNumericField, addPanel, addPanel, addPreviewCheckbox, addPreviewCheckbox, addRadioButtonGroup, addSlider, addStringField, addTextAreas, adjustmentValueChanged, centerDialog, dispose, enableYesNoCancel, enableYesNoCancel, focusGained, focusLost, getButtons, getCheckboxes, getChoices, getErrorMessage, getInsets, getInstance, getMessage, getNextBoolean, getNextChoice, getNextChoiceIndex, getNextNumber, getNextRadioButton, getNextString, getNextText, getNumericFields, getPreviewCheckbox, getRadioButtonGroups, getSliders, getStringFields, getTextArea1, getTextArea2, getValue, hideCancelButton, invalidNumber, isMacro, isPreviewActive, itemStateChanged, paint, parseDouble, previewRunning, repaint, setCancelLabel, setDefaultString, setEchoChar, setHelpLabel, setInsets, setLocation, setOKLabel, setSmartRecording, setup, showDialog, textValueChanged, wasCanceled, wasOKed, windowActivated, windowClosed, windowClosing, windowDeactivated, windowDeiconified, windowIconified, windowOpenedaddNotify, getAccessibleContext, getModalityType, getTitle, hide, isModal, isResizable, isUndecorated, paramString, setBackground, setModal, setModalityType, setOpacity, setResizable, setShape, setTitle, setUndecorated, setVisible, show, toBackaddPropertyChangeListener, addPropertyChangeListener, addWindowFocusListener, addWindowListener, addWindowStateListener, applyResourceBundle, applyResourceBundle, createBufferStrategy, createBufferStrategy, getBackground, getBufferStrategy, getFocusableWindowState, getFocusCycleRootAncestor, getFocusOwner, getFocusTraversalKeys, getIconImages, getInputContext, getListeners, getLocale, getModalExclusionType, getMostRecentFocusOwner, getOpacity, getOwnedWindows, getOwner, getOwnerlessWindows, getShape, getToolkit, getType, getWarningString, getWindowFocusListeners, getWindowListeners, getWindows, getWindowStateListeners, isActive, isAlwaysOnTop, isAlwaysOnTopSupported, isAutoRequestFocus, isFocusableWindow, isFocusCycleRoot, isFocused, isLocationByPlatform, isOpaque, isShowing, isValidateRoot, pack, postEvent, processEvent, processWindowEvent, processWindowFocusEvent, processWindowStateEvent, removeNotify, removeWindowFocusListener, removeWindowListener, removeWindowStateListener, reshape, setAlwaysOnTop, setAutoRequestFocus, setBounds, setBounds, setCursor, setFocusableWindowState, setFocusCycleRoot, setIconImage, setIconImages, setLocation, setLocationByPlatform, setLocationRelativeTo, setMinimumSize, setModalExclusionType, setSize, setSize, setType, toFrontadd, add, add, add, add, addContainerListener, addImpl, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalPolicy, getLayout, getMaximumSize, getMinimumSize, getMousePosition, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, print, printComponents, processContainerEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusTraversalKeys, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setFont, setLayout, transferFocusDownCycle, update, validate, validateTreeaction, 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, getGraphics, 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, remove, 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, transferFocusUpCycleprotected int[] windowIDs
protected String[] windowTitles
public GenericDialogPlus(String title)
title - the titlepublic void addImageChoice(String label, String defaultImage)
label - the labeldefaultImage - the default imagepublic ImagePlus getNextImage()
public void addStringField(String label, String defaultString, int columns)
addStringField in class GenericDialogpublic void addDirectoryOrFileField(String label, String defaultPath)
label - the labeldefaultPath - the default pathpublic void addDirectoryOrFileField(String label, String defaultPath, int columns)
label - the labeldefaultPath - the default pathcolumns - the columnspublic void addDirectoryField(String label, String defaultPath)
label - the labeldefaultPath - the default pathpublic void addDirectoryField(String label, String defaultPath, int columns)
label - the labeldefaultPath - the default pathcolumns - the columnspublic void addFileField(String label, String defaultPath)
label - the labeldefaultPath - the default pathpublic void addFileField(String label, String defaultPath, int columns)
label - the labeldefaultPath - the default pathcolumns - the columnspublic void addButton(String label, ActionListener listener)
label - button labellistener - listener to handle the action when pressing the buttonpublic void addComponent(Component component)
component - the componentpublic void addComponent(Component component, int fill, double weightx)
component - the componentfill - the fillweightx - the weightxpublic boolean addImage(String path)
path - - the path to the image in the jar, e.g. /images/fiji.png (the
first / has to be there!)public boolean addImage(URL imgURL)
imgURL - - the URL pointing to the resourcepublic static ImageIcon createImageIcon(URL imgURL)
imgURL - the img URLprotected GridBagConstraints getConstraints()
public void keyPressed(KeyEvent e)
keyPressed in interface KeyListenerkeyPressed in class GenericDialogpublic void keyReleased(KeyEvent e)
keyReleased in interface KeyListenerkeyReleased in class GenericDialogpublic void keyTyped(KeyEvent e)
keyTyped in interface KeyListenerkeyTyped in class GenericDialogCopyright © 2014–2017 SciJava. All rights reserved.