com.mindfusion.diagramming
Class DocumentView

java.lang.Object
  extended by java.awt.Component
      extended by java.awt.Container
          extended by javax.swing.JComponent
              extended by com.mindfusion.diagramming.DiagramView
                  extended by com.mindfusion.diagramming.DocumentView
All Implemented Interfaces:
java.awt.datatransfer.ClipboardOwner, java.awt.image.ImageObserver, java.awt.MenuContainer, java.awt.print.Printable, java.io.Serializable, java.util.EventListener, javax.swing.event.AncestorListener, javax.swing.Scrollable

public class DocumentView
extends DiagramView

Represents an extended DiagramView for DiagramDocument objects.

The class raises the propertyChange event for the following properties:

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class javax.swing.JComponent
javax.swing.JComponent.AccessibleJComponent
 
Nested classes/interfaces inherited from class java.awt.Container
java.awt.Container.AccessibleAWTContainer
 
Nested classes/interfaces inherited from class java.awt.Component
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BaselineResizeBehavior, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy
 
Field Summary
 
Fields inherited from class javax.swing.JComponent
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, 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
 
Fields inherited from interface java.awt.print.Printable
NO_SUCH_PAGE, PAGE_EXISTS
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
DocumentView()
          Initializes a new instance of the DocumentView class.
 
Method Summary
 DiagramPage getCurrentPage()
          Gets the currently active page.
 DiagramDocument getDocument()
          Gets the displayed diagram document.
 void loadFrom(java.io.InputStream stream)
          Loads the diagram contents from a stream.
 void loadFromXml(org.w3c.dom.Document document, boolean freeProcessedXml)
          Loads the contents of the XML diagram document.
 void saveTo(java.io.OutputStream stream)
          Saves the diagram contents into a stream.
 void saveToXml(org.w3c.dom.Document document, boolean includeUnalteredProperties)
          Saves the diagram to the specified XML document.
 void setCurrentPage(DiagramPage value)
          Sets the currently active page.
 void setDocument(DiagramDocument value)
          Sets the displayed diagram document.
 
Methods inherited from class com.mindfusion.diagramming.DiagramView
adoptHostedControls, ancestorAdded, ancestorMoved, ancestorRemoved, beginEdit, beginEdit, bringIntoView, cancelDrag, copyToClipboard, copyToClipboard, cutToClipboard, cutToClipboard, deviceToDoc, deviceToDoc, deviceToDoc, disableInteractionBuffer, docToDevice, docToDevice, endEdit, getAllowInplaceEdit, getAllowLinkCursor, getAntiAlias, getAutoScroll, getBehavior, getCounterDiagonalResizeCursor, getCustomBehavior, getCustomLinkType, getCustomNodeType, getDelKeyAction, getDiagonalResizeCursor, getDiagram, getDisallowCursor, getDisallowLinkCursor, getDragThreshold, getDrawLinkCursor, getFont, getGlassPane, getHorizontalResizeCursor, getInplaceEditAcceptOnEnter, getInplaceEditCancelOnEsc, getInplaceEditFont, getLaneColumnResizeCursor, getLaneRowResizeCursor, getMagnifierEnabled, getMagnifierFactor, getMagnifierFrameColor, getMagnifierFrameThickness, getMagnifierHeight, getMagnifierSecondaryFrameColor, getMagnifierShading, getMagnifierShape, getMagnifierWidth, getModificationStart, getMoveCursor, getPanCursor, getPointerCursor, getPreferredScrollableViewportSize, getPreferredSize, getPrintOptions, getRotateCursor, getScrollableBlockIncrement, getScrollableTracksViewportHeight, getScrollableTracksViewportWidth, getScrollableUnitIncrement, getScrollX, getScrollY, getShowToolTips, getTextAntiAlias, getToolTipText, getTrackPointedItem, getVerticalResizeCursor, getXmlClipboard, getZoomFactor, loadFrom, loadFromString, loadFromXml, loadFromXml, loadFromXml, lostOwnership, paintComponent, pasteFromClipboard, pasteFromClipboard, print, print, print, print, printPreview, printPreview, processKeyEvent, recreateCacheImage, repaint, repaint, resumeRepaint, saveTo, saveToString, saveToString, saveToXml, saveToXml, saveToXml, scrollTo, setAllowInplaceEdit, setAllowLinkCursor, setAntiAlias, setAutoScroll, setBehavior, setCounterDiagonalResizeCursor, setCustomBehavior, setCustomLinkType, setCustomNodeType, setDelKeyAction, setDiagonalResizeCursor, setDiagram, setDisallowCursor, setDisallowLinkCursor, setDragThreshold, setDrawLinkCursor, setHorizontalResizeCursor, setInplaceEditAcceptOnEnter, setInplaceEditCancelOnEsc, setInplaceEditFont, setLaneColumnResizeCursor, setLaneRowResizeCursor, setMagnifierEnabled, setMagnifierFactor, setMagnifierFrameColor, setMagnifierFrameThickness, setMagnifierHeight, setMagnifierSecondaryFrameColor, setMagnifierShading, setMagnifierShape, setMagnifierWidth, setModificationStart, setMoveCursor, setPanCursor, setPointerCursor, setRotateCursor, setScrollX, setScrollY, setShowToolTips, setTextAntiAlias, setTrackPointedItem, setVerticalResizeCursor, setXmlClipboard, setZoomFactor, startInteraction, suspendRepaint, zoomToFit, zoomToFit
 
Methods inherited from class javax.swing.JComponent
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getAccessibleContext, 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, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getTopLevelAncestor, getTransferHandler, getUIClassID, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintImmediately, paintImmediately, paramString, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, 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, updateUI
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, 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, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, 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, hide, 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, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DocumentView

public DocumentView()
Initializes a new instance of the DocumentView class.

Method Detail

saveToXml

public void saveToXml(org.w3c.dom.Document document,
                      boolean includeUnalteredProperties)
Description copied from class: DiagramView
Saves the diagram to the specified XML document.

Overrides:
saveToXml in class DiagramView
Parameters:
document - A DOM Document object where the diagram should be saved.

loadFromXml

public void loadFromXml(org.w3c.dom.Document document,
                        boolean freeProcessedXml)
                 throws XmlException
Description copied from class: DiagramView
Loads the contents of the XML diagram document.

Overrides:
loadFromXml in class DiagramView
Parameters:
document - A DOM Document object from which to load the diagram data.
Throws:
XmlException

saveTo

public void saveTo(java.io.OutputStream stream)
            throws java.io.IOException
Description copied from class: DiagramView
Saves the diagram contents into a stream.

Overrides:
saveTo in class DiagramView
Parameters:
stream - An OutputStream where the diagram contents should be saved.
Throws:
java.io.IOException

loadFrom

public void loadFrom(java.io.InputStream stream)
              throws java.io.IOException
Description copied from class: DiagramView
Loads the diagram contents from a stream.

Overrides:
loadFrom in class DiagramView
Parameters:
stream - An InputStream from which to load the diagram contents.
Throws:
java.io.IOException

getDocument

public DiagramDocument getDocument()
Gets the displayed diagram document.


setDocument

public void setDocument(DiagramDocument value)
Sets the displayed diagram document.


getCurrentPage

public DiagramPage getCurrentPage()
Gets the currently active page.


setCurrentPage

public void setCurrentPage(DiagramPage value)
Sets the currently active page.