de.uni_paderborn.fujaba.app
Class FrameMain

java.lang.Object
  extended byjava.awt.Component
      extended byjava.awt.Container
          extended byjava.awt.Window
              extended byjava.awt.Frame
                  extended byjavax.swing.JFrame
                      extended byde.uni_paderborn.fujaba.app.FrameMain
All Implemented Interfaces:
javax.accessibility.Accessible, java.awt.image.ImageObserver, java.awt.MenuContainer, javax.swing.RootPaneContainer, java.io.Serializable, javax.swing.WindowConstants

public class FrameMain
extends javax.swing.JFrame

The main frame of Fujaba, in which all components are integrated.

Associations

                  0..1   tabbedPaneProxy    0..1
 TabbedPaneProxy -------------------------------- FrameMain
                  tabbedPaneProxy      frameMain
 

0..n decorators 0..1 FrameDecorator ---------------------------- FrameMain decorators frameMain

Version:
$Revision: 1.609 $ $Date: 2005/03/04 14:43:26 $
Author:
$Author: cschneid $
See Also:
Serialized Form

Nested Class Summary
private  class FrameMain.DoUpdateStatusBar
          Thread for updating the status bar.
private static class FrameMain.FujabaTreeNode
          This class extends the DefaultMutableTreeNode, so that some values have spezial representation on the screen
private  class FrameMain.PropertyEditorPopupSourceListener
          show the current popup source in the property editor
private  class FrameMain.StatusBarUpdater
          Updates the text of the memory in the status bar.
 
Nested classes inherited from class javax.swing.JFrame
javax.swing.JFrame.AccessibleJFrame
 
Nested classes inherited from class java.awt.Frame
java.awt.Frame.AccessibleAWTFrame
 
Nested classes inherited from class java.awt.Window
java.awt.Window.AccessibleAWTWindow
 
Nested classes inherited from class java.awt.Container
java.awt.Container.AccessibleAWTContainer
 
Nested classes inherited from class java.awt.Component
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy
 
Field Summary
private  de.upb.tools.fca.FHashSet decorators
           0..n decorators 0..1 FrameDecorator --------------------------- FrameMain decorators frameMain
static java.awt.Dimension DEFAULT_INTERNAL_FRAME_SIZE
          size of an inner diagram frame after creation
(package private)  javax.swing.JDesktopPane desktop
          container for childwindows
private  de.upb.tools.fca.FLinkedList displayedStatusMessages
          No comment provided by developer, please add a comment to improve documentation.
private  EditModeFactory editModeFactory
          for (de)activate alternate editing modes
private  javax.swing.JFileChooser fileChooser
          No comment provided by developer, please add a comment to improve documentation.
private  SchemaFilter filterFujabaProject
          No comment provided by developer, please add a comment to improve documentation.
private  SchemaFilter filterJarFiles
          No comment provided by developer, please add a comment to improve documentation.
private  SchemaFilter filterJavaFiles
          No comment provided by developer, please add a comment to improve documentation.
private static FrameMain frame
          The singleton instance.
private  InternalFrame frameDummy
          No comment provided by developer, please add a comment to improve documentation.
(package private)  java.util.Map frames
          map ASGDiagram -> InternalFrame
private  boolean inShowDiagram
          true while executing showDiagram(de.uni_paderborn.fujaba.asg.ASGDiagram)
private  javax.swing.JSplitPane leftSplitPane
          horizontal split pane on the left of the main frame
private static org.apache.log4j.Logger log
          log4j logging
private static int MAX_DISPLAYED_STATUS_MESSAGES
          No comment provided by developer, please add a comment to improve documentation.
private  javax.swing.JLabel memoryLabel
          No comment provided by developer, please add a comment to improve documentation.
static java.lang.String MESSAGE_CLASS_STATUS
          No comment provided by developer, please add a comment to improve documentation.
private  javax.swing.JPanel messagePanel
          No comment provided by developer, please add a comment to improve documentation.
private  MessageView messageView
          No comment provided by developer, please add a comment to improve documentation.
static java.io.File PLUGIN_DIR
          Directory of the plugins loaded by Fujaba and DOBS
private static de.uni_kassel.prop.PropertyConfigurationAdapter propertyConfiguration
          allows Fujaba to specify own popups in property editor
private  de.uni_kassel.prop.JPropertyTable propertyEditor
          property editor (bottom left)
(package private)  javax.swing.JLabel propertyEditorCaption
          caption for the property editor (shows currently selected object's class)
private  javax.swing.JPanel propertyEditorContainer
          container for the property editor
private  javax.swing.AbstractAction saveAction
          store the value for field saveAction
private  de.upb.tools.fca.FHashMap scrollBarPositions
          No comment provided by developer, please add a comment to improve documentation.
private  javax.swing.JSplitPane splitMessagesAndDesktop
          No comment provided by developer, please add a comment to improve documentation.
private  javax.swing.JSplitPane splitpane
          No comment provided by developer, please add a comment to improve documentation.
(package private)  javax.swing.JLabel statusLabel
          No comment provided by developer, please add a comment to improve documentation.
private  TabbedPaneProxy tabbedPaneProxy
           0..1 tabbedPaneProxy 0..1 TabbedPaneProxy -------------------------------- FrameMain tabbedPaneProxy frameMain
private  UMLProject umlProject
          No comment provided by developer, please add a comment to improve documentation.
 
Fields inherited from class javax.swing.JFrame
accessibleContext, EXIT_ON_CLOSE, rootPane, rootPaneCheckingEnabled
 
Fields inherited from class java.awt.Frame
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
 
Fields inherited from class java.awt.Window
 
Fields inherited from class java.awt.Container
 
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
Fields inherited from interface javax.swing.WindowConstants
DISPOSE_ON_CLOSE, DO_NOTHING_ON_CLOSE, HIDE_ON_CLOSE
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
private FrameMain()
          Initializes FrameMain
 
Method Summary
private  void activateFrame(InternalFrame frame)
          No comment provided by developer, please add a comment to improve documentation.
 void addDiagramToolBar(javax.swing.JToolBar toolBar)
          Deprecated. please use getInternalFrame(de.uni_paderborn.fujaba.asg.ASGDiagram).addDiagramToolBar
 boolean addToDecorators(FrameDecorator value)
          Access method for an one to n association.
private  void centerFrame()
          No comment provided by developer, please add a comment to improve documentation.
 void closeAllDiagrams()
          close all diagrams
 void closeAllInternalFrames()
          close all internal frames (including diagrams)
 void createNewTreeItems()
          Updates the tree items of the tabbed panes and builds the dtd tree.
protected  javax.swing.JSplitPane createSplitPane(java.awt.Component westComp, java.awt.Component eastComp)
          Creates a horizontal JSplitPane.
 javax.swing.JPanel createStatusbar()
          Creates a status bar.
 void doEverythingOnEntry(ASGDiagram diag)
          No comment provided by developer, please add a comment to improve documentation.
 void doEverythingOnEntry(ASGDiagram diag, boolean saveScrollBarPos)
          No comment provided by developer, please add a comment to improve documentation.
 void doEverythingOnExit(ASGDiagram diag)
          No comment provided by developer, please add a comment to improve documentation.
 void doEverythingOnExit(ASGDiagram diag, boolean saveScrollBarPos)
          No comment provided by developer, please add a comment to improve documentation.
static FrameMain get()
          Returns the singleton FrameMain.
 InternalFrame getCurrentInternalFrame()
          Currently selected internal frame.
 javax.swing.JDesktopPane getDesktop()
          Desktop pane for custom child windows.
 FSALayeredPane getDiagramRoot()
          Deprecated. please use getInternalFrame(yourdiagram).getDiagramRoot()
 EditModeFactory getEditMode()
          Get the editMode attribute of the FrameMain object
 javax.swing.JFileChooser getFileChooser()
          Get the fileChooser attribute of the FrameMain object.
 SchemaFilter getFilterFujabaProject()
          Get the filterFujabaProject attribute of the FrameMain object value.
 SchemaFilter getFilterJarFiles()
          Get the filterJarFiles attribute of the FrameMain object value
 SchemaFilter getFilterJavaFiles()
          Get the filterJavaFiles attribute of the FrameMain object value
 javax.swing.JFrame getFrame()
          Find the hosting frame, for the file-chooser dialog.
 InternalFrame getInternalFrame(ASGDiagram diagram)
          Find or create an internal frame for a diagram.
private  java.lang.String getKiloByte(long memory)
          Get the kiloByte attribute of the FrameMain object
 MessageView getMessageView()
          Default view for messages.
 de.uni_kassel.prop.JPropertyTable getPropertyEditor()
          Get the propertyEditor attribute of the FrameMain object value
protected  java.awt.Component getRightComponent()
          Get the rightComponent attribute of the FrameMain object
 javax.swing.AbstractAction getSaveAction()
          getter for field saveAction
 javax.swing.tree.DefaultMutableTreeNode getSelectedTreeNode()
          Returns the selected node or null if no selection available.
 javax.swing.JSplitPane getSplitPane()
          Fetch the JSplitPane contained in this JPanel.
 TabbedPaneProxy getTabbedPaneProxy()
          Get the tabbedPaneProxy attribute of the FrameMain object
 boolean hasInDecorators(FrameDecorator value)
          No comment provided by developer, please add a comment to improve documentation.
 void hideMessageView()
          Hide the message view.
 void init()
          initializes FrameMain
 boolean isInShowDiagram()
          Get the inShowDiagram attribute of the FrameMain object
 java.util.Iterator iteratorOfDecorators()
          No comment provided by developer, please add a comment to improve documentation.
 void openFile(java.io.File file)
          No comment provided by developer, please add a comment to improve documentation.
 void removeAllFromDecorators()
          No comment provided by developer, please add a comment to improve documentation.
 void removeDiagramToolBar(javax.swing.JToolBar toolBar)
          Deprecated. please use getInternalFrame(de.uni_paderborn.fujaba.asg.ASGDiagram).removeDiagramToolBar
 boolean removeFromDecorators(FrameDecorator value)
          No comment provided by developer, please add a comment to improve documentation.
 void removeYou()
          No comment provided by developer, please add a comment to improve documentation.
private  void repairUnparseInformation()
          No comment provided by developer, please add a comment to improve documentation.
private  void saveFSAProperties(FSAContainer container)
          No comment provided by developer, please add a comment to improve documentation.
 void selectTreeItem(java.lang.Object obj)
          Selects a tree item and the associated tab containing this item.
 void setCursorDefault()
          Sets the default cursor for the whole frame.
 void setCursorWait()
          Sets the wait cursor for the whole frame.
 void setEditMode(EditModeFactory editModeFactory)
          Sets the editMode attribute of the FrameMain object
 void setMemoryLabel()
          Sets the current free memory.
protected  void setRightComponent(java.awt.Component comp)
          Sets the rightComponent attribute of the FrameMain object
 void setSaveAction(javax.swing.AbstractAction value)
          setter for field saveAction
 void setStatusLabel(java.lang.String text)
          Sets the current text of the status bar.
 boolean setTabbedPaneProxy(TabbedPaneProxy value)
          Sets the tabbedPaneProxy attribute of the FrameMain object
 void setUMLProject(UMLProject project)
          Set a new UMLProject and reset the tree and other stuff.
 void show()
          No comment provided by developer, please add a comment to improve documentation.
 void showDiagram(ASGDiagram diag)
          Switch the view to a specific diagram
 Message showError(java.lang.String text, ASGElement context)
          Convenience method to show a standard error text.
 void showMessageView()
          Show the message view.
 void showPropertyEditor(boolean show)
          shows/hides the property editor
 void showTitle()
          Set program title, project name and file name
 int sizeOfDecorators()
          No comment provided by developer, please add a comment to improve documentation.
private  void subscribeActionErrorListener()
          No comment provided by developer, please add a comment to improve documentation.
 void writePropertyEditorConfig()
          No comment provided by developer, please add a comment to improve documentation.
 
Methods inherited from class javax.swing.JFrame
addImpl, createRootPane, frameInit, getAccessibleContext, getContentPane, getDefaultCloseOperation, getGlassPane, getJMenuBar, getLayeredPane, getRootPane, isDefaultLookAndFeelDecorated, isRootPaneCheckingEnabled, paramString, processWindowEvent, remove, setContentPane, setDefaultCloseOperation, setDefaultLookAndFeelDecorated, setGlassPane, setJMenuBar, setLayeredPane, setLayout, setRootPane, setRootPaneCheckingEnabled, update
 
Methods inherited from class java.awt.Frame
addNotify, finalize, getCursorType, getExtendedState, getFrames, getIconImage, getMaximizedBounds, getMenuBar, getState, getTitle, isResizable, isUndecorated, remove, removeNotify, setCursor, setExtendedState, setIconImage, setMaximizedBounds, setMenuBar, setResizable, setState, setTitle, setUndecorated
 
Methods inherited from class java.awt.Window
addPropertyChangeListener, addPropertyChangeListener, addWindowFocusListener, addWindowListener, addWindowStateListener, applyResourceBundle, applyResourceBundle, createBufferStrategy, createBufferStrategy, dispose, getBufferStrategy, getFocusableWindowState, getFocusCycleRootAncestor, getFocusOwner, getFocusTraversalKeys, getGraphicsConfiguration, getInputContext, getListeners, getLocale, getMostRecentFocusOwner, getOwnedWindows, getOwner, getToolkit, getWarningString, getWindowFocusListeners, getWindowListeners, getWindowStateListeners, hide, isActive, isFocusableWindow, isFocusCycleRoot, isFocused, isShowing, pack, postEvent, processEvent, processWindowFocusEvent, processWindowStateEvent, removeWindowFocusListener, removeWindowListener, removeWindowStateListener, setCursor, setFocusableWindowState, setFocusCycleRoot, setLocationRelativeTo, toBack, toFront
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getContainerListeners, getFocusTraversalPolicy, getInsets, getLayout, getMaximumSize, getMinimumSize, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paint, paintComponents, preferredSize, print, printComponents, processContainerEvent, remove, removeAll, removeContainerListener, setFocusTraversalKeys, setFocusTraversalPolicy, setFont, transferFocusBackward, 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, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, 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, isOpaque, 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, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, reshape, resize, resize, setBackground, setBounds, setBounds, setComponentOrientation, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, setVisible, show, size, toString, transferFocus, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.awt.MenuContainer
getFont, postEvent
 

Field Detail

log

private static final transient org.apache.log4j.Logger log
log4j logging


scrollBarPositions

private de.upb.tools.fca.FHashMap scrollBarPositions
No comment provided by developer, please add a comment to improve documentation.


statusLabel

javax.swing.JLabel statusLabel
No comment provided by developer, please add a comment to improve documentation.


memoryLabel

private javax.swing.JLabel memoryLabel
No comment provided by developer, please add a comment to improve documentation.


splitpane

private javax.swing.JSplitPane splitpane
No comment provided by developer, please add a comment to improve documentation.


umlProject

private UMLProject umlProject
No comment provided by developer, please add a comment to improve documentation.


fileChooser

private javax.swing.JFileChooser fileChooser
No comment provided by developer, please add a comment to improve documentation.


PLUGIN_DIR

public static final java.io.File PLUGIN_DIR
Directory of the plugins loaded by Fujaba and DOBS


leftSplitPane

private javax.swing.JSplitPane leftSplitPane
horizontal split pane on the left of the main frame


propertyEditor

private de.uni_kassel.prop.JPropertyTable propertyEditor
property editor (bottom left)


propertyEditorContainer

private javax.swing.JPanel propertyEditorContainer
container for the property editor


propertyEditorCaption

javax.swing.JLabel propertyEditorCaption
caption for the property editor (shows currently selected object's class)


messagePanel

private javax.swing.JPanel messagePanel
No comment provided by developer, please add a comment to improve documentation.


messageView

private MessageView messageView
No comment provided by developer, please add a comment to improve documentation.


splitMessagesAndDesktop

private javax.swing.JSplitPane splitMessagesAndDesktop
No comment provided by developer, please add a comment to improve documentation.


MAX_DISPLAYED_STATUS_MESSAGES

private static final int MAX_DISPLAYED_STATUS_MESSAGES
No comment provided by developer, please add a comment to improve documentation.

See Also:
Constant Field Values

MESSAGE_CLASS_STATUS

public static final java.lang.String MESSAGE_CLASS_STATUS
No comment provided by developer, please add a comment to improve documentation.

See Also:
Constant Field Values

editModeFactory

private EditModeFactory editModeFactory
for (de)activate alternate editing modes


frame

private static volatile FrameMain frame
The singleton instance.


filterFujabaProject

private SchemaFilter filterFujabaProject
No comment provided by developer, please add a comment to improve documentation.


filterJavaFiles

private SchemaFilter filterJavaFiles
No comment provided by developer, please add a comment to improve documentation.


filterJarFiles

private SchemaFilter filterJarFiles
No comment provided by developer, please add a comment to improve documentation.


desktop

javax.swing.JDesktopPane desktop
container for childwindows


propertyConfiguration

private static de.uni_kassel.prop.PropertyConfigurationAdapter propertyConfiguration
allows Fujaba to specify own popups in property editor


DEFAULT_INTERNAL_FRAME_SIZE

public static java.awt.Dimension DEFAULT_INTERNAL_FRAME_SIZE
size of an inner diagram frame after creation


inShowDiagram

private boolean inShowDiagram
true while executing showDiagram(de.uni_paderborn.fujaba.asg.ASGDiagram)


frames

java.util.Map frames
map ASGDiagram -> InternalFrame


frameDummy

private final InternalFrame frameDummy
No comment provided by developer, please add a comment to improve documentation.


tabbedPaneProxy

private TabbedPaneProxy tabbedPaneProxy
                  0..1   tabbedPaneProxy    0..1
 TabbedPaneProxy -------------------------------- FrameMain
                  tabbedPaneProxy      frameMain
 


decorators

private de.upb.tools.fca.FHashSet decorators
                 0..n    decorators   0..1
 FrameDecorator --------------------------- FrameMain
                 decorators      frameMain
 


displayedStatusMessages

private de.upb.tools.fca.FLinkedList displayedStatusMessages
No comment provided by developer, please add a comment to improve documentation.


saveAction

private javax.swing.AbstractAction saveAction
store the value for field saveAction

Constructor Detail

FrameMain

private FrameMain()
Initializes FrameMain

Method Detail

getEditMode

public EditModeFactory getEditMode()
Get the editMode attribute of the FrameMain object

Returns:
The editMode value

setEditMode

public void setEditMode(EditModeFactory editModeFactory)
Sets the editMode attribute of the FrameMain object

Parameters:
editModeFactory - The new editMode value

get

public static FrameMain get()
Returns the singleton FrameMain.

Returns:
No description provided

getMessageView

public MessageView getMessageView()
Default view for messages.

Returns:
message view

showMessageView

public void showMessageView()
Show the message view.


hideMessageView

public void hideMessageView()
Hide the message view.


init

public void init()
initializes FrameMain


subscribeActionErrorListener

private void subscribeActionErrorListener()
No comment provided by developer, please add a comment to improve documentation.


getFilterFujabaProject

public SchemaFilter getFilterFujabaProject()
Get the filterFujabaProject attribute of the FrameMain object value.

Returns:
The filterFujabaProject value

getFilterJavaFiles

public SchemaFilter getFilterJavaFiles()
Get the filterJavaFiles attribute of the FrameMain object value

Returns:
The filterJavaFiles value

getFilterJarFiles

public SchemaFilter getFilterJarFiles()
Get the filterJarFiles attribute of the FrameMain object value

Returns:
The filterJarFiles value

getFileChooser

public javax.swing.JFileChooser getFileChooser()
Get the fileChooser attribute of the FrameMain object.

Returns:
The fileChooser value

getDesktop

public javax.swing.JDesktopPane getDesktop()
Desktop pane for custom child windows.

Returns:
the desktop pane

isInShowDiagram

public boolean isInShowDiagram()
Get the inShowDiagram attribute of the FrameMain object

Returns:
The inShowDiagram value

showDiagram

public void showDiagram(ASGDiagram diag)
Switch the view to a specific diagram

Parameters:
diag - what to view and select on the desktop

activateFrame

private void activateFrame(InternalFrame frame)
No comment provided by developer, please add a comment to improve documentation.

Parameters:
frame - No description provided

getInternalFrame

public InternalFrame getInternalFrame(ASGDiagram diagram)
Find or create an internal frame for a diagram.

Parameters:
diagram - what to find a frame for
Returns:
the InternalFrame that shows the diagram (never null)

getCurrentInternalFrame

public InternalFrame getCurrentInternalFrame()
Currently selected internal frame.

Returns:
currently selected internal frame

closeAllInternalFrames

public void closeAllInternalFrames()
close all internal frames (including diagrams)


closeAllDiagrams

public void closeAllDiagrams()
close all diagrams


getPropertyEditor

public de.uni_kassel.prop.JPropertyTable getPropertyEditor()
Get the propertyEditor attribute of the FrameMain object value

Returns:
The propertyEditor

showPropertyEditor

public void showPropertyEditor(boolean show)
shows/hides the property editor

Parameters:
show - when true the property editor is shown (otherwise hidden)

writePropertyEditorConfig

public void writePropertyEditorConfig()
No comment provided by developer, please add a comment to improve documentation.


centerFrame

private void centerFrame()
No comment provided by developer, please add a comment to improve documentation.


show

public void show()
No comment provided by developer, please add a comment to improve documentation.


setTabbedPaneProxy

public boolean setTabbedPaneProxy(TabbedPaneProxy value)
Sets the tabbedPaneProxy attribute of the FrameMain object

Parameters:
value - The new tabbedPaneProxy value
Returns:
No description provided

getTabbedPaneProxy

public TabbedPaneProxy getTabbedPaneProxy()
Get the tabbedPaneProxy attribute of the FrameMain object

Returns:
The tabbedPaneProxy value

hasInDecorators

public boolean hasInDecorators(FrameDecorator value)
No comment provided by developer, please add a comment to improve documentation.

Parameters:
value - No description provided
Returns:
No description provided

iteratorOfDecorators

public java.util.Iterator iteratorOfDecorators()
No comment provided by developer, please add a comment to improve documentation.

Returns:
No description provided

sizeOfDecorators

public int sizeOfDecorators()
No comment provided by developer, please add a comment to improve documentation.

Returns:
No description provided

addToDecorators

public boolean addToDecorators(FrameDecorator value)
Access method for an one to n association. @@param value The object added.

Parameters:
value - The object added.
Returns:
No description provided

removeFromDecorators

public boolean removeFromDecorators(FrameDecorator value)
No comment provided by developer, please add a comment to improve documentation.

Parameters:
value - No description provided
Returns:
No description provided

removeAllFromDecorators

public void removeAllFromDecorators()
No comment provided by developer, please add a comment to improve documentation.


removeYou

public void removeYou()
No comment provided by developer, please add a comment to improve documentation.


setUMLProject

public void setUMLProject(UMLProject project)
Set a new UMLProject and reset the tree and other stuff.

Parameters:
project - The new uMLProject value

createStatusbar

public javax.swing.JPanel createStatusbar()
Creates a status bar.

Returns:
No description provided

setStatusLabel

public void setStatusLabel(java.lang.String text)
Sets the current text of the status bar.

Parameters:
text - The new statusLabel value

showError

public Message showError(java.lang.String text,
                         ASGElement context)
Convenience method to show a standard error text.

Parameters:
text - error message text
context - what to highligh if message is clicked
Returns:
the nely created message (already added to message view)

getKiloByte

private java.lang.String getKiloByte(long memory)
Get the kiloByte attribute of the FrameMain object

Parameters:
memory - No description provided
Returns:
The kiloByte value

setMemoryLabel

public void setMemoryLabel()
Sets the current free memory.


doEverythingOnEntry

public void doEverythingOnEntry(ASGDiagram diag)
No comment provided by developer, please add a comment to improve documentation.

Parameters:
diag - No description provided

doEverythingOnEntry

public void doEverythingOnEntry(ASGDiagram diag,
                                boolean saveScrollBarPos)
No comment provided by developer, please add a comment to improve documentation.

Parameters:
diag - No description provided
saveScrollBarPos - No description provided

getDiagramRoot

public FSALayeredPane getDiagramRoot()
Deprecated. please use getInternalFrame(yourdiagram).getDiagramRoot()

Returns:
the current diagram root
See Also:
InternalFrame.getDiagramRoot()

doEverythingOnExit

public void doEverythingOnExit(ASGDiagram diag)
No comment provided by developer, please add a comment to improve documentation.

Parameters:
diag - No description provided

doEverythingOnExit

public void doEverythingOnExit(ASGDiagram diag,
                               boolean saveScrollBarPos)
No comment provided by developer, please add a comment to improve documentation.

Parameters:
diag - No description provided
saveScrollBarPos - No description provided

createSplitPane

protected javax.swing.JSplitPane createSplitPane(java.awt.Component westComp,
                                                 java.awt.Component eastComp)
Creates a horizontal JSplitPane.

Parameters:
westComp - No description provided
eastComp - No description provided
Returns:
No description provided

setRightComponent

protected void setRightComponent(java.awt.Component comp)
Sets the rightComponent attribute of the FrameMain object

Parameters:
comp - The new rightComponent value

getRightComponent

protected java.awt.Component getRightComponent()
Get the rightComponent attribute of the FrameMain object

Returns:
The rightComponent value

getSplitPane

public javax.swing.JSplitPane getSplitPane()
Fetch the JSplitPane contained in this JPanel.

Returns:
The splitPane value

getFrame

public javax.swing.JFrame getFrame()
Find the hosting frame, for the file-chooser dialog.

Returns:
The frame value

setCursorWait

public void setCursorWait()
Sets the wait cursor for the whole frame.


setCursorDefault

public void setCursorDefault()
Sets the default cursor for the whole frame.


openFile

public void openFile(java.io.File file)
No comment provided by developer, please add a comment to improve documentation.

Parameters:
file - No description provided

repairUnparseInformation

private void repairUnparseInformation()
No comment provided by developer, please add a comment to improve documentation.


saveFSAProperties

private void saveFSAProperties(FSAContainer container)
No comment provided by developer, please add a comment to improve documentation.

Parameters:
container - No description provided

createNewTreeItems

public void createNewTreeItems()
Updates the tree items of the tabbed panes and builds the dtd tree.


selectTreeItem

public void selectTreeItem(java.lang.Object obj)
Selects a tree item and the associated tab containing this item.

Parameters:
obj - The item which will be selected.

getSelectedTreeNode

public javax.swing.tree.DefaultMutableTreeNode getSelectedTreeNode()
Returns the selected node or null if no selection available.

Returns:
The selected node.

showTitle

public void showTitle()
Set program title, project name and file name


addDiagramToolBar

public void addDiagramToolBar(javax.swing.JToolBar toolBar)
Deprecated. please use getInternalFrame(de.uni_paderborn.fujaba.asg.ASGDiagram).addDiagramToolBar

Parameters:
toolBar - toolbar to be added

removeDiagramToolBar

public void removeDiagramToolBar(javax.swing.JToolBar toolBar)
Deprecated. please use getInternalFrame(de.uni_paderborn.fujaba.asg.ASGDiagram).removeDiagramToolBar

Parameters:
toolBar - toolbar to be removed

getSaveAction

public javax.swing.AbstractAction getSaveAction()
getter for field saveAction

Returns:
the action that should be used by default to save a project

setSaveAction

public void setSaveAction(javax.swing.AbstractAction value)
setter for field saveAction

Parameters:
value - new value