public abstract class AbstractBaseFrame
extends javax.swing.JFrame
implements javax.swing.event.ChangeListener
javax.swing.JFrame.AccessibleJFrame
java.awt.Window.AccessibleAWTWindow, java.awt.Window.Type
Modifier and Type | Field and Description |
---|---|
protected boolean |
allowsSelections |
protected static int |
BOTH_COLOR |
protected static int |
DARK_COLOR |
protected static int |
FACTOR |
protected javax.swing.JMenu |
fileMenu |
protected static java.awt.Color[] |
FILL_COLORS |
protected javax.swing.JMenu |
graphMenu |
protected GraphPanel |
graphPanel |
protected static java.awt.Dimension |
initialSize |
protected java.awt.image.BufferedImage |
lastThumbnail |
protected static int |
LIGHT_COLOR |
protected static int |
MEDIUM_COLOR |
static int |
NAV_MAX_HEIGHT |
static int |
NAV_WIDTH |
protected NavPanel |
navPanel |
protected static int |
OTHER_COLOR |
protected static int |
PARENT_COLOR |
protected static ProgressDialog |
progressDialog |
protected javax.swing.JScrollPane |
scrollGraph |
protected SEPanel |
sePanel |
protected javax.swing.JLabel |
subtitle |
protected java.lang.String |
title |
protected ToolBar |
toolBar |
protected javax.swing.JMenu |
zoomMenu |
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 |
---|
AbstractBaseFrame(java.lang.String title,
javax.swing.JFrame parent,
boolean allowsSelections)
Creates a window frame for PLA application that is anchored at
given parent frame (if not NULL)
|
Modifier and Type | Method and Description |
---|---|
void |
addMenuAt(javax.swing.JMenu menu,
int index)
Insert a given menu to the current menu bar at given position.
|
boolean |
allowsSelections() |
protected javax.swing.JMenu |
createFileMenu() |
protected javax.swing.JMenu |
createGraphMenu() |
protected void |
createMenus() |
protected void |
createPanels() |
protected void |
createToolbar() |
protected javax.swing.JMenu |
createZoomMenu() |
protected void |
focusOnTextField(boolean occ) |
javax.swing.JMenu |
getFileMenu() |
static java.awt.Color[] |
getFILL_COLORS()
Obtain current fill colors for this class.
|
javax.swing.JMenu |
getGraphMenu() |
GraphPanel |
getGraphPanel() |
int |
getMenuCount()
Obtain number of menus other than the "Window" menu in the current
menu bar.
|
NavPanel |
getNavPanel() |
SEPanel |
getSEPanel() |
java.lang.String |
getTitleWithoutID() |
ToolBar |
getToolBar() |
BaseFrame |
getTopBaseFrame()
Walking up the hierarchy of frames until parent is
no longer of class
BaseFrame and then
returns the last base frame found. |
javax.swing.JMenu |
getZoomMenu() |
static void |
hideProgressDialog()
Hide current modal dialog with progress bar.
|
boolean |
isEmpty() |
static void |
setFILL_COLORS(java.awt.Color[] fc)
Change fill colors for this class.
|
void |
setGraph(IOPGraph graph)
Set the graph of this frame to the given one.
|
void |
setSubtitle(java.lang.String text)
Adding a subtitle to this frame.
|
void |
setTitle(java.lang.String s) |
static void |
showProgressDialog(java.lang.String title,
java.awt.Component c)
Show modal dialog with (indeterminante) progress
bar with a given title.
|
void |
stateChanged(javax.swing.event.ChangeEvent event) |
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, 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 final int NAV_WIDTH
public static final int NAV_MAX_HEIGHT
protected final boolean allowsSelections
protected static ProgressDialog progressDialog
protected javax.swing.JMenu fileMenu
protected javax.swing.JMenu zoomMenu
protected javax.swing.JMenu graphMenu
protected javax.swing.JLabel subtitle
protected ToolBar toolBar
protected javax.swing.JScrollPane scrollGraph
protected NavPanel navPanel
protected GraphPanel graphPanel
protected SEPanel sePanel
protected java.lang.String title
protected java.awt.image.BufferedImage lastThumbnail
protected static java.awt.Dimension initialSize
protected static final int FACTOR
protected static final int PARENT_COLOR
protected static final int OTHER_COLOR
protected static final int BOTH_COLOR
protected static final int LIGHT_COLOR
protected static final int MEDIUM_COLOR
protected static final int DARK_COLOR
protected static java.awt.Color[] FILL_COLORS
public AbstractBaseFrame(java.lang.String title, javax.swing.JFrame parent, boolean allowsSelections)
public boolean allowsSelections()
protected javax.swing.JMenu createFileMenu()
protected javax.swing.JMenu createGraphMenu()
protected javax.swing.JMenu createZoomMenu()
protected void createToolbar()
protected void createMenus()
protected void createPanels()
public int getMenuCount()
public void addMenuAt(javax.swing.JMenu menu, int index)
getMenuCount()
it will append
given menu at end but always before the "Window" menu (which should
remain at the last position).
Will throw exceptions if the given menu is null
or the
given position is not in the above specified range [0..getMenuCount()]
menu
- JMenu to be added to current menu barindex
- Number indicating position where to insert the menupublic void setTitle(java.lang.String s)
setTitle
in class java.awt.Frame
public java.lang.String getTitleWithoutID()
public void setSubtitle(java.lang.String text)
text
- String potentially containing newline and tab characters
that denotes subtitle of this framepublic BaseFrame getTopBaseFrame()
BaseFrame
and then
returns the last base frame found.public static java.awt.Color[] getFILL_COLORS()
public static void setFILL_COLORS(java.awt.Color[] fc)
Does not prompt existing frames to update.
fc
- Array of 12 Color objects that denote 4 colors
each given in order of 3 shades dark - medium - lightprotected void focusOnTextField(boolean occ)
public javax.swing.JMenu getFileMenu()
public javax.swing.JMenu getZoomMenu()
public javax.swing.JMenu getGraphMenu()
public ToolBar getToolBar()
public GraphPanel getGraphPanel()
public SEPanel getSEPanel()
public NavPanel getNavPanel()
public void setGraph(IOPGraph graph)
setGraph(graph, getCategorization())
graph
- IOPGraph to be set in this framepublic boolean isEmpty()
public static void showProgressDialog(java.lang.String title, java.awt.Component c)
title
- String with title for dialogc
- Component to center dialog overpublic static void hideProgressDialog()
public void stateChanged(javax.swing.event.ChangeEvent event)
stateChanged
in interface javax.swing.event.ChangeListener