GoDiagram Win Reference
GoBoxPort Class Members
Fields  Properties  Methods 


The following tables list the members exposed by GoBoxPort.

Public Constructors
 NameDescription
Public ConstructorGoBoxPort ConstructorConstruct a rectangular port that is a solid gray.  
Top
Public Fields
 NameDescription
Public FieldChangedFromSidesThis is a GoObject.Changed subhint identifying changes to the value of the FromSides property.  
Public FieldChangedLinkPointsSpreadThis is a GoObject.Changed subhint identifying changes to the value of the LinkPointsSpread property.  
Public FieldChangedToSidesThis is a GoObject.Changed subhint identifying changes to the value of the ToSides property.  
Top
Public Properties
 NameDescription
Public PropertyAutoRescalesGets or sets whether this object automatically rescales its appearance when its size changes. (Inherited from Northwoods.Go.GoObject)
Public PropertyBottomGets or sets this object's bottom coordinate. (Inherited from Northwoods.Go.GoObject)
Public PropertyBoundsWhenever the size and/or position is changed, we clear out any cached data. (Inherited from Northwoods.Go.GoShape)
Public PropertyBrushGets or sets the brush used to fill the outline of this shape. (Inherited from Northwoods.Go.GoShape)
Public PropertyBrushColorGets or sets the main or background color of the brush. (Inherited from Northwoods.Go.GoShape)
Public PropertyBrushFocusScalesGets or sets the size of the focus area for path gradients, as normalized fractions of the size of the shape. (Inherited from Northwoods.Go.GoShape)
Public PropertyBrushForeColorGets or sets the foreground color of a brush. (Inherited from Northwoods.Go.GoShape)
Public PropertyBrushMidColorGets or sets the middle color of a gradient brush. (Inherited from Northwoods.Go.GoShape)
Public PropertyBrushMidFractionGets or sets the fractional distance between the end colors at which the middle color is drawn. (Inherited from Northwoods.Go.GoShape)
Public PropertyBrushPointGets or sets the end point for linear gradients or the focus point for path gradients, as normalized fractions of the size of the shape. (Inherited from Northwoods.Go.GoShape)
Public PropertyBrushStartPointGets or sets the start point for linear gradients, as normalized fractions of the size of the shape. (Inherited from Northwoods.Go.GoShape)
Public PropertyBrushStyleGets or sets the kind of brush used by this shape. (Inherited from Northwoods.Go.GoShape)
Public PropertyClearsLinksWhenRemovedGets or sets whether this port calls GoPort.ClearLinks when it is removed from a GoLayer (i.e., from a document, normally). (Inherited from Northwoods.Go.GoPort)
Public PropertyCopyableGets or sets whether the user can copy this object. (Inherited from Northwoods.Go.GoObject)
Public PropertyDeletableGets or sets whether the user can delete this object. (Inherited from Northwoods.Go.GoObject)
Public PropertyDestinationLinksGets an enumerator over all of the links going out of this port. (Inherited from Northwoods.Go.GoPort)
Public PropertyDestinationLinksCountGets the number of links going out of this port. (Inherited from Northwoods.Go.GoPort)
Public PropertyDocumentGets the document that this object belongs to, or null if this is not in a layer or if this is in a view layer. (Inherited from Northwoods.Go.GoObject)
Public PropertyDraggingObjectGets the object that will be dragged instead of this selected object. (Inherited from Northwoods.Go.GoObject)
Public PropertyDragsNodeGets or sets whether this object, when selected and a child of a group, and when dragged, drags the parent node instead. (Inherited from Northwoods.Go.GoObject)
Public PropertyEditableGets or sets whether the user can edit this object. (Inherited from Northwoods.Go.GoObject)
Public PropertyEndSegmentLengthGets or sets the length of the link segment closest to this port. (Inherited from Northwoods.Go.GoPort)
Public PropertyFromSidesGets or sets the spot(s) indicating the side(s) of the port from which links come out.  
Public PropertyFromSpotGets or sets the GoObject spot at which to connect links coming out from this port. (Inherited from Northwoods.Go.GoPort)
Public PropertyGoObjectReturns itself as a GoObject. (Inherited from Northwoods.Go.GoPort)
Public PropertyHeightGets or sets this object's height. (Inherited from Northwoods.Go.GoObject)
Public PropertyIsValidDuplicateLinksGets or sets whether a valid link can be made between two ports already connected by a link in the same direction. (Inherited from Northwoods.Go.GoPort)
Public PropertyIsValidFromGets or sets whether this port can be a valid value for some link's IGoLink.FromPort. (Inherited from Northwoods.Go.GoPort)
Public PropertyIsValidSelfNodeGets or sets whether a valid link can be made between two ports belonging to the same node. (Inherited from Northwoods.Go.GoPort)
Public PropertyIsValidSingleLinkGets or sets whether GoPort.CanLinkFrom and GoPort.CanLinkTo return false when there is already a link connected at this port. (Inherited from Northwoods.Go.GoPort)
Public PropertyIsValidToGets or sets whether this port can be a valid value for some link's IGoLink.ToPort. (Inherited from Northwoods.Go.GoPort)
Public PropertyLayerGets the layer to which this object belongs. (Inherited from Northwoods.Go.GoObject)
Public PropertyLeftGets or sets this object's left coordinate, the X position. (Inherited from Northwoods.Go.GoObject)
Public PropertyLinkPointsSpreadGets or sets whether the link points of the links connected to this port are spread evenly along the side of the port, or if they are all at the mid-point of the side.  
Public PropertyLinksGets an enumerator over all of the links connected at this port. (Inherited from Northwoods.Go.GoPort)
Public PropertyLinksCountGets the total number of links connected at this port. (Inherited from Northwoods.Go.GoPort)
Public PropertyLocationGets or sets this object's natural position. (Inherited from Northwoods.Go.GoObject)
Public PropertyMovableGets or sets whether the user can move this object. (Inherited from Northwoods.Go.GoObject)
Public PropertyNodeGets the node that this port is part of. (Inherited from Northwoods.Go.GoPort)
Public PropertyObserversGets an enumerator over the list of observer objects of this object. (Inherited from Northwoods.Go.GoObject)
Public PropertyParentGets the parent group for this object. (Inherited from Northwoods.Go.GoObject)
Public PropertyPartIDGets or sets the unique ID of this part within its document. (Inherited from Northwoods.Go.GoPort)
Public PropertyPenGets or sets the pen used to draw the outline of this shape. (Inherited from Northwoods.Go.GoShape)
Public PropertyPenColorGets or sets the color of the pen. (Inherited from Northwoods.Go.GoShape)
Public PropertyPenWidthGets or sets the width of the pen. (Inherited from Northwoods.Go.GoShape)
Public PropertyPortObjectGets or sets the GoObject that may stand in for this port. (Inherited from Northwoods.Go.GoPort)
Public PropertyPrintableGets or sets whether the view can print this object. (Inherited from Northwoods.Go.GoObject)
Public PropertyReshapableGets or sets whether the user can reshape this object. (Inherited from Northwoods.Go.GoObject)
Public PropertyResizableGets or sets whether the user can resize this object. (Inherited from Northwoods.Go.GoObject)
Public PropertyResizesRealtimeGets or sets whether this object continuously changes its size during a user resizing operation. [In Web Forms there is no continuous visual feedback of a resize.] (Inherited from Northwoods.Go.GoObject)
Public PropertyRightGets or sets this object's right coordinate. (Inherited from Northwoods.Go.GoObject)
Public PropertySelectableGets or sets whether the user can select this object. (Inherited from Northwoods.Go.GoObject)
Public PropertySelectionObjectGets the object that gets selection handles when this object is selected. (Inherited from Northwoods.Go.GoObject)
Public PropertyShadowedGets or sets whether this object is painted with a drop shadow. (Inherited from Northwoods.Go.GoObject)
Public PropertySourceLinksGets an enumerator over all of the links coming into this port. (Inherited from Northwoods.Go.GoPort)
Public PropertySourceLinksCountGets the number of links coming into this port. (Inherited from Northwoods.Go.GoPort)
Public PropertyStyleGets or sets the appearance style for this port. (Inherited from Northwoods.Go.GoPort)
Public PropertyTopGets or sets this object's top coordinate, the Y position. (Inherited from Northwoods.Go.GoObject)
Public PropertyToSidesGets or sets the spot(s) indicating the side(s) of the port to which links go.  
Public PropertyToSpotGets or sets the GoObject spot at which to connect links going into this port. (Inherited from Northwoods.Go.GoPort)
Public PropertyUserFlagsGets or sets an integer value associated with this port. (Inherited from Northwoods.Go.GoPort)
Public PropertyUserObjectGets or sets an object associated with this port. (Inherited from Northwoods.Go.GoPort)
Public PropertyViewGets the view that this object belongs to, or null if this is not in a layer or if this is in a document layer. (Inherited from Northwoods.Go.GoObject)
Public PropertyVisibleGets or sets whether the user can see this object. (Inherited from Northwoods.Go.GoObject)
Public PropertyWidthGets or sets this object's width. (Inherited from Northwoods.Go.GoObject)
Top
Public Methods
 NameDescription
Public MethodAddDestinationLinkAdd a link to this port's collection of connected links, making sure the link's FromPort is this port so that the link is a connection to another destination port. (Inherited from Northwoods.Go.GoPort)
Public MethodAddObserverRegister an object as an observer of changes to this object. (Inherited from Northwoods.Go.GoObject)
Public MethodAddSelectionHandlesAdd selection handles for this object for the given selection collection. (Inherited from Northwoods.Go.GoObject)
Public MethodAddSourceLinkAdd a link to this port's collection of connected links, making sure the link's ToPort is this port so that the link is a connection from another source port. (Inherited from Northwoods.Go.GoPort)
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 MethodCanLinkFromThis predicate should be true if, by itself, there is no known reason why one couldn't create a valid link from this port to some port. (Inherited from Northwoods.Go.GoPort)
Public MethodCanLinkToThis predicate should be true if, by itself, there is no known reason why one couldn't create a valid link from some port to this one. (Inherited from Northwoods.Go.GoPort)
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.GoDocument.Changed event and using the GoChangedEventArgs event args class. (Inherited from Northwoods.Go.GoObject)
Public MethodChangeValueOverridden. Handle undo and redo changes.  
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 MethodClearLinksRemove all links connected to this port. (Inherited from Northwoods.Go.GoPort)
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 MethodContainedByRectangleConsider the Pen width when determining if this shape is inside a rectangle. (Inherited from Northwoods.Go.GoShape)
Public MethodContainsLinkDetermine if a link is connected at this port. (Inherited from Northwoods.Go.GoPort)
Public MethodContainsPointConsider the Pen width when determining if a point is in this shape. (Inherited from Northwoods.Go.GoShape)
Public MethodCopyThis convenience method just makes a copy of the object itself, using a generic GoCopyDictionary. (Inherited from Northwoods.Go.GoObject)
Public MethodCopyLinksArrayReturns a newly allocated array containing references to all of the links connected to this port. (Inherited from Northwoods.Go.GoPort)
Public MethodCopyNewValueForRedoPreserve any mutable state needed to perform an IGoUndoableEdit.Redo. (Inherited from Northwoods.Go.GoObject)
Public MethodCopyObjectOverridden. Don't copy internally cached information.  
Public MethodCopyObjectDelayedMake sure any unshared GoPort.PortObject is copied. (Inherited from Northwoods.Go.GoPort)
Public MethodCopyOldValueForUndoPreserve any mutable state needed to perform an IGoUndoableEdit.Undo. (Inherited from Northwoods.Go.GoObject)
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 this object in the given view. (Inherited from Northwoods.Go.GoObject)
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 MethodDoResizeCalled when a user resizes this object. (Inherited from Northwoods.Go.GoObject)
Public MethodExpandPaintBoundsOverridden. The expanded paint bounds for a shape includes any Pen width and miter limit and any drop shadow.  
Public MethodFillDoubleEdgeOverloaded. Set the GoShape.Brush to be a vertical linear gradient starting with the start color, with most of the center being Color.White, and ending with the starting color. (Inherited from Northwoods.Go.GoShape)
Public MethodFillEllipseGradientOverloaded. Set the GoShape.Brush to be a gradient occupying this shape's GoObject.Bounds, with the color color along the four edges of the rectangle, surrounding a very light version of that color. (Inherited from Northwoods.Go.GoShape)
Public MethodFillHalfGradientOverloaded. Set the GoShape.Brush to be a vertical linear gradient starting with a very light version of the color color, and having the last half of the gradient be the solid color color. (Inherited from Northwoods.Go.GoShape)
Public MethodFillMiddleGradientOverloaded. Set the GoShape.Brush to be a vertical linear gradient starting with a very light version of the color color, having the middle with a color lighter than color, and ending with the starting color. (Inherited from Northwoods.Go.GoShape)
Public MethodFillRectangleGradientOverloaded. Set the GoShape.Brush to be a gradient occupying this shape's GoObject.Bounds, with the color color along the four edges of the rectangle, surrounding a very light version of that color. (Inherited from Northwoods.Go.GoShape)
Public MethodFillShadedGradientOverloaded. Set the GoShape.Brush to be a vertical linear gradient starting with a very light version of the color color, having the middle with a color lighter than color, and ending with a darker color than the color. (Inherited from Northwoods.Go.GoShape)
Public MethodFillShapeFringeOverloaded. Set the GoShape.Brush to be a path shaped gradient starting with the start color, with most of the center being Color.White. (Inherited from Northwoods.Go.GoShape)
Public MethodFillShapeGradientOverloaded. Set the GoShape.Brush to be a path shaped gradient with the color color surrounding a very light version of that color. (Inherited from Northwoods.Go.GoShape)
Public MethodFillShapeHighlightOverloaded. Set the GoShape.Brush to be a path shaped gradient that is mostly the start color, with a white "highlight". (Inherited from Northwoods.Go.GoShape)
Public MethodFillSimpleGradientOverloaded. Set the GoShape.Brush to be a simple vertical linear gradient using the given color. (Inherited from Northwoods.Go.GoShape)
Public MethodFillSingleEdgeOverloaded. Set the GoShape.Brush to be a vertical linear gradient starting with the start color, with most of the center being Color.White. (Inherited from Northwoods.Go.GoShape)
Public MethodGetAngleDetermine the angle the port at the other end makes with this port.  
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 MethodGetCursorNameChange the cursor to a "hand" cursor if the user can draw a new link at this port. (Inherited from Northwoods.Go.GoPort)
Public MethodGetDirectionDetermine the direction for a link at this port.  
Public MethodGetFromEndSegmentLengthOverridden. Be a little smarter about customizing the end-segment-length value used for the multiple links connected to the same side, to reduce the chances of overlapping segments of orthogonal links in some circumstances.  
Public MethodGetFromLinkDirOverridden. Make sure the link is going out perpendicularly from the sides of the port.  
Public MethodGetFromLinkPointOverridden. Determine the link point by judging where the link is going to, and at what angle.  
Public MethodGetLinkDirDetermine the direction in which the link should go from the link point. (Inherited from Northwoods.Go.GoPort)
Public MethodGetLinkPointFromPointDetermine the actual point at which a link connected to this port should terminate when the spot is GoObject.NoSpot. (Inherited from Northwoods.Go.GoPort)
Public MethodGetNearestIntersectionPointIf there is a GoPort.PortObject and the GoPort.Style is not GoPortStyle.GoPortStyle.Object, return the closest intersection point of the given line with that object. (Inherited from Northwoods.Go.GoPort)
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 MethodGetToEndSegmentLengthOverridden. Be a little smarter about customizing the end-segment-length value used for the multiple links connected to the same side, to reduce the chances of overlapping segments of orthogonal links in some circumstances.  
Public MethodGetToLinkDirOverridden. Make sure the link is coming in perpendicularly to the sides of the port.  
Public MethodGetToLinkPointOverridden. Determine the link point by judging where the link is coming from, and at what angle.  
Public MethodGetToolTipCalled to get a String to display as a tooltip for this object. (Inherited from Northwoods.Go.GoObject)
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 MethodIsInSameNodeThis static method determines if both arguments belong to the same IGoNode. (Inherited from Northwoods.Go.GoPort)
Public MethodIsLinkedThis static method determines if there is a link going from one port to another. (Inherited from Northwoods.Go.GoPort)
Public MethodIsOrthogonalThis convenience method decides if the given link is supposed to be drawn with all of its segments orthogonal.  
Public MethodIsValidLinkTrue if it is valid to create a link from this port to toPort. (Inherited from Northwoods.Go.GoPort)
Public MethodLinksOnPortChangedOverridden. Sets an internal flag that causes the link positions to be recalculated when link routing occurs.  
Public MethodMakePathProduce a GraphicsPath representing this shape. (Inherited from Northwoods.Go.GoPort)
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 MethodOnLinkChangedWhen a link connected to this port is changed, this method is called. (Inherited from Northwoods.Go.GoPort)
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. Unlike most ports, this kind of port will draw a drop-shadow, if expected of the parent GoBoxNode.  
Public MethodPaintGreekBecause ports are normally small objects, we heed the GoView.PaintNothingScale and GoView.PaintGreekScale properties. (Inherited from Northwoods.Go.GoPort)
Public MethodPickReturn an object at a point, perhaps only a selectable one. (Inherited from Northwoods.Go.GoObject)
Public MethodRemoveThis convenience method just removes this object from its container, if there is any. (Inherited from Northwoods.Go.GoObject)
Public MethodRemoveLinkRemove a link from this port's collection of connected links. (Inherited from Northwoods.Go.GoPort)
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 MethodUpdateAllLinkPointsReroute all of the links connected at this port, if LinkPointsSpread is true, so that all of the link points are up-to-date.  
Top
Protected Methods
 NameDescription
Protected MethodAssignEndSegmentLengthsGiven a sorted array of angle, side, and link-point information about the links connected to this port, assign the actual GoBoxPortLinkInfo.GoBoxPortLinkInfo.EndSegmentLength.  
Protected MethodAssignLinkPointsGiven a sorted array of angle and side information about the links connected to this port, assign the actual GoBoxPortLinkInfo.GoBoxPortLinkInfo.LinkPoint.  
Protected MethodComputeBoundsRecalculates the actual bounding rectangle for this object when it might be invalid. (Inherited from Northwoods.Go.GoObject)
Protected MethodGetPathGets a cached GraphicsPath produced by a call to GoShape.MakePath. (Inherited from Northwoods.Go.GoShape)
Protected MethodOnBoundsChangedWhen a port is moved, we update any links connected to this port by calling GoPort.LinksOnPortChanged. (Inherited from Northwoods.Go.GoPort)
Protected MethodOnLayerChangedWhen a port is removed from a layer, we remove all of the links connected to the port. (Inherited from Northwoods.Go.GoPort)
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 MethodResetPathClear any cached GraphicsPath. (Inherited from Northwoods.Go.GoShape)
Protected MethodSortLinkInfosSort an array of angle and side information about the links connected to this port.  
Top
See Also

Reference

GoBoxPort Class
Northwoods.Go Namespace

 

 


© 2015. Northwoods Software Corporation. All Rights Reserved.

Send Feedback