ASP.NET Pack 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.

getAllowLinkCursor

Gets the cursor shown when the currently drawn link can be attached to the item at the current mouse pointer location.

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.

getCounterDiagonalResizeCursor

Gets the cursor shown when dragging from the current mouse pointer location would start resizing an item along its secondary diagonal.

getCustomBehavior

Gets custom behavior object specifying how the control responds to mouse 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.

getDiagonalResizeCursor

Gets the cursor shown when dragging from the current mouse pointer location would start resizing an item along its main diagonal.

getDiagram

Gets the diagram displayed by this view.

getDisallowCursor

Gets the cursor shown when an item cannot be created at the current mouse pointer location.

getDisallowLinkCursor

Gets the cursor shown when the currently created link cannot be attached to the item at the current mouse pointer location.

getDragThreshold

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

getDrawLinkCursor

Gets the cursor shown when a link can be drawn from the current mouse pointer location.

getFont

 

getGlassPane

For internal use.

getHorizontalResizeCursor

Gets the cursor shown when dragging from the current mouse pointer location would start resizing an item horizontally.

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.

getLaneColumnResizeCursor

Gets the mouse cursor shown to the user when dragging would resize a lane column header.

getLaneRowResizeCursor

Gets the mouse cursor shown to the user when dragging would resize a lane row header.

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.

getMoveCursor

Gets the cursor shown when the item under the mouse pointer can be modified.

getPanCursor

Gets the cursor shown when panning the diagram view.

getPointerCursor

Gets the mouse cursor shown when no modification is performed.

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.

getRotateCursor

Gets the cursor shown when dragging from the current mouse pointer location would start rotating a box.

getScrollableBlockIncrement

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

getScrollableTracksViewportHeight

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

getScrollableTracksViewportWidth

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

getScrollableUnitIncrement

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

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.

getToolTipText

Returns the string to be used as the tooltip for event.

getTrackPointedItem

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

getVerticalResizeCursor

Gets the cursor shown when dragging from the current mouse pointer location would start resizing an item vertically.

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.

loadFrom

Overloaded.  

loadFromString

Loads the diagram contents from a string.

lostOwnership

 

pasteFromClipboard

Overloaded.  

print

Overloaded.  

printPreview

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

Overloaded.  

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.

setAllowLinkCursor

Sets the cursor shown when the currently drawn link can be attached to the item at the current mouse pointer location.

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.

setCounterDiagonalResizeCursor

Sets the cursor shown when dragging from the current mouse pointer location would start resizing an item along its secondary diagonal.

setCustomBehavior

Sets a custom behavior object specifying how the control responds to mouse 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.

setDiagonalResizeCursor

Sets the cursor shown when dragging from the current mouse pointer location would start resizing an item along its main diagonal.

setDiagram

Sets the diagram displayed by this view.

setDisallowCursor

Sets the cursor shown when an item cannot be created at the current mouse pointer location.

setDisallowLinkCursor

Sets the cursor shown when the currently created link can be attached to the item at the current mouse pointer location.

setDragThreshold

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

setDrawLinkCursor

Sets the cursor shown when a link can be drawn from the current mouse pointer location.

setHorizontalResizeCursor

Sets the cursor shown when dragging from the current mouse pointer location would start resizing an item horizontally.

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.

setLaneColumnResizeCursor

Sets the mouse cursor shown to the user when dragging would resize a lane column header.

setLaneRowResizeCursor

Sets the mouse cursor shown to the user when dragging would resize a lane row header.

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 view.

setMoveCursor

Sets the cursor shown when the item under the mouse pointer can be modified.

setPanCursor

Sets the cursor shown when panning the diagram view

setPointerCursor

Sets the mouse cursor that should be shown when no modification is performed.

setRotateCursor

Sets the cursor shown when dragging from the current mouse pointer location would start rotating a box.

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.

setVerticalResizeCursor

Sets the cursor shown when dragging from the current mouse pointer location would start resizing an item vertically.

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.

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. This is useful when using the JDiagram API from JavaScript, where the control would be repainted after each script line executes.

zoomToFit

Overloaded.  

 Protected Methods

  Name Description

paintComponent

 

processKeyEvent

 

 See Also

DiagramView Class
com.mindfusion.diagramming Namespace