CH.ifa.draw.contrib
Class MDI_InternalFrame
- java.lang.Object
-
- java.awt.Component
-
- java.awt.Container
-
- javax.swing.JComponent
-
- javax.swing.JInternalFrame
-
- CH.ifa.draw.contrib.MDI_InternalFrame
-
- All Implemented Interfaces:
- java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable, javax.accessibility.Accessible, javax.swing.RootPaneContainer, javax.swing.WindowConstants
public class MDI_InternalFrame extends javax.swing.JInternalFrameThis class provides support for JHotDraw applications with multiple document interfaces.- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class javax.swing.JInternalFrame
javax.swing.JInternalFrame.JDesktopIcon
-
-
Field Summary
-
Fields inherited from class javax.swing.JInternalFrame
CONTENT_PANE_PROPERTY, FRAME_ICON_PROPERTY, GLASS_PANE_PROPERTY, IS_CLOSED_PROPERTY, IS_ICON_PROPERTY, IS_MAXIMUM_PROPERTY, IS_SELECTED_PROPERTY, LAYERED_PANE_PROPERTY, MENU_BAR_PROPERTY, ROOT_PANE_PROPERTY, TITLE_PROPERTY
-
Fields inherited from class javax.swing.JComponent
TOOL_TIP_TEXT_KEY, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
-
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
-
-
Constructor Summary
Constructors Constructor and Description MDI_InternalFrame()Create a new internal frameMDI_InternalFrame(java.lang.String title)Create a new internal frame with a given nameMDI_InternalFrame(java.lang.String title, boolean resizable)Create a new internal frame with a given nameMDI_InternalFrame(java.lang.String title, boolean resizable, boolean closable)Create a new internal frame with a given nameMDI_InternalFrame(java.lang.String title, boolean resizable, boolean closable, boolean maximizable)Create a new internal frame with a given nameMDI_InternalFrame(java.lang.String title, boolean resizable, boolean closable, boolean maximizable, boolean iconifiable)Create a new internal frame with a given name
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description DrawinggetDrawing()Get the drawing which is represented in the internal frameDrawingViewgetDrawingView()Get the drawing view which represents the internal frameStandardDrawingViewreplaceDrawingView(StandardDrawingView newDrawingView)Replace an existing drawing view with a new one.voidsetDrawing(Drawing newInternalDrawing)Set the drawing which is represented in the internal framevoidsetDrawingView(DrawingView newInternalDrawingView)Set the drawing view which represents the internal frame-
Methods inherited from class javax.swing.JInternalFrame
addInternalFrameListener, dispose, doDefaultCloseAction, 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, isSelected, moveToBack, moveToFront, pack, 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, setSelected, setTitle, setUI, show, toBack, toFront, updateUI
-
Methods inherited from class javax.swing.JComponent
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, 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, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintImmediately, paintImmediately, print, printAll, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, 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, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
-
Methods inherited from class java.awt.Container
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, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, transferFocusDownCycle, validate
-
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, contains, createImage, createImage, createVolatileImage, createVolatileImage, dispatchEvent, enable, enableInputMethods, 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, 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
-
-
-
-
Constructor Detail
-
MDI_InternalFrame
public MDI_InternalFrame()
Create a new internal frame
-
MDI_InternalFrame
public MDI_InternalFrame(java.lang.String title)
Create a new internal frame with a given name- Parameters:
title- name of the internal frame
-
MDI_InternalFrame
public MDI_InternalFrame(java.lang.String title, boolean resizable)Create a new internal frame with a given name- Parameters:
title- name of the internal frameresizable- true, if the frame is resizable
-
MDI_InternalFrame
public MDI_InternalFrame(java.lang.String title, boolean resizable, boolean closable)Create a new internal frame with a given name- Parameters:
title- name of the internal frameresizable- true, if the frame is resizableclosable- true, if the frame is closable
-
MDI_InternalFrame
public MDI_InternalFrame(java.lang.String title, boolean resizable, boolean closable, boolean maximizable)Create a new internal frame with a given name- Parameters:
title- name of the internal frameresizable- true, if the frame is resizableclosable- true, if the frame is closablemaximizable- true, if the frame is maximizable
-
MDI_InternalFrame
public MDI_InternalFrame(java.lang.String title, boolean resizable, boolean closable, boolean maximizable, boolean iconifiable)Create a new internal frame with a given name- Parameters:
title- name of the internal frameresizable- true, if the frame is resizableclosable- true, if the frame is closablemaximizable- true, if the frame is maximizableiconifiable- ture, if the frame is iconifiable
-
-
Method Detail
-
setDrawingView
public void setDrawingView(DrawingView newInternalDrawingView)
Set the drawing view which represents the internal frame- Parameters:
newInternalDrawingView- drawing view for this internal frame
-
getDrawingView
public DrawingView getDrawingView()
Get the drawing view which represents the internal frame- Parameters:
newInternalDrawingView- drawing view for this internal frame
-
setDrawing
public void setDrawing(Drawing newInternalDrawing)
Set the drawing which is represented in the internal frame- Parameters:
newInternalDrawing- drawing for the internal frame
-
getDrawing
public Drawing getDrawing()
Get the drawing which is represented in the internal frame- Returns:
- drawing for the internal frame
-
replaceDrawingView
public StandardDrawingView replaceDrawingView(StandardDrawingView newDrawingView)
Replace an existing drawing view with a new one. A JHotDraw application can have only one DrawingView active at a time. Therefore, the currently active internal frame gets the active DrawingView after its Drawing view has been backed up for later restorage.
-
-
DataMelt 3.0 © DataMelt by jWork.ORG