public class DrawWindow extends ChildFrame
Modifier and Type | Class and Description |
---|---|
private static class |
DrawWindow.SceneInfo |
static class |
DrawWindow.ToolButtonList |
javax.swing.JInternalFrame.AccessibleJInternalFrame, javax.swing.JInternalFrame.JDesktopIcon
javax.swing.JComponent.AccessibleJComponent
closable, CONTENT_PANE_PROPERTY, desktopIcon, FRAME_ICON_PROPERTY, frameIcon, GLASS_PANE_PROPERTY, iconable, IS_CLOSED_PROPERTY, IS_ICON_PROPERTY, IS_MAXIMUM_PROPERTY, IS_SELECTED_PROPERTY, isClosed, isIcon, isMaximum, isSelected, LAYERED_PANE_PROPERTY, maximizable, MENU_BAR_PROPERTY, resizable, ROOT_PANE_PROPERTY, rootPane, rootPaneCheckingEnabled, title, TITLE_PROPERTY
listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
accessibleContext, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
Constructor and Description |
---|
DrawWindow() |
Modifier and Type | Method and Description |
---|---|
private void |
asyncTimer_elapsed() |
void |
autoScale() |
private void |
buildStructureMenu() |
void |
colorizeScenes(SceneColorizer c,
boolean applyToAllScenes,
boolean selectedBasesOnly) |
private void |
createMenus() |
private void |
createToolButtons() |
private void |
createUI() |
void |
editSelectedBases() |
private void |
findHelices() |
private void |
findPseudoKnots() |
private void |
findPseudoKnotsBackend() |
private void |
foldSequence() |
RnaScene |
getCurrentScene() |
private int |
getCurrentSceneIndex() |
java.util.Collection<? extends javax.swing.JMenu> |
getMenus() |
private java.awt.Rectangle |
getSceneBounds(boolean includeInteractive) |
RnaSceneGroup |
getScenes() |
java.util.Collection<? extends java.awt.Component> |
getToolbarButtons() |
private void |
handleView(RnaScene scene,
boolean save) |
private void |
insertBases() |
private boolean |
isTaskRunning() |
void |
loadFile(RnaSceneGroup file) |
void |
loadScene(RnaScene scene) |
private void |
loadSettings() |
private void |
loadStructure(int structureIndex) |
private void |
monitorAsyncTask(RnaFileIO.AsyncTask task) |
private void |
onHistoryUpdate(HistoryUpdateEvent event) |
private void |
onSceneUpdate(SceneUpdateEvent event) |
void |
programSettingsUpdated()
Called when Program Settings have changed.
|
private void |
redrawCircular() |
private void |
redrawLinear() |
void |
redrawScene() |
private java.awt.Rectangle |
renderFullSceneToImage(java.awt.Graphics2D imageGraphics,
boolean opaque) |
private void |
save(FileType type,
boolean forceSaveAs,
boolean export) |
private void |
saveSceneAsRastorImage(java.lang.String path,
FileType type) |
private void |
saveSceneAsVectorImage(java.lang.String path,
FileType type) |
void |
setSelectedBondType(BondType type) |
void |
setSelMode(RnaDrawController.SelectionType selMode) |
private void |
setSelType(RnaDrawController.SelectionType selType) |
void |
showCalcEnergy() |
private void |
showColorizeDialog() |
private void |
showNextStructure() |
private void |
showPrevStructure() |
private void |
showStructureMenu() |
private java.lang.String |
strOrDefault(java.lang.String value,
java.lang.String defaultIfEmpty) |
private void |
test() |
private void |
updateFileUI() |
private void |
updateSelectionUI() |
close
addAction, addKeyBinding, addKeyBinding, getParentFrame, setParentFrame
addImpl, addInternalFrameListener, createRootPane, dispose, doDefaultCloseAction, fireInternalFrameEvent, getAccessibleContext, getContentPane, getDefaultCloseOperation, getDesktopIcon, getDesktopPane, getFocusCycleRootAncestor, getFocusOwner, getFrameIcon, getGlassPane, getInternalFrameListeners, getJMenuBar, getLastCursor, getLayer, getLayeredPane, getMenuBar, getMostRecentFocusOwner, getNormalBounds, getRootPane, getTitle, getUI, getUIClassID, getWarningString, hide, isClosable, isClosed, isFocusCycleRoot, isIcon, isIconifiable, isMaximizable, isMaximum, isResizable, isRootPaneCheckingEnabled, isSelected, moveToBack, moveToFront, pack, paintComponent, paramString, remove, removeInternalFrameListener, reshape, restoreSubcomponentFocus, setClosable, setClosed, setContentPane, setCursor, setDefaultCloseOperation, setDesktopIcon, setFocusCycleRoot, setFrameIcon, setGlassPane, setIcon, setIconifiable, setJMenuBar, setLayer, setLayer, setLayeredPane, setLayout, setMaximizable, setMaximum, setMenuBar, setNormalBounds, setResizable, setRootPane, setRootPaneCheckingEnabled, setSelected, setTitle, setUI, show, toBack, toFront, updateUI
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, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingOrigin, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, 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, 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
add, add, add, add, add, addContainerListener, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, transferFocusDownCycle, validate, validateTree
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, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, 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, resize, resize, setBounds, setBounds, setComponentOrientation, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
private RnaFileIO.AsyncTask _asyncTask
UiAction actionBreakBonds
UiAction actionChooseStructure
UiAction actionClose
UiAction actionColorHelices
UiAction actionEditNucs
UiAction actionEditRedo
UiAction actionEditUndo
UiAction actionExport
UiAction actionFlipScene
UiAction actionFold
UiAction actionFormatColor
UiAction actionFormatRemoveAllColor
UiAction actionFormatRemoveColor
UiAction actionIdentifyPseudoKnots
UiAction actionInsertNucs
UiAction actionJoinStrands
UiAction actionLocalRedraw
UiAction actionNextStructure
UiAction actionPrevStructure
UiAction actionRedraw
UiAction actionRedrawCirc
UiAction actionRedrawLinear
UiAction actionRemoveNucs
UiAction actionSave
UiAction actionSaveAs
UiAction actionSelectAll
UiAction actionSelectBranch
UiAction actionSelectExpand
UiAction actionSelectHelix
UiAction actionSelectNuc
UiAction actionSetBondTypeBanned
UiAction actionSetBondTypeForced
UiAction actionSetBondTypeNormal
UiAction actionSetBondTypePseduo
UiAction actionSetBondTypeSpecial
UiAction actionShowEnergy
UiAction actionSplitStrand
UiAction actionZoomAuto
UiAction actionZoomIn
UiAction actionZoomOut
UiAction actionZoomReset
private javax.swing.Timer asyncUpdateTimer
private javax.swing.AbstractButton btnSelModeBranch
private javax.swing.AbstractButton btnSelModeHelix
private javax.swing.AbstractButton btnSelModeNuc
public final RnaDrawController controller
private RnaScene currentScene
private DrawSettings drawSettings
private MergeMenu formatBondType
private NucLayout layout
private javax.swing.JLabel lblTaskProgress
private javax.swing.JLabel lblTaskStatus
private java.util.List<MergeMenu> menus
private DrawPanel panel
private javax.swing.JPanel pnlTaskProgress
private javax.swing.JProgressBar prgTaskProgress
private DrawWindow.SceneInfo[] sceneInfo
private RnaSceneGroup scenes
private javax.swing.JScrollPane scrollPane
RnaDrawController.SelectionType selType
private ButtonGroupList structureList
private MergeMenu structureMenu
private javax.swing.JButton structureMenuToolbarButton
UiAction testAction
private DrawWindow.ToolButtonList toolButtons
private void asyncTimer_elapsed()
public void autoScale()
private void buildStructureMenu()
public void colorizeScenes(SceneColorizer c, boolean applyToAllScenes, boolean selectedBasesOnly)
private void createMenus()
private void createToolButtons()
private void createUI()
public void editSelectedBases()
private void findHelices()
private void findPseudoKnots()
private void findPseudoKnotsBackend()
private void foldSequence()
public RnaScene getCurrentScene()
private int getCurrentSceneIndex()
public java.util.Collection<? extends javax.swing.JMenu> getMenus()
getMenus
in class ChildFrame
private java.awt.Rectangle getSceneBounds(boolean includeInteractive)
public RnaSceneGroup getScenes()
public java.util.Collection<? extends java.awt.Component> getToolbarButtons()
getToolbarButtons
in class ChildFrame
private void handleView(RnaScene scene, boolean save)
private void insertBases()
private boolean isTaskRunning()
public void loadFile(RnaSceneGroup file)
public void loadScene(RnaScene scene)
private void loadSettings()
private void loadStructure(int structureIndex)
private void monitorAsyncTask(RnaFileIO.AsyncTask task)
private void onHistoryUpdate(HistoryUpdateEvent event)
private void onSceneUpdate(SceneUpdateEvent event)
public void programSettingsUpdated()
ChildFrame
programSettingsUpdated
in class ChildFrame
private void redrawCircular()
private void redrawLinear()
public void redrawScene()
private java.awt.Rectangle renderFullSceneToImage(java.awt.Graphics2D imageGraphics, boolean opaque)
private void save(FileType type, boolean forceSaveAs, boolean export)
private void saveSceneAsRastorImage(java.lang.String path, FileType type) throws java.io.IOException
java.io.IOException
private void saveSceneAsVectorImage(java.lang.String path, FileType type) throws java.io.IOException
java.io.IOException
public void setSelectedBondType(BondType type)
public void setSelMode(RnaDrawController.SelectionType selMode)
private void setSelType(RnaDrawController.SelectionType selType)
public void showCalcEnergy()
private void showColorizeDialog()
private void showNextStructure()
private void showPrevStructure()
private void showStructureMenu()
private java.lang.String strOrDefault(java.lang.String value, java.lang.String defaultIfEmpty)
private void test()
private void updateFileUI()
private void updateSelectionUI()