com.swfm.mica.view
Class MiGraphicsWindow

java.lang.Object
  extended bycom.swfm.mica.core.MiPart
      extended bycom.swfm.mica.core.MiContainer
          extended bycom.swfm.mica.core.MiEditor
              extended bycom.swfm.mica.core.MiWindow
                  extended bycom.swfm.mica.core.MiNativeWindow
                      extended bycom.swfm.mica.parts.MiEditorWindow
                          extended bycom.swfm.mica.parts.MiFileEditorWindow
                              extended bycom.swfm.mica.view.MiGraphicsWindow
All Implemented Interfaces:
MiiActionHandler, MiiActionTypes, MiiAttributeTypes, MiiCommandHandler, MiiCommandManager, MiiCommandNames, MiiDisplayNames, MiiDragAndDropParticipant, MiiEventTypes, MiiMessages, MiiNames, MiiPropertyTypes, MiiScrollableData, MiiSimpleAnimator, MiiTargetableCommandHandler, MiiTypes

public class MiGraphicsWindow
extends MiFileEditorWindow
implements MiiDisplayNames

This class implements a graphics editor using the Mica Graphics Framework. This includes the display and editing of graphics drawing primitives, widgets and node-line graphs. The graphics is loaded and saved to files in the mica graphics format.

This window has a graphics editor specific menubar, toolbar and an optional palette. The palette is a list of graphics that can be dragged into the editor. It's contents are loaded from the mica graphics files in the location specified by the property Mi_GRAPHICS_PALETTES_HOME (which by default is equal to ${Mi_CURRENT_DIRECTORY}/palettes).

Version:
%I% %G%
Author:
Michael L. Davis

Field Summary
static java.lang.String Mi_GRAPHICS_WINDOW_ABOUT_MSG
           
static java.lang.String Mi_HIDE_PALETTE_COMMAND_NAME
           
static java.lang.String Mi_HIDE_PALETTE_LABELS_COMMAND_NAME
           
static java.lang.String Mi_MICA_DEFAULT_GRAPHICS_FILENAME
           
static java.lang.String Mi_MICA_GRAPHICS_FILENAME_EXTENSION
           
static java.lang.String Mi_PALETTE_SAVE_AS_NAME
           
static java.lang.String Mi_PALETTE_SAVE_NAME
           
static java.lang.String Mi_SHOW_PALETTE_LABELS_NAME
           
static java.lang.String Mi_SHOW_PALETTE_NAME
           
                         
Constructor Summary
MiGraphicsWindow(java.awt.Frame frame, java.lang.String title, MiBounds screenSize)
           
MiGraphicsWindow(java.awt.Frame frame, java.lang.String title, MiBounds screenSize, MiJDKAPIComponentType nativeComponentType)
          Constructs a new MiGraphicsWindow.
MiGraphicsWindow(java.lang.String title, MiBounds screenSize)
          Constructs a new MiGraphicsWindow, creates a new AWT Frame, and adds this MiGraphicsWindow, with the given title and size, to the AWT Frame.
 
Method Summary
 MiDrawingConnectionToolBar getConnectionToolbar()
           
 MiiController getController()
          Gets the manager of the current open document.
 MiToolBar getDrawingAttributesToolBar()
           
 MiToolBar getDrawingShapeToolBar()
           
 MiGraphicsEditor getGraphEditor()
          Gets the graphics editor that manages the main panel of this window.
 boolean getHasChanged()
          Gets whether this window has changed.
 MiHelpWindow getHelpWindow()
           
 boolean getKeepShapesWithinPageBounds()
           
 MiPageManager getPageManager()
           
 MiRulerBox getRulerBox()
           
 MiModelPropertyViewManager getRulersDialogBox()
           
 MiDrawingVisibilityToolBar getVisiblityToolbar()
           
 MiPart makeDefaultEditorPanel()
          Makes the graphics editor panel for the window.
 boolean openPalette(java.lang.String filename)
          Opens the palette and loads it with the graphics in the given filename.
 void print()
           
 boolean printFile(java.lang.String filename)
           
 boolean processAction(MiiAction action)
          Processes the given action.
 void processCommand(java.lang.String command)
          Processes the given command.
 boolean save(MiFileEditorWindowDocumentView view, java.io.OutputStream stream, java.lang.String streamName)
          Saves the contents of the graphics editor of the given view.
 boolean save(java.io.OutputStream stream, java.lang.String streamName)
          Saves the contents of the graphics editor.
 void setCanHaveEditableAnnotationPoints(boolean flag)
           
 void setCanHaveEditableConnectionPoints(boolean flag)
           
 void setCanHaveVisibleAnnotationPoints(boolean hasPts, boolean hasPtsDialog)
           
 void setCanHaveVisibleConnectionPoints(boolean hasPts, boolean hasPtsDialog)
           
 void setCapabilities(boolean hasGraphsMenu, boolean hasLayoutsMenu, boolean hasDrawingToolbar, boolean hasShapeAttributesDialog, boolean hasRulers, boolean hasDrawingPages, boolean hasDrawingPagesDialogBox, boolean hasDrawingGrid, boolean hasLayers, boolean hasBirdsEyeView, boolean hasPalette, boolean hasConnectionToolBar, boolean hasVisibilityToolBar, boolean canHaveVisibleConnectionPoints, boolean canHaveVisibleAnnotationPoints, boolean hasConnectionPointsDialog, boolean hasAnnotationPointsDialog)
           
 void setController(MiiController c)
          Sets the manager of the current open document.
 void setCurrentView(MiFileEditorWindowDocumentView view)
           
 void setDefaultController(MiiController controller)
          Sets the default controller to use to load documents with.
 void setDefaultPaletteController(MiiController controller)
          Sets the default controller to use to load palettes with.
 void setEditor(MiEditor editor)
          Sets the editor that the menubar, statusbar and toolbar and (3rd button) background menu act on and report about.
 void setHasAnotherView(boolean flag)
           
 void setHasBirdsEyeView(boolean flag)
           
 void setHasConnectionToolbar(boolean flag)
           
 void setHasDrawingGrid(boolean flag)
           
 void setHasDrawingPages(boolean flag)
           
 void setHasDrawingToolbar(boolean flag)
           
 void setHasFishEyeView(boolean flag)
           
 void setHasLayers(boolean flag)
          Sets whether this MiEditor is to have 'layers'.
 void setHasMagnifierLens(boolean flag)
           
 void setHasMagnifierView(boolean flag)
           
 void setHasRulers(boolean flag)
           
 void setHasVisibilityToolbar(boolean flag)
           
 void setKeepShapesWithinPageBounds(boolean flag)
           
 void setupDefaultSelectionGraphics()
           
 boolean verifyLossOfAnyChanges()
          Gets whether this window has changed.
 
Methods inherited from class com.swfm.mica.parts.MiFileEditorWindow
animate, backupAllViews, calcBackupFilename, getAutomaticBackupFilename, getAutomaticBackupFilenameTemplate, getAutomaticBackupFrequency, getAvailableOpenFileFormatExtensions, getAvailableOpenFileFormatExtensionsIgnoreCases, getAvailableOpenFileFormatNames, getAvailableSaveFileFormatExtensions, getAvailableSaveFileFormatExtensionsIgnoreCases, getAvailableSaveFileFormatNames, getChangedViews, getChangedViewsSinceLastBackup, getCurrentSaveFileFormat, getCurrentView, getDefaultFilenameRoot, getDefaultWindowTitle, getNameOfFileWhichDoesNotExist, getOpenAndSaveAsDefaultDirectory, getOpenFilename, getOpeningFilename, getPrintFileFormat, getPrintUsingJDK, getRequiredFileExtension, getRequiredPrintFileExtension, getSupportsMultipleOpenDocuments, getUseDefaultFilenameRootAsDefaultFile, getWarnIfSaveToExistingFile, getWillChangeOpenFileToSavedAsFile, isAutomaticBackupEnabled, openAdditionalFile, openDefaultFile, openFile, openNewFile, openTheDefaultFile, popCurrentView, pushCurrentView, save, saveFile, saveFile, saveFile, setAutomaticBackupEnabled, setAutomaticBackupFilename, setAutomaticBackupFilenameTemplate, setAutomaticBackupFrequency, setAvailableOpenFileFormats, setAvailableSaveFileFormats, setBackupFileAsNotRestored, setCommandSensitivity, setDefaultFilenameRoot, setHasChanged, setOpenAndSaveAsDefaultDirectory, setOpenFilename, setOpenFilenameReadOnly, setOpenFileTitle, setPrintFileFormat, setPrintUsingJDK, setRequiredFileExtension, setRequiredPrintFileExtension, setSupportsMultipleOpenDocuments, setUseDefaultFilenameRootAsDefaultFile, setWarnIfSaveToExistingFile, setWillChangeOpenFileToSavedAsFile, verifyLossOfAnyChangesAllViews
 
Methods inherited from class com.swfm.mica.parts.MiEditorWindow
buildEditorWindow, buildEditorWindow, buildEditorWindow, createGraphicsContents, getBottomDockingPanel, getBuildDockingPanels, getContainerOfAreaBelowToolbar, getEditor, getEditorPanel, getLeftDockingPanel, getMenuBar, getMenuBarButton, getPalette, getPopupMenu, getRightDockingPanel, getStatusBar, getTargetOfCommand, getToolBar, getTopDockingPanel, registerCommandDependentWidget, setBuildDockingPanels, setCommandLabel, setCommandManager, setCommandOptions, setCommandPropertyValue, setCommandSensitivity, setCommandState, setCommandState, setCommandVisibility, setEditorPanel, setPalette, setPopupMenu, setTargetOfCommand, unRegisterWidgetGeneratedCommand
 
Methods inherited from class com.swfm.mica.core.MiNativeWindow
dispose, freeWindowLock, getAWTComponent, getForceResizeOfWindowContainingComponent, getFrame, getNativeComponentType, getSendCommandInsteadOfDispose, getSwingComponent, getTitle, getWindow, getWindowLock, setDefaultCloseCommand, setDeviceBounds, setForceResizeOfWindowContainingComponent, setTitle, setVisible, toFront
 
Methods inherited from class com.swfm.mica.core.MiWindow
appendGlobalEventHandler, dispatchEvent, draw, exposeArea, getAnimationManager, getCanvas, getDragAndDropManager, getGlobalEventHandler, getGrabEventHandler, getKeyboardFocusManager, getKeyFocusTraversalGroup, getNumberOfGlobalEventHandlers, getNumberOfGrabEventHandlers, getStatusBarFocusManager, insertGlobalEventHandler, invalidateEditorPartLayout, isConsumingAllEventsWheneverAnyEventIsGrabbed, isEmbeddedWindow, isRootWindow, needsToBeRedrawn, prependGrabEventHandler, pushBackEvent, removeGlobalEventHandler, removeGrabEventHandler, requestEnterKeyFocus, requestKeyboardFocus, resume, setConsumingAllEventsWheneverAnyEventIsGrabbed, setDefaultEnterKeyFocus, setDefaultKeyboardFocus, setIsEmbeddedWindow, setKeyFocusTraversalGroup, setStatusBarFocusManager, setStatusBarFocusMessage, stop, suspend, validateLayout
 
Methods inherited from class com.swfm.mica.core.MiEditor
appendItem, appendLayer, autopanForMovingObj, calcMinimumSize, calcPreferredSize, containsItem, copy, deSelect, deSelectAll, endOverrideMouseAppearance, getActiveLayer, getAFewSelectedParts, getAutopanningCanExpandUniverse, getCurrentConnectionLayer, getCurrentLayer, getDeviceBounds, getDeviceBounds, getFilter, getIndexOfItem, getIndexOfLayer, getInnerBounds, getItem, getItem, getIterator, getLayer, getMouseAppearance, getMousePosition, getMousePosition, getNormalizedHorizontalAmountVisible, getNormalizedHorizontalPosition, getNormalizedVerticalAmountVisible, getNormalizedVerticalPosition, getNumberOfItems, getNumberOfLayers, getNumberOfPartsSelected, getRenderer, getSelectedParts, getSelectionManager, getSnapManager, getTransform, getTransformFromHereToRoot, getUniverseBounds, getUniverseBounds, getViewport, getViewportSizeLayout, getWorldBounds, getWorldBounds, hasLayers, hasValidLayout, insertItem, insertLayer, invalidateLayout, isBitbltScrollingEnabled, isHandlingScrollingDiscreteAmountsLocally, isLayer, overrideMouseAppearance, popMouseAppearance, pushMouseAppearance, reCalcBounds, reCalcBoundsOfContents, removeAllItems, removeItem, removeItem, removeLayer, render, restoreNormalMouseAppearance, scale, scrollChunkDown, scrollChunkLeft, scrollChunkRight, scrollChunkUp, scrollLineDown, scrollLineLeft, scrollLineRight, scrollLineUp, scrollPageDown, scrollPageLeft, scrollPageRight, scrollPageUp, scrollToBottom, scrollToLeftSide, scrollToNormalizedHorizontalPosition, scrollToNormalizedVerticalPosition, scrollToRightSide, scrollToTop, select, selectAdditional, setActiveLayer, setAutopanningCanExpandUniverse, setBitbltScrollingEnabled, setBounds, setCurrentConnectionLayer, setCurrentLayer, setCurrentLayer, setFilter, setItem, setLayer, setMouseAppearance, setMousePosition, setPageManager, setSelectionManager, setSnapManager, setUniverseBounds, setViewportSizeLayout, setWorldBounds, snapMovingPart, snapMovingPoint, snapPart, transformFromChildSpace, transformLocalWorldToRootWorld, transformRootWorldToLocalWorld, transformToChildSpace, transformToOtherEditorSpace, translate, translatePart, updateLayerBounds
 
Methods inherited from class com.swfm.mica.core.MiContainer
appendPart, containsPart, deepCopy, doImport, getIndexOfPart, getIntersectionWithLine, getKeepConnectionsBelowNodes, getNumberOfParts, getPart, getPart, getSupportedImportFormats, hasEventHandlers, hasValidCachedEventHandlerInfo, insertPart, invalidateCachedEventHandlerInfo, isContainerOf, isContainerOf, isContainerOfWithAttachments, pick, pickDeepListContents, pickObject, removeAllParts, removePart, removePart, setKeepConnectionsBelowNodes, setPart, translate
 
Methods inherited from class com.swfm.mica.core.MiPart
_reCalcBounds, _render, _replaceBounds, _setContainer, _setDrawManager, _setValidatingLayout, appendActionHandler, appendActionHandler, appendActionHandler, appendActionHandler, appendActionHandler, appendAttachment, appendAttachment, appendCommandHandler, appendCommandHandler, appendCommandHandler, appendConnection, appendContainer, appendEventHandler, appendPoint, appendPoint, applyCustomLookAndFeel, containsOpaqueRectangles, copy, deleteAllConnections, deleteAllParts, deleteSelf, dispatchAction, dispatchAction, dispatchAction, dispatchActionRequest, dispatchActionRequest, dispatchActionRequest, doExport, drawNow, drawNow, flip, flip, freeAccessLock, get1DShapeStrokeBackgroundColor, get1DShapeStrokesFilled, getAccessLock, getActionHandler, getActionsGenerated, getActionsLocallyGenerated, getActionsRequestedFromParts, getAfterRenderer, getAlphaCompositeRenderMode, getAnnotationPointManager, getAssociatedParts, getAttachment, getAttachment, getAttachmentMargins, getAttachments, getAttributeLockMask, getAttributePublicMask, getAttributes, getAttributeValue, getBackgroundColor, getBackgroundImage, getBackgroundRenderer, getBackgroundTile, getBalloonHelp, getBeforeRenderer, getBlackColor, getBorderHiliteColor, getBorderHiliteWidth, getBorderLook, getBorderRenderer, getBounds, getBounds, getCenter, getCenter, getCenterOfRotation, getCenterX, getCenterY, getColor, getConnection, getConnectionPointManager, getContainer, getContainerRequestedActions, getContainingEditor, getContainingWindow, getContextCursor, getContextMenu, getContextMenu, getControlPointManager, getCustomLookAndFeels, getCustomLookAndFeels, getDarkColor, getDeepConnection, getDeepConnection, getDeepConnections, getDeeplyInvalidateAreas, getDefaultAttributes, getDialogHelp, getDoubleBuffer, getDragAndDropBehavior, getDrawBounds, getDrawManager, getEventHandler, getEventHandler, getEventHandlerWithClass, getEventHandlingDisabledByContainer, getEventHandlingEnabled, getFlipped, getFont, getFontHorizontalJustification, getFontPointSize, getFontVerticalJustification, getHasBorderHilite, getHasShadow, getHeight, getID, getIncomingInvalidLayoutNotificationsEnabled, getInnerBounds, getInvalidAreaNotificationsEnabled, getInvalidLayoutNotificationsEnabled, getLayout, getLayoutManipulator, getLightColor, getLineEndSize, getLineEndsRenderer, getLineEndsSizeFnOfLineWidth, getLineEndStyle, getLineStartSize, getLineStartStyle, getLineStyle, getLineWidth, getLocallyRequestedEventTypes, getManipulator, getMargins, getMaximumHeight, getMaximumWidth, getMinimumHeight, getMinimumPickAreaSize, getMinimumSize, getMinimumWidth, getName, getNumberOfActionHandlers, getNumberOfAttachments, getNumberOfConnections, getNumberOfContainers, getNumberOfDeepConnections, getNumberOfEventHandlers, getNumberOfPoints, getNumberOfResources, getOutgoingInvalidLayoutNotificationsEnabled, getPoint, getPoint, getPointEntryAngle, getPointExitAngle, getPointX, getPointY, getPreferredSize, getPropertyDescriptions, getPropertyValue, getPrototypeManipulator, getRelativeLocation, getResource, getResourceName, getRootWindow, getRotation, getSelectionGraphics, getShadowColor, getShadowDirection, getShadowLength, getShadowRenderer, getShadowShape, getShadowStyle, getSize, getSnapPointManager, getStatusHelp, getSupportedExportFormats, getThisOrPartHasInvalidArea, getToolHintHelp, getTotalNumberOfPartsCreated, getTransparency, getValidatingLayout, getVisibilityAnimator, getWhiteColor, getWidth, getWriteMode, getXmax, getXmin, getXorColor, getYmax, getYmin, hasAttachment, hasAttribute, hasEnterKeyFocus, hasEventHandler, hasFixedAspectRatio, hasFixedHeight, hasFixedWidth, hasKeyboardFocus, hasMouseFocus, hasOverriddenMinimumSize, hasOverriddenPreferredSize, hasProperty, hasTotallyInvalidArea, insertActionHandler, insertActionHandler, insertActionHandler, insertConnection, insertContainer, insertEventHandler, insertPoint, insertPoint, invalidateArea, invalidateArea, isAcceptingEnterKeyFocus, isAcceptingKeyboardFocus, isAcceptingMouseFocus, isAcceptingTabKeys, isActionDispatchingEnabled, isConnectable, isConnectedTo, isCopyable, isCopyableAsPartOfCopyable, isDeletable, isDoubleBuffered, isDragAndDropSource, isDragAndDropTarget, isFilled, isFontBold, isFontItalic, isFontUnderlined, isHidden, isMovable, isOpaqueRectangle, isPickable, isPickableWhenTransparent, isPrintable, isSavable, isSelectable, isSelected, isSensitive, isShowing, isSnappable, isUngroupable, isValidConnectionDestination, isValidConnectionSource, isVisible, layoutParts, makeImageFromArea, makeLayoutManipulator, makeManipulator, optimizedInvalidateArea, optimizedInvalidateDrawBoundsArea, overrideAttributes, overrideEventHandlingDisabledByContainer, packLayout, pickDeepList, preRenderToDoubleBuffer, refreshBounds, refreshLookAndFeel, refreshLookAndFeel, removeActionHandler, removeActionHandler, removeActionHandlers, removeAllActionHandlers, removeAllAttachments, removeAllConnections, removeAllEventHandlers, removeAllManipulators, removeAttachment, removeAttachment, removeCommandHandler, removeCommandHandler, removeConnection, removeConnection, removeContainer, removeContainer, removeEventHandler, removeFromAllContainers, removePoint, removeResource, removeSelf, replaceDrawBounds, replaceSelf, requestEnterKeyFocus, requestKeyboardFocus, rotate, rotate, rotateTo, scale, scale, select, set1DShapeStrokeBackgroundColor, set1DShapeStrokesFilled, setAcceptingEnterKeyFocus, setAcceptingKeyboardFocus, setAcceptingMouseFocus, setAcceptingTabKeys, setActionDispatchingEnabled, setAfterRenderer, setAlphaCompositeRenderMode, setAnnotationPointManager, setAttachmentDrawnAfter, setAttachmentMargins, setAttachmentsVisibility, setAttributeLockMask, setAttributePublicMask, setAttributes, setAttributeValue, setAttributeValue, setAttributeValue, setAttributeValue, setAttributeValue, setBackgroundColor, setBackgroundColor, setBackgroundImage, setBackgroundRenderer, setBackgroundTile, setBalloonHelp, setBalloonHelpMessage, setBeforeRenderer, setBlackColor, setBorderHiliteColor, setBorderHiliteWidth, setBorderLook, setBorderRenderer, setBounds, setCenter, setCenter, setCenterX, setCenterY, setColor, setColor, setConnectable, setConnectionPointManager, setContextCursor, setContextMenu, setControlPointManager, setCopyable, setCopyableAsPartOfCopyable, setCustomLookAndFeels, setCustomLookAndFeels, setDarkColor, setDeeplyInvalidateAreas, setDefaultAttributes, setDeletable, setDialogHelp, setDialogHelpMessage, setDoubleBuffer, setDoubleBuffered, setDragAndDropBehavior, setEventHandlingEnabled, setFilled, setFixedAspectRatio, setFixedHeight, setFixedWidth, setFont, setFontBold, setFontHorizontalJustification, setFontItalic, setFontPointSize, setFontUnderlined, setFontVerticalJustification, setHasBorderHilite, setHasShadow, setHeight, setHidden, setIncomingInvalidLayoutNotificationsEnabled, setInvalidAreaNotificationsEnabled, setInvalidLayoutNotificationsEnabled, setIsDragAndDropSource, setIsDragAndDropTarget, setIsOpaqueRectangle, setLayout, setLightColor, setLineEndSize, setLineEndSizeFnOfLineWidth, setLineEndsRenderer, setLineEndStyle, setLineStartSize, setLineStartStyle, setLineStyle, setLineWidth, setMargins, setMaximumHeight, setMaximumWidth, setMinimumHeight, setMinimumPickAreaSize, setMinimumSize, setMinimumWidth, setMouseFocus, setMovable, setName, setNumberOfPoints, setOutgoingInvalidLayoutNotificationsEnabled, setPickable, setPickableWhenTransparent, setPoint, setPoint, setPreferredSize, setPrintable, setPropertyValue, setPropertyValues, setPrototypeManipulator, setResource, setSavable, setSelectable, setSelectionGraphics, setSensitive, setShadowColor, setShadowDirection, setShadowLength, setShadowRenderer, setShadowStyle, setSize, setSize, setSnappable, setSnapPointManager, setStatusHelp, setStatusHelpMessage, setSupportedImportFormats, setToolHintHelp, setToolHintMessage, setTransparency, setTransparency, setUngroupable, setVisibilityAnimator, setWhiteColor, setWidth, setWriteMode, setXmax, setXmin, setXorColor, setYmax, setYmin, supportsImportOfSpecificInstance, toString, translate, translatePoint, validatePropertyValue, waitUntilRedrawn
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

Mi_HIDE_PALETTE_COMMAND_NAME

public static final java.lang.String Mi_HIDE_PALETTE_COMMAND_NAME
See Also:
Constant Field Values

Mi_HIDE_PALETTE_LABELS_COMMAND_NAME

public static final java.lang.String Mi_HIDE_PALETTE_LABELS_COMMAND_NAME
See Also:
Constant Field Values

Mi_PALETTE_SAVE_NAME

public static final java.lang.String Mi_PALETTE_SAVE_NAME
See Also:
Constant Field Values

Mi_PALETTE_SAVE_AS_NAME

public static final java.lang.String Mi_PALETTE_SAVE_AS_NAME
See Also:
Constant Field Values

Mi_SHOW_PALETTE_NAME

public static final java.lang.String Mi_SHOW_PALETTE_NAME
See Also:
Constant Field Values

Mi_SHOW_PALETTE_LABELS_NAME

public static final java.lang.String Mi_SHOW_PALETTE_LABELS_NAME
See Also:
Constant Field Values

Mi_MICA_GRAPHICS_FILENAME_EXTENSION

public static final java.lang.String Mi_MICA_GRAPHICS_FILENAME_EXTENSION
See Also:
Constant Field Values

Mi_MICA_DEFAULT_GRAPHICS_FILENAME

public static final java.lang.String Mi_MICA_DEFAULT_GRAPHICS_FILENAME
See Also:
Constant Field Values

Mi_GRAPHICS_WINDOW_ABOUT_MSG

public static final java.lang.String Mi_GRAPHICS_WINDOW_ABOUT_MSG
See Also:
Constant Field Values
Constructor Detail

MiGraphicsWindow

public MiGraphicsWindow(java.lang.String title,
                        MiBounds screenSize)
Constructs a new MiGraphicsWindow, creates a new AWT Frame, and adds this MiGraphicsWindow, with the given title and size, to the AWT Frame.

Parameters:
title - the text to be displayed in the window border
screenSize - the size

MiGraphicsWindow

public MiGraphicsWindow(java.awt.Frame frame,
                        java.lang.String title,
                        MiBounds screenSize,
                        MiJDKAPIComponentType nativeComponentType)
Constructs a new MiGraphicsWindow. The caller must then add this to their Swing or AWT container. For example, if nativeComponentType == Mi_SWING_LIGHTWEIGHT_COMPONENT_TYPE:

MiGraphicsWindow gw = new MiGraphicsWindow( MiUtility.getFrame(jComponent), null, new MiBounds(0,0,400,400), Mi_SWING_LIGHTWEIGHT_COMPONENT_TYPE); jComponent.add("Center", gw.getSwingComponent());

or, if adding to a JFrame:

jFrame.getContentPane().add("Center", gw.getSwingComponent());

And if nativeComponentType == Mi_AWT_HEAVYWEIGHT_COMPONENT_TYPE:

MiGraphicsWindow gw = new MiGraphicsWindow( MiUtility.getFrame(awtContainer), null, new MiBounds(0,0,400,400), Mi_AWT_HEAVYWEIGHT_COMPONENT_TYPE); awtContainer.add("Center", gw.getAWTComponent());

Parameters:
frame - the parent frame
title - the window border text
screenSize - the size of the window in pixels
nativeComponentType - the type of the component to use: Mi_AWT_1_0_2_HEAVYWEIGHT_COMPONENT_TYPE or Mi_AWT_1_1_HEAVYWEIGHT_COMPONENT_TYPE or Mi_AWT_HEAVYWEIGHT_COMPONENT_TYPE or Mi_SWING_LIGHTWEIGHT_COMPONENT_TYPE or null (to use the default)
See Also:
MiSystem.getDefaultJDKAPIComponentType()

MiGraphicsWindow

public MiGraphicsWindow(java.awt.Frame frame,
                        java.lang.String title,
                        MiBounds screenSize)
Method Detail

getController

public MiiController getController()
Gets the manager of the current open document.

Returns:
the document manager