DroidDiagram Programmer's Guide
DiagramView Members
Constructors Methods
 


DiagramView is a Swing component that displays the content of a Diagram object.

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

 Public Constructors

  Name Description

DiagramView

Overloaded.  

 Public Methods

  Name Description

adoptHostedControls

Adopts controls hosted in other views and moves them to this view.

ancestorAdded

Implements AncestorListener. Call the base method if you inherit the Diagram class and need to override this method.

ancestorMoved

Implements AncestorListener. Call the base method if you inherit the Diagram class and need to override this method.

ancestorRemoved

Implements AncestorListener. Call the base method if you inherit the Diagram class and need to override this method.

beginEdit

Overloaded.  

bringIntoView

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

cancelDrag

Cancels the modification of the selected items.

copyToClipboard

Overloaded.  

cutToClipboard

Overloaded.  

deviceToDoc

Overloaded.  

disableInteractionBuffer

For internal use.

docToDevice

Overloaded.  

endEdit

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

getAllowInplaceEdit

Gets a value indicating whether users are allowed to edit the text of diagram items.

getAntiAlias

Gets the current anti-aliasing mode for non text objects.

getAutoScroll

Gets a value indicating whether the diagram will scroll automatically when the pointer is dragged towards the edge of the view.

getBehavior

Gets a value indicating how the control responds to users actions.

getCustomBehavior

Gets custom behavior object specifying how the control responds to touch input.

getCustomLinkType

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

getCustomNodeType

Gets the type of a DiagramNode-derived class whose instance should be created when a user starts drawing.

getDelKeyAction

Gets a value that specifies what action should be carried out when the user hits the Del key.

getDiagram

Gets the diagram displayed by this view.

getDragThreshold

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

getFont

 

getGlassPane

For internal use.

getInplaceEditAcceptOnEnter

Gets a value indicating whether pressing the ENTER key ends in-place editing and accepts changes.

getInplaceEditCancelOnEsc

Gets a value indicating whether pressing the ESC key ends in-place editing and cancels changes.

getInplaceEditFont

Gets the font used to display text in the in-place editing text control.

getMagnifierEnabled

Gets a value indicating whether the magnifier tool is currently enabled.

getMagnifierFactor

Gets the zoom factor of the magnifier tool.

getMagnifierFrameColor

Gets the color of the magnifier frame.

getMagnifierFrameThickness

Gets the thickness of the magnifier frame, expressed in pixels.

getMagnifierHeight

Gets the height of the magnifier tool, expressed in pixels.

getMagnifierSecondaryFrameColor

Gets the secondary color of the magnifier frame.

getMagnifierShading

Gets a value indicating whether to enhance the effect of a magnifier lense by using a gradient shading.

getMagnifierShape

Gets the shape of the magnifier tool.

getMagnifierWidth

Gets the width of the magnifier tool, expressed in pixels.

getModificationStart

Gets a value indicating how users can start modifying items in the diagram.

getPreferredScrollableViewportSize

Provides support for scrolling when the diagram in placed inside a scroll pane.

getPreferredSize

Returns the size of the diagram in pixels, based on the currently set document size and zoom level.

getPrintOptions

Returns a PrintOptions instance that allows customizing various aspects of printing and print-preview.

getScrollX

Gets the horizontal scroll position.

getScrollY

Gets the vertical scroll position.

getScrollZoneSize

Gets the size of the auto scroll zone near the edges of the control.

getShowToolTips

Gets a value indicating whether an item's ToolTip is shown when the pointer hovers over the item.

getTextAntiAlias

Gets the current anti-aliasing mode for text.

getTrackPointedItem

Gets a value indicating whether the control will raise the nodePointerEnter and nodePointerLeave events.

getXmlClipboard

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

getZoomFactor

Gets the current zoom level.

getZoomPivot

Gets the pivot point of pinch-zoom gestures.

loadFrom

Overloaded.  

loadFromString

Loads the diagram contents from a string.

lostOwnership

 

onRestoreInstanceState

View.onRestoreInstanceState override.

onSaveInstanceState

View.onSaveInstanceState override.

pasteFromClipboard

Overloaded.  

recreateCacheImage

Recreates the off-screen cache bitmap used for fast drawing while modifying items.

repaint

Overloaded.  

resumeRepaint

Resumes repainting the control after a suspendRepaint call.

saveTo

Overloaded.  

saveToString

 

saveToXml

Overloaded.  

scrollTo

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

setAllowInplaceEdit

Sets a value indicating whether users are allowed to edit the text of diagram items.

setAntiAlias

Sets the current anti-aliasing mode for non text objects.

setAutoScroll

Sets a value indicating whether the diagram should scroll automatically when the pointer is dragged towards the edge of the view.

setBehavior

Sets a value indicating how the control should respond to users actions.

setCustomBehavior

Sets a custom behavior object specifying how the control responds to touch input.

setCustomLinkType

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

setCustomNodeType

Sets the type of a DiagramNode-derived class whose instance should be created when a user starts drawing.

setDelKeyAction

Sets a value that specifies what action should be carried out when the user hits the Del key.

setDiagram

Sets the diagram displayed by this view.

setDragThreshold

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

setInplaceEditAcceptOnEnter

Sets a value indicating whether pressing the ENTER key ends in-place editing and accepts changes.

setInplaceEditCancelOnEsc

Sets a value indicating whether pressing the ESC key ends in-place editing and cancels changes.

setInplaceEditFont

Sets the font used to display text in the in-place editing text control.

setLicenseKey

Sets the component's license key string, disabling evaluation mode.

setMagnifierEnabled

Sets a value indicating whether the magnifier tool is currently enabled.

setMagnifierFactor

Gets the zoom factor of the magnifier tool.

setMagnifierFrameColor

Sets the color of the magnifier frame.

setMagnifierFrameThickness

Sets the thickness of the magnifier frame, expressed in pixels.

setMagnifierHeight

Sets the height of the magnifier tool, expressed in pixels.

setMagnifierSecondaryFrameColor

Sets the secondary color of the magnifier frame.

setMagnifierShading

Sets a value indicating whether to enhance the effect of a magnifier lense by using a gradient shading.

setMagnifierShape

Sets the shape of the magnifier tool.

setMagnifierWidth

Sets the width of the magnifier tool, expressed in pixels.

setModificationStart

Sets a value indicating how users can start modifying items in the diagram.

setScrollX

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

setScrollY

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

setScrollZoneSize

Sets the size of the auto scroll zone near the edges of the control.

setShowToolTips

Sets a value indicating whether an item's ToolTip is shown when the pointer hovers over the item.

setTextAntiAlias

Sets the current anti-aliasing mode for text.

setTrackPointedItem

Sets a value indicating whether the control should raise the nodePointerEnter and nodePointerLeave events.

setXmlClipboard

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

setZoomFactor

Sets the zoom level.

setZoomPivot

Sets the pivot point of pinch-zoom gestures.

startInteraction

Starts the specified interactive operation. Subsequent pointer movements will modify or create the item specified through the InteractionState instance.

suspendRepaint

Stops repainting the control.

zoomToFit

Overloaded.  

 Protected Methods

  Name Description

paintComponent

 

processKeyEvent

 

 See Also

DiagramView Class
com.mindfusion.diagramming Namespace