GoDiagram Win Reference
GoSubGraph Class Methods


For a list of all members of this type, see GoSubGraph members.

Public Methods
 NameDescription
Public MethodAddOverridden. This override of Add makes sure the Handle stays on top.  
Public MethodAddChildNameAdd an association of a string name with a child object. (Inherited from Northwoods.Go.GoGroup)
Public MethodAddCollectionMove some objects into this group, as immediate children of this group, even if they are part of other groups in this same layer. (Inherited from Northwoods.Go.GoGroup)
Public MethodAddObserverRegister an object as an observer of changes to this object. (Inherited from Northwoods.Go.GoObject)
Public MethodAddSelectionHandlesOverridden. Resize selection handles go around the border, not along the Bounds.  
Public MethodCanCopyCalled to see if the user can copy this object. (Inherited from Northwoods.Go.GoObject)
Public MethodCanDeleteCalled to see if the user can delete this object. (Inherited from Northwoods.Go.GoObject)
Public MethodCanEditCalled to see if the user can edit this object. (Inherited from Northwoods.Go.GoObject)
Public MethodCanMoveCalled to see if the user can move this object. (Inherited from Northwoods.Go.GoObject)
Public MethodCanPrintCalled to see if the view can print this object. (Inherited from Northwoods.Go.GoObject)
Public MethodCanReshapeCalled to see if the user can reshape this object. (Inherited from Northwoods.Go.GoObject)
Public MethodCanResizeCalled to see if the user can resize this object. (Inherited from Northwoods.Go.GoObject)
Public MethodCanSelectCalled to see if the user can select this object. (Inherited from Northwoods.Go.GoObject)
Public MethodCanViewCalled to see if the user can see this object. (Inherited from Northwoods.Go.GoObject)
Public MethodChangedNotify this object's document or view that some part of this object's state has been changed, via the GoDocument.Changed event and using the GoChangedEventArgs event args class. (Inherited from Northwoods.Go.GoObject)
Public MethodChangeValueOverridden. Handle this class's property changes for undo and redo  
Public MethodChangingNotify this object's document or view that some part of this object's state is about to be changed. (Inherited from Northwoods.Go.GoObject)
Public MethodClearRemove all children from this group. (Inherited from Northwoods.Go.GoGroup)
Public MethodCollapseReposition all of the children so that this node takes a minimum amount of space.  
Public MethodComputeBorderThe border goes around the rectangle returned by ComputeInsideMargins augmented by margins all around.  
Public MethodComputeCollapsedSizeDetermine the size that this subgraph should be when collapsed, excluding any collapsed margin.  
Public MethodComputeInsideMarginsDetermine the area occupied by the subgraph's child nodes, excluding any margins.  
Public MethodComputeMoveCalculate a new location for this object. (Inherited from Northwoods.Go.GoObject)
Public MethodComputeResizeCalculate a new bounding rectangle for this object. (Inherited from Northwoods.Go.GoObject)
Public MethodContainedByRectangleDetermine if a given rectangle completely encloses this object. (Inherited from Northwoods.Go.GoObject)
Public MethodContainsThis predicate is true when an object belongs to this group. (Inherited from Northwoods.Go.GoGroup)
Public MethodContainsPointA group contains a point if any of its visible children contain that point. (Inherited from Northwoods.Go.GoGroup)
Public MethodCopyThis convenience method just makes a copy of the object itself, using a generic GoCopyDictionary. (Inherited from Northwoods.Go.GoObject)
Public MethodCopyArrayReturns a newly allocated array of all of the immediate child objects in this group. (Inherited from Northwoods.Go.GoGroup)
Public MethodCopyNewValueForRedoOverridden. Copies state to permit a redo.  
Public MethodCopyObjectMake sure cached information is not copied. (Inherited from Northwoods.Go.GoNode)
Public MethodCopyObjectDelayedFor objects that require a second pass to complete the copying, this method is called after the first pass of copying all of the objects in CopyFromCollection(IGoCollection). (Inherited from Northwoods.Go.GoObject)
Public MethodCopyOldValueForUndoOverridden. Copies state to permit an undo.  
Public MethodCopyToCopy references to this group's immediate children into the given array. (Inherited from Northwoods.Go.GoGroup)
Public MethodCreateBoundingHandleCreate a bounding handle for this object. (Inherited from Northwoods.Go.GoObject)
Public MethodCreateEditorCreate a GoControl that implements an editor for this object in the given view. (Inherited from Northwoods.Go.GoObject)
Public MethodCreateResizeHandleCreate a resize handle for this object, given a handle ID. (Inherited from Northwoods.Go.GoObject)
Public MethodDoBeginEditStart editing the label. (Inherited from Northwoods.Go.GoNode)
Public MethodDoEndEditStop editing this object in the given view. (Inherited from Northwoods.Go.GoObject)
Public MethodDoMoveCalled when a user moves this object. (Inherited from Northwoods.Go.GoObject)
Public MethodDoResizeOverridden. Handle resizing by changing the margins instead of resizing the children.  
Public MethodExpandRestore the position of all of the children so that this subgraph completely visible again.  
Public MethodExpandAllThis method calls Expand on this node and then recursively proceeds through all of the children, expanding them.  
Public MethodExpandPaintBoundsOverridden. Account for the margins, and any shadow.  
Public MethodFindChildOverridden. The properties referring to parts of this node are also the names of those parts.  
Public MethodFindNameOverridden. The properties referring to parts of this node are also the names of those parts.  
Public MethodGetContextMenuCalled to get a GoContextMenu to display for this object. (Inherited from Northwoods.Go.GoObject)
Public MethodGetContextMenuStripCalled to get a ContextMenuStrip to display for this object. (Inherited from Northwoods.Go.GoObject)
Public MethodGetCursorNameCalled by OnMouseOver to determine the cursor, if any, to display over this object. (Inherited from Northwoods.Go.GoObject)
Public MethodGetEnumeratorGet an enumerator for iterating over the group's children, starting with the first child, which is painted behind all other children in the group. (Inherited from Northwoods.Go.GoGroup)
Public MethodGetNearestIntersectionPointA group's closest intersection point with a line is the closest such point among all of the visible children. (Inherited from Northwoods.Go.GoGroup)
Public MethodGetPartInfoReturn a GoPartInfo that describes this object and that can be transmitted to the client (user agent) as JavaScript data structures that can be used by code running on the client. (Inherited from Northwoods.Go.GoObject)
Public MethodGetRectangleSpotLocationGet the position of a spot in a rectangle. (Inherited from Northwoods.Go.GoObject)
Public MethodGetShadowBrushGet a Brush for painting a drop shadow in the given view. (Inherited from Northwoods.Go.GoObject)
Public MethodGetShadowOffsetGets the size of a drop shadow for this object in the given view. (Inherited from Northwoods.Go.GoObject)
Public MethodGetShadowPenGet a Pen for painting a drop shadow in the given view. (Inherited from Northwoods.Go.GoObject)
Public MethodGetSpotLocationGet the position of a spot on this object. (Inherited from Northwoods.Go.GoObject)
Public MethodGetToolTipReturn a string to be displayed in a tooltip, or null for none. (Inherited from Northwoods.Go.GoNode)
Public MethodIndexOfProvide a GoObject-specific implementation of IndexOf. (Inherited from Northwoods.Go.GoGroup)
Public MethodInsertProvide a GoObject-specific implementation of Insert, which just calls Add or InsertBefore. (Inherited from Northwoods.Go.GoGroup)
Public MethodInsertAfterAdd or move an object to be after an existing child. (Inherited from Northwoods.Go.GoGroup)
Public MethodInsertBeforeAdd or move an object to be before an existing child. (Inherited from Northwoods.Go.GoGroup)
Public MethodInvalidateViewsCause all views to repaint this object when they get a chance. (Inherited from Northwoods.Go.GoObject)
Public MethodIsChildOfDetermines if this object is a child, perhaps indirectly, of the given object. (Inherited from Northwoods.Go.GoObject)
Public MethodLayoutChildrenOverridden. This method does not move any of the children except possibly the CollapsedObject, the Label, the Handle, and the Port.  
Public MethodLayoutCollapsedObjectThis positions the CollapsedObject (if any) within the group.  
Public MethodLayoutHandleThis positions the handle within the group.  
Public MethodLayoutLabelThis positions the Label within the group, according to the LabelSpot or CollapsedLabelSpot.  
Public MethodLayoutPortThis positions the port within the group, normally exactly where the Handle is.  
Public MethodOnContextClickCalled when the user context clicks on this object. (Inherited from Northwoods.Go.GoObject)
Public MethodOnDoubleClickCalled when the user double clicks on this object. (Inherited from Northwoods.Go.GoObject)
Public MethodOnEnterLeaveCalled when the document object immediately under the mouse changes as the mouse moves when no particular tool is running or when the GoToolDragging tool is running. (Inherited from Northwoods.Go.GoObject)
Public MethodOnGotSelectionCalled when this object becomes selected. (Inherited from Northwoods.Go.GoObject)
Public MethodOnHoverCalled when the user hovers over this object. (Inherited from Northwoods.Go.GoObject)
Public MethodOnLostSelectionCalled when this object becomes unselected. (Inherited from Northwoods.Go.GoObject)
Public MethodOnMouseOverCalled when the user moves the mouse over this object when not dragging or resizing. (Inherited from Northwoods.Go.GoObject)
Public MethodOnSelectionDroppedCalled after the user has dropped the selection on this object. (Inherited from Northwoods.Go.GoObject)
Public MethodOnSelectionDropRejectCalled during a user's drag of the view's Selection when the mouse is over this object, to give this object a chance to veto a drop. (Inherited from Northwoods.Go.GoObject)
Public MethodOnSingleClickCalled when the user single clicks on this object. (Inherited from Northwoods.Go.GoObject)
Public MethodPaintOverridden. The background of the group is displayed as a rounded rectangle with a BackgroundColor and an Opacity, to make it easier to tell which nodes are part of which subgraph.  
Public MethodPaintsDecorationDecide whether Paint should call PaintDecoration.  
Public MethodPickPicking a group first tries to pick a child, starting with the last one which is most in front. (Inherited from Northwoods.Go.GoGroup)
Public MethodPickObjectsUnlike the standard behavior provided by GoGroup's GoGroup.PickObjects, subgraphs allow the picking of more than one child, if they overlap each other at the given point. (Inherited from Northwoods.Go.GoSubGraphBase)
Public MethodRemoveOverloaded. Overridden. If any part is removed from this group, be sure to remove any references in local fields.  
Public MethodRemoveAtImplement the IList method, which just calls Remove(GoObject). (Inherited from Northwoods.Go.GoGroup)
Public MethodRemoveChildNameOverloaded. Remove any association of a string name with a child object. (Inherited from Northwoods.Go.GoGroup)
Public MethodRemoveObserverMake sure an object is not an observer of changes to this object. (Inherited from Northwoods.Go.GoObject)
Public MethodRemoveSelectionHandlesRemove all selection handles for this object for the given selection collection. (Inherited from Northwoods.Go.GoObject)
Public MethodSetRectangleSpotLocationModify a rectangle such that its new spot location is at a given point. (Inherited from Northwoods.Go.GoObject)
Public MethodSetSizeKeepingLocationSets a new size for this object while maintaining the same location. (Inherited from Northwoods.Go.GoObject)
Public MethodSetSpotLocationOverloaded. Move this object so this object's given spot is at the given location. (Inherited from Northwoods.Go.GoObject)
Public MethodSpotOppositeGet the spot that is on the opposite side of a given spot. (Inherited from Northwoods.Go.GoObject)
Public MethodToggleThis convenience method calls either Collapse or Expand depending on whether it is expanded or collapsed.  
Top
Protected Methods
 NameDescription
Protected MethodCollapseChildCenter all the objects that aren't links and make everything invisible (besides Label and Handle and Port and CollapsedObject).  
Protected MethodComputeBoundsOverridden. Unlike a regular group, the bounding rectangle is computed by ignoring all children that are not Visible.  
Protected MethodComputeCollapsedRectangleGiven a desired collapsed size, return the expected collapsed area, ignoring any collapsed margins.  
Protected MethodComputeCollapsedSizeSkipThis predicate is called by ComputeCollapsedSize to decide if a child object should take part in the size calculation.  
Protected MethodComputeInsideMarginsSkipThis method is called by ComputeInsideMargins to see if a given child of this group should be ignored.  
Protected MethodComputeReferencePointReturn the point from which the relative positions of the children are calculated.  
Protected MethodCopyChildrenOverridden. This override is needed to make sure the expanded position information is copied correctly when this subgraph is collapsed at the time of the copy.  
Protected MethodCreateCollapsedObjectThis method is called to create an object that is displayed when the node is collapsed.  
Protected MethodCreateHandleThis method is called to create the "handle" representing the whole subgraph that the user can select to drag or click to collapse or expand the subgraph.  
Protected MethodCreateLabelThis creates the initial text label--an editable, bold, single-line GoText that wraps.  
Protected MethodCreatePortThis method is called to create a port that represents the subgraph as a whole.  
Protected MethodExpandChildRestore a child to its original position.  
Protected MethodFinishCollapseThis method is called towards the end of the process of a Collapse call.  
Protected MethodFinishExpandThis method is called at the end of the process of an Expand call.  
Protected MethodMoveChildrenThis just moves all the children from the group's former location. (Inherited from Northwoods.Go.GoNode)
Protected MethodOnBoundsChangedOverridden. When collapsed, update saved bounds for expand when empty.  
Protected MethodOnLayerChangedCalled when this object's layer is changed. (Inherited from Northwoods.Go.GoObject)
Protected MethodOnObservedChangedCalled when an observed object has been changed. (Inherited from Northwoods.Go.GoObject)
Protected MethodOnParentChangedCalled when this object's parent is changed. (Inherited from Northwoods.Go.GoObject)
Protected MethodPaintDecorationPaint a rounded rectangle using the current BackgroundColor, Opacity, BorderPen and Corner (or CollapsedCorner).  
Protected MethodPrepareCollapseDo any work before collapsing this subgraph.  
Protected MethodPrepareExpandDo any work before expanding the children.  
Protected MethodRescaleChildrenThis handles the general case of a resize by scaling and repositioning all the children. (Inherited from Northwoods.Go.GoNode)
Protected MethodSaveChildBoundsSave the original size and relative position for all non-links and the paths of all links.  
Top
See Also

Reference

GoSubGraph Class
Northwoods.Go Namespace

 

 


© 2015. Northwoods Software Corporation. All Rights Reserved.

Send Feedback