DroidDiagram Programmer's Guide
DocumentView Members
Constructors Methods
 


Represents an extended DiagramView for DiagramDocument objects.

The following tables list the members exposed by the DocumentView type.

 Public Constructors

  Name Description

DocumentView

Initializes a new instance of the DocumentView class.

 Public Methods

  Name Description

adoptHostedControls

Adopts controls hosted in other views and moves them to this view. (Inherited from DiagramView.)

ancestorAdded

Implements AncestorListener. Call the base method if you inherit the Diagram class and need to override this method. (Inherited from DiagramView.)

ancestorMoved

Implements AncestorListener. Call the base method if you inherit the Diagram class and need to override this method. (Inherited from DiagramView.)

ancestorRemoved

Implements AncestorListener. Call the base method if you inherit the Diagram class and need to override this method. (Inherited from DiagramView.)

beginEdit

Overloaded.   (Inherited from DiagramView.)

bringIntoView

Scrolls the viewport so that the specified item will be visible. This works only when the diagram is contained within a JScrollPane. (Inherited from DiagramView.)

cancelDrag

Cancels the modification of the selected items. (Inherited from DiagramView.)

copyToClipboard

Overloaded.   (Inherited from DiagramView.)

cutToClipboard

Overloaded.   (Inherited from DiagramView.)

deviceToDoc

Overloaded.   (Inherited from DiagramView.)

disableInteractionBuffer

For internal use. (Inherited from DiagramView.)

docToDevice

Overloaded.   (Inherited from DiagramView.)

endEdit

Exits in-place editing mode and either accepts or rejects the changes made to the item's text. (Inherited from DiagramView.)

getAllowInplaceEdit

Gets a value indicating whether users are allowed to edit the text of diagram items. (Inherited from DiagramView.)

getAntiAlias

Gets the current anti-aliasing mode for non text objects. (Inherited from DiagramView.)

getAutoScroll

Gets a value indicating whether the diagram will scroll automatically when the pointer is dragged towards the edge of the view. (Inherited from DiagramView.)

getBehavior

Gets a value indicating how the control responds to users actions. (Inherited from DiagramView.)

getCurrentPage

Gets the currently active page.

getCustomBehavior

Gets custom behavior object specifying how the control responds to touch input. (Inherited from DiagramView.)

getCustomLinkType

Gets a custom type of DiagramLink-derived objects that will be created when the users starts drawing with the mouse. (Inherited from DiagramView.)

getCustomNodeType

Gets the type of a DiagramNode-derived class whose instance should be created when a user starts drawing. (Inherited from DiagramView.)

getDelKeyAction

Gets a value that specifies what action should be carried out when the user hits the Del key. (Inherited from DiagramView.)

getDiagram

Gets the diagram displayed by this view. (Inherited from DiagramView.)

getDocument

Gets the displayed diagram document.

getDragThreshold

Gets the minimum distance the pointer should be dragged, measured in pixels, that would cause a drag event instead of click. (Inherited from DiagramView.)

getFont

  (Inherited from DiagramView.)

getGlassPane

For internal use. (Inherited from DiagramView.)

getInplaceEditAcceptOnEnter

Gets a value indicating whether pressing the ENTER key ends in-place editing and accepts changes. (Inherited from DiagramView.)

getInplaceEditCancelOnEsc

Gets a value indicating whether pressing the ESC key ends in-place editing and cancels changes. (Inherited from DiagramView.)

getInplaceEditFont

Gets the font used to display text in the in-place editing text control. (Inherited from DiagramView.)

getMagnifierEnabled

Gets a value indicating whether the magnifier tool is currently enabled. (Inherited from DiagramView.)

getMagnifierFactor

Gets the zoom factor of the magnifier tool. (Inherited from DiagramView.)

getMagnifierFrameColor

Gets the color of the magnifier frame. (Inherited from DiagramView.)

getMagnifierFrameThickness

Gets the thickness of the magnifier frame, expressed in pixels. (Inherited from DiagramView.)

getMagnifierHeight

Gets the height of the magnifier tool, expressed in pixels. (Inherited from DiagramView.)

getMagnifierSecondaryFrameColor

Gets the secondary color of the magnifier frame. (Inherited from DiagramView.)

getMagnifierShading

Gets a value indicating whether to enhance the effect of a magnifier lense by using a gradient shading. (Inherited from DiagramView.)

getMagnifierShape

Gets the shape of the magnifier tool. (Inherited from DiagramView.)

getMagnifierWidth

Gets the width of the magnifier tool, expressed in pixels. (Inherited from DiagramView.)

getModificationStart

Gets a value indicating how users can start modifying items in the diagram. (Inherited from DiagramView.)

getPreferredScrollableViewportSize

Provides support for scrolling when the diagram in placed inside a scroll pane. (Inherited from DiagramView.)

getPreferredSize

Returns the size of the diagram in pixels, based on the currently set document size and zoom level. (Inherited from DiagramView.)

getPrintOptions

Returns a PrintOptions instance that allows customizing various aspects of printing and print-preview. (Inherited from DiagramView.)

getScrollX

Gets the horizontal scroll position. (Inherited from DiagramView.)

getScrollY

Gets the vertical scroll position. (Inherited from DiagramView.)

getScrollZoneSize

Gets the size of the auto scroll zone near the edges of the control. (Inherited from DiagramView.)

getShowToolTips

Gets a value indicating whether an item's ToolTip is shown when the pointer hovers over the item. (Inherited from DiagramView.)

getTextAntiAlias

Gets the current anti-aliasing mode for text. (Inherited from DiagramView.)

getTrackPointedItem

Gets a value indicating whether the control will raise the nodePointerEnter and nodePointerLeave events. (Inherited from DiagramView.)

getXmlClipboard

Gets a value that specifies whether XML serialization will be used when saving/loading the selection to/from clipboard. (Inherited from DiagramView.)

getZoomFactor

Gets the current zoom level. (Inherited from DiagramView.)

getZoomPivot

Gets the pivot point of pinch-zoom gestures. (Inherited from DiagramView.)

loadFrom

Loads the document from the specified stream.

loadFromString

Loads the diagram contents from a string. (Inherited from DiagramView.)

loadFromXml

Loads the diagram document from the specified XML Document.

lostOwnership

  (Inherited from DiagramView.)

onRestoreInstanceState

View.onRestoreInstanceState override. (Inherited from DiagramView.)

onSaveInstanceState

View.onSaveInstanceState override. (Inherited from DiagramView.)

pasteFromClipboard

Overloaded.   (Inherited from DiagramView.)

recreateCacheImage

Recreates the off-screen cache bitmap used for fast drawing while modifying items. (Inherited from DiagramView.)

repaint

Overloaded.   (Inherited from DiagramView.)

resumeRepaint

Resumes repainting the control after a suspendRepaint call. (Inherited from DiagramView.)

saveTo

Saves the document into the specified stream.

saveToString

  (Inherited from DiagramView.)

saveToXml

Saves the diagram document into the specified XML Document.

scrollTo

Scrolls the diagram to the specified position. The Diagram component must be contained within a JScrollPane in order to use this method. (Inherited from DiagramView.)

setAllowInplaceEdit

Sets a value indicating whether users are allowed to edit the text of diagram items. (Inherited from DiagramView.)

setAntiAlias

Sets the current anti-aliasing mode for non text objects. (Inherited from DiagramView.)

setAutoScroll

Sets a value indicating whether the diagram should scroll automatically when the pointer is dragged towards the edge of the view. (Inherited from DiagramView.)

setBehavior

Sets a value indicating how the control should respond to users actions. (Inherited from DiagramView.)

setCurrentPage

Sets the currently active page.

setCustomBehavior

Sets a custom behavior object specifying how the control responds to touch input. (Inherited from DiagramView.)

setCustomLinkType

Sets a custom type of DiagramLink-derived objects that will be created when the users starts drawing with the mouse. (Inherited from DiagramView.)

setCustomNodeType

Sets the type of a DiagramNode-derived class whose instance should be created when a user starts drawing. (Inherited from DiagramView.)

setDelKeyAction

Sets a value that specifies what action should be carried out when the user hits the Del key. (Inherited from DiagramView.)

setDiagram

Sets the diagram displayed by this view. (Inherited from DiagramView.)

setDocument

Sets the displayed diagram document.

setDragThreshold

Sets the minimum distance the pointer should be dragged, measured in pixels, that would cause a drag event instead of click. (Inherited from DiagramView.)

setInplaceEditAcceptOnEnter

Sets a value indicating whether pressing the ENTER key ends in-place editing and accepts changes. (Inherited from DiagramView.)

setInplaceEditCancelOnEsc

Sets a value indicating whether pressing the ESC key ends in-place editing and cancels changes. (Inherited from DiagramView.)

setInplaceEditFont

Sets the font used to display text in the in-place editing text control. (Inherited from DiagramView.)

setLicenseKey

Sets the component's license key string, disabling evaluation mode. (Inherited from DiagramView.)

setMagnifierEnabled

Sets a value indicating whether the magnifier tool is currently enabled. (Inherited from DiagramView.)

setMagnifierFactor

Gets the zoom factor of the magnifier tool. (Inherited from DiagramView.)

setMagnifierFrameColor

Sets the color of the magnifier frame. (Inherited from DiagramView.)

setMagnifierFrameThickness

Sets the thickness of the magnifier frame, expressed in pixels. (Inherited from DiagramView.)

setMagnifierHeight

Sets the height of the magnifier tool, expressed in pixels. (Inherited from DiagramView.)

setMagnifierSecondaryFrameColor

Sets the secondary color of the magnifier frame. (Inherited from DiagramView.)

setMagnifierShading

Sets a value indicating whether to enhance the effect of a magnifier lense by using a gradient shading. (Inherited from DiagramView.)

setMagnifierShape

Sets the shape of the magnifier tool. (Inherited from DiagramView.)

setMagnifierWidth

Sets the width of the magnifier tool, expressed in pixels. (Inherited from DiagramView.)

setModificationStart

Sets a value indicating how users can start modifying items in the diagram. (Inherited from DiagramView.)

setScrollX

Sets the horizontal scroll position. The Diagram component must be contained within a JScrollPane in order to use this method. (Inherited from DiagramView.)

setScrollY

Sets the vertical scroll position. The Diagram component must be contained within a JScrollPane in order to use this method. (Inherited from DiagramView.)

setScrollZoneSize

Sets the size of the auto scroll zone near the edges of the control. (Inherited from DiagramView.)

setShowToolTips

Sets a value indicating whether an item's ToolTip is shown when the pointer hovers over the item. (Inherited from DiagramView.)

setTextAntiAlias

Sets the current anti-aliasing mode for text. (Inherited from DiagramView.)

setTrackPointedItem

Sets a value indicating whether the control should raise the nodePointerEnter and nodePointerLeave events. (Inherited from DiagramView.)

setXmlClipboard

Sets a value that specifies whether XML serialization will be used when saving/loading the selection to/from clipboard. (Inherited from DiagramView.)

setZoomFactor

Sets the zoom level. (Inherited from DiagramView.)

setZoomPivot

Sets the pivot point of pinch-zoom gestures. (Inherited from DiagramView.)

startInteraction

Starts the specified interactive operation. Subsequent pointer movements will modify or create the item specified through the InteractionState instance. (Inherited from DiagramView.)

suspendRepaint

Stops repainting the control. (Inherited from DiagramView.)

zoomToFit

Overloaded.   (Inherited from DiagramView.)

 Protected Methods

  Name Description

paintComponent

  (Inherited from DiagramView.)

processKeyEvent

  (Inherited from DiagramView.)

 See Also

DocumentView Class
com.mindfusion.diagramming Namespace