public class SNTUI
extends javax.swing.JDialog
Modifier and Type | Field and Description |
---|---|
static int |
EDITING
Flag specifying UI is currently waiting for user to edit a selected Path
|
static int |
FITTING_PATHS
Flag specifying UI is currently waiting for fitting operations to conclude
|
static int |
LOADING
Flag specifying UI is currently waiting for I/0 operations to conclude
|
static int |
READY
Flag specifying that image data is available and the UI is not waiting on any
pending operations, thus 'ready to trace'
|
static int |
RUNNING_CMD |
static int |
SNT_PAUSED
Flag specifying all SNT are temporarily disabled (all user interactions are
waived back to ImageJ)
|
static int |
TRACING_PAUSED
Flag specifying tracing functions are (currently) disabled.
|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
Constructor and Description |
---|
SNTUI(SNT plugin)
Instantiates SNT's main UI and associated
PathManagerUI and
FillManagerUI instances. |
Modifier and Type | Method and Description |
---|---|
void |
changeState(int newState)
Changes this UI to a new state.
|
void |
error(java.lang.String msg) |
FillManagerUI |
getFillManager()
Gets the Fill Manager dialog.
|
PathManagerUI |
getPathManager()
Gets the Path Manager dialog.
|
Viewer3D |
getReconstructionViewer(boolean initializeIfNull)
Gets the Reconstruction Viewer.
|
sc.iview.SciView |
getSciViewViewer(boolean initializeIfNull)
Gets the SciView Viewer.
|
int |
getState()
Gets the current UI state.
|
boolean |
isReady()
Assesses whether the UI is blocked.
|
void |
runCommand(java.lang.String cmd) |
void |
setEnableDebugMode(boolean enable)
Enables/disables debug mode
|
void |
showMessage(java.lang.String msg,
java.lang.String title) |
void |
showStatus(java.lang.String msg,
boolean temporary)
Updates the status bar.
|
getAccessibleContext, getContentPane, getDefaultCloseOperation, getGlassPane, getGraphics, getJMenuBar, getLayeredPane, getRootPane, getTransferHandler, isDefaultLookAndFeelDecorated, remove, repaint, setContentPane, setDefaultCloseOperation, setDefaultLookAndFeelDecorated, setGlassPane, setJMenuBar, setLayeredPane, setLayout, setTransferHandler, update
addNotify, getModalityType, getTitle, hide, isModal, isResizable, isUndecorated, setBackground, setModal, setModalityType, setOpacity, setResizable, setShape, setTitle, setUndecorated, setVisible, show, toBack
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, isActive, isAlwaysOnTop, isAlwaysOnTopSupported, isAutoRequestFocus, isFocusableWindow, isFocusCycleRoot, isFocused, isLocationByPlatform, isOpaque, isShowing, isValidateRoot, pack, paint, postEvent, removeNotify, removeWindowFocusListener, removeWindowListener, removeWindowStateListener, reshape, setAlwaysOnTop, setAutoRequestFocus, setBounds, setBounds, setCursor, setFocusableWindowState, setFocusCycleRoot, setIconImage, setIconImages, setLocation, setLocation, setLocationByPlatform, setLocationRelativeTo, setMinimumSize, setModalExclusionType, setSize, setSize, setType, 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, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusTraversalKeys, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setFont, transferFocusDownCycle, validate
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, dispatchEvent, enable, enable, enableInputMethods, 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, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, requestFocus, requestFocusInWindow, resize, resize, revalidate, setComponentOrientation, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setMaximumSize, setName, setPreferredSize, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
public static final int READY
public static final int RUNNING_CMD
public static final int LOADING
public static final int FITTING_PATHS
public static final int EDITING
public static final int SNT_PAUSED
public static final int TRACING_PAUSED
public SNTUI(SNT plugin)
PathManagerUI
and
FillManagerUI
instances.plugin
- the SNT
instance associated with this
UIpublic int getState()
READY
,
RUNNING_CMD
, etc.public boolean isReady()
public void setEnableDebugMode(boolean enable)
enable
- true to enable debug mode, otherwise falsepublic void runCommand(java.lang.String cmd) throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentException
public void changeState(int newState)
newState
is the
current UI statenewState
- the new state, e.g., READY
,
TRACING_PAUSED
, etc.public void error(java.lang.String msg)
public void showMessage(java.lang.String msg, java.lang.String title)
public void showStatus(java.lang.String msg, boolean temporary)
msg
- the text to displayed. Set it to null (or empty String) to
reset the status bar.temporary
- if true and msg
is valid, text is displayed
transiently for a couple of secondspublic PathManagerUI getPathManager()
PathManagerUI
associated with this UIpublic FillManagerUI getFillManager()
FillManagerUI
associated with this UIpublic Viewer3D getReconstructionViewer(boolean initializeIfNull)
initializeIfNull
- it true, initializes the Viewer if it has not yet
been initializedpublic sc.iview.SciView getSciViewViewer(boolean initializeIfNull)
initializeIfNull
- it true, initializes the Viewer if it has not yet
been initialized