C# Class Smrf.NodeXL.Visualization.Wpf.CollapsedGroupDrawingManager

Manages the drawing of the vertex that represents a collapsed group and its incident edges.
Call PreDrawVertex before drawing a vertex, and after drawing the vertex. Call after expanding a collapsed group.
Inheritance: VisualizationBase
Show file Open project: 2014-sed-team3/term-project Class Usage Examples

Protected Properties

Property Type Description
FanMotifRadius Double
MaximumCliqueRadius Double
MaximumDConnectorRadius Double
MaximumFanMotifAngleRadians Double
MinimumCliqueRadius Double
MinimumDConnectorRadius Double
MinimumFanMotifAngleRadians Double
m_oCollapsedGroup Smrf.NodeXL.Core.GroupInfo
m_oCollapsedGroupAttributes Smrf.NodeXL.Core.CollapsedGroupAttributes
m_oCollapsedGroupVertex IVertex

Public Methods

Method Description
AssertValid ( ) : void
CollapsedGroupDrawingManager ( ) : System

Initializes a new instance of the class.

GetCollapsedMotifOutlineColor ( Byte alpha ) : Color
MoveVertexBoundsIfNecessary ( GraphDrawingContext graphDrawingContext, Double graphScale, Rect &vertexBounds ) : void
PostDrawVertex ( VertexShape vertexShape, Color vertexColor, GraphDrawingContext graphDrawingContext, System.Windows.Media.DrawingContext drawingContext, System.Boolean drawAsSelected, Double graphScale, VertexLabelDrawer vertexLabelDrawer, FormattedTextManager formattedTextManager, VertexDrawingHistory vertexDrawingHistory ) : void
PreDrawVertex ( IVertex vertex ) : void
RestoreExternalEdge ( IEdge expandedExternalEdge ) : void

Protected Methods

Method Description
DrawFanMotifFan ( Color oHeadColor, System.Windows.Media.DrawingContext oDrawingContext, System.Boolean bDrawAsSelected, Double dGraphScale, VertexDrawingHistory oVertexDrawingHistory ) : void
DrawPlusSign ( VertexShape eVertexShape, Color oVertexColor, GraphDrawingContext oGraphDrawingContext, System.Windows.Media.DrawingContext oDrawingContext, Double dGraphScale, VertexLabelDrawer oVertexLabelDrawer, FormattedTextManager oFormattedTextManager, VertexDrawingHistory oVertexDrawingHistory ) : void
GetAnchorVertexIndexes ( Int32 iAnchorVertices ) : Int32>.Dictionary
GetAnchorVertexNames ( Int32 iAnchorVertices ) : IEnumerable
GetCircleSegment ( Rect oVertexBounds, Double dAngleRadians, Double dGraphScale ) : System.Windows.Media.PathGeometry
GetCollapsedCliqueMotifToolTip ( Int32 iCliqueVertices ) : String
GetCollapsedDConnectorMotifToolTip ( Int32 iAnchorVertices, Int32 iSpanVertices ) : String
GetFanMotifAngleRadians ( ) : Double
SetCollapsedCliqueMotifAttributes ( ) : void
SetCollapsedDConnectorMotifAttributes ( ) : void
SetCollapsedDConnectorMotifEdgeAttributes ( Int32 iAnchorVertices ) : void
SetCollapsedDConnectorMotifEdgeColor ( IEdge oEdge, System oColor ) : void
SetCollapsedDConnectorMotifEdgeWidth ( IEdge oEdge, Double dWidth ) : void
SetCollapsedFanMotifAttributes ( ) : void
SetDefaultAttributesOnCollapsedGroup ( ) : void
SetSpecifiedAttributesOnCollapsedGroup ( ) : void
SetVertexColorFromCollapsedGroupAttributes ( String sKeyToSet ) : void
TryGetColor ( String sKey, System &oColor ) : System.Boolean

Method Details

AssertValid() public method

public AssertValid ( ) : void
return void

CollapsedGroupDrawingManager() public method

Initializes a new instance of the class.
public CollapsedGroupDrawingManager ( ) : System
return System

DrawFanMotifFan() protected method

protected DrawFanMotifFan ( Color oHeadColor, System.Windows.Media.DrawingContext oDrawingContext, System.Boolean bDrawAsSelected, Double dGraphScale, VertexDrawingHistory oVertexDrawingHistory ) : void
oHeadColor Color
oDrawingContext System.Windows.Media.DrawingContext
bDrawAsSelected System.Boolean
dGraphScale Double
oVertexDrawingHistory VertexDrawingHistory
return void

DrawPlusSign() protected method

protected DrawPlusSign ( VertexShape eVertexShape, Color oVertexColor, GraphDrawingContext oGraphDrawingContext, System.Windows.Media.DrawingContext oDrawingContext, Double dGraphScale, VertexLabelDrawer oVertexLabelDrawer, FormattedTextManager oFormattedTextManager, VertexDrawingHistory oVertexDrawingHistory ) : void
eVertexShape VertexShape
oVertexColor Color
oGraphDrawingContext GraphDrawingContext
oDrawingContext System.Windows.Media.DrawingContext
dGraphScale Double
oVertexLabelDrawer VertexLabelDrawer
oFormattedTextManager FormattedTextManager
oVertexDrawingHistory VertexDrawingHistory
return void

GetAnchorVertexIndexes() protected method

protected GetAnchorVertexIndexes ( Int32 iAnchorVertices ) : Int32>.Dictionary
iAnchorVertices System.Int32
return Int32>.Dictionary

GetAnchorVertexNames() protected method

protected GetAnchorVertexNames ( Int32 iAnchorVertices ) : IEnumerable
iAnchorVertices System.Int32
return IEnumerable

GetCircleSegment() protected method

protected GetCircleSegment ( Rect oVertexBounds, Double dAngleRadians, Double dGraphScale ) : System.Windows.Media.PathGeometry
oVertexBounds System.Windows.Rect
dAngleRadians Double
dGraphScale Double
return System.Windows.Media.PathGeometry

GetCollapsedCliqueMotifToolTip() protected method

protected GetCollapsedCliqueMotifToolTip ( Int32 iCliqueVertices ) : String
iCliqueVertices System.Int32
return String

GetCollapsedDConnectorMotifToolTip() protected method

protected GetCollapsedDConnectorMotifToolTip ( Int32 iAnchorVertices, Int32 iSpanVertices ) : String
iAnchorVertices System.Int32
iSpanVertices System.Int32
return String

GetCollapsedMotifOutlineColor() public static method

public static GetCollapsedMotifOutlineColor ( Byte alpha ) : Color
alpha Byte
return Color

GetFanMotifAngleRadians() protected method

protected GetFanMotifAngleRadians ( ) : Double
return Double

MoveVertexBoundsIfNecessary() public method

public MoveVertexBoundsIfNecessary ( GraphDrawingContext graphDrawingContext, Double graphScale, Rect &vertexBounds ) : void
graphDrawingContext GraphDrawingContext
graphScale Double
vertexBounds System.Windows.Rect
return void

PostDrawVertex() public method

public PostDrawVertex ( VertexShape vertexShape, Color vertexColor, GraphDrawingContext graphDrawingContext, System.Windows.Media.DrawingContext drawingContext, System.Boolean drawAsSelected, Double graphScale, VertexLabelDrawer vertexLabelDrawer, FormattedTextManager formattedTextManager, VertexDrawingHistory vertexDrawingHistory ) : void
vertexShape VertexShape
vertexColor Color
graphDrawingContext GraphDrawingContext
drawingContext System.Windows.Media.DrawingContext
drawAsSelected System.Boolean
graphScale Double
vertexLabelDrawer VertexLabelDrawer
formattedTextManager FormattedTextManager
vertexDrawingHistory VertexDrawingHistory
return void

PreDrawVertex() public method

public PreDrawVertex ( IVertex vertex ) : void
vertex IVertex
return void

RestoreExternalEdge() public static method

public static RestoreExternalEdge ( IEdge expandedExternalEdge ) : void
expandedExternalEdge IEdge
return void

SetCollapsedCliqueMotifAttributes() protected method

protected SetCollapsedCliqueMotifAttributes ( ) : void
return void

SetCollapsedDConnectorMotifAttributes() protected method

protected SetCollapsedDConnectorMotifAttributes ( ) : void
return void

SetCollapsedDConnectorMotifEdgeAttributes() protected method

protected SetCollapsedDConnectorMotifEdgeAttributes ( Int32 iAnchorVertices ) : void
iAnchorVertices System.Int32
return void

SetCollapsedDConnectorMotifEdgeColor() protected method

protected SetCollapsedDConnectorMotifEdgeColor ( IEdge oEdge, System oColor ) : void
oEdge IEdge
oColor System
return void

SetCollapsedDConnectorMotifEdgeWidth() protected method

protected SetCollapsedDConnectorMotifEdgeWidth ( IEdge oEdge, Double dWidth ) : void
oEdge IEdge
dWidth Double
return void

SetCollapsedFanMotifAttributes() protected method

protected SetCollapsedFanMotifAttributes ( ) : void
return void

SetDefaultAttributesOnCollapsedGroup() protected method

protected SetDefaultAttributesOnCollapsedGroup ( ) : void
return void

SetSpecifiedAttributesOnCollapsedGroup() protected method

protected SetSpecifiedAttributesOnCollapsedGroup ( ) : void
return void

SetVertexColorFromCollapsedGroupAttributes() protected method

protected SetVertexColorFromCollapsedGroupAttributes ( String sKeyToSet ) : void
sKeyToSet String
return void

TryGetColor() protected method

protected TryGetColor ( String sKey, System &oColor ) : System.Boolean
sKey String
oColor System
return System.Boolean

Property Details

FanMotifRadius protected property

protected Double FanMotifRadius
return Double

MaximumCliqueRadius protected property

protected Double MaximumCliqueRadius
return Double

MaximumDConnectorRadius protected property

protected Double MaximumDConnectorRadius
return Double

MaximumFanMotifAngleRadians protected property

protected Double MaximumFanMotifAngleRadians
return Double

MinimumCliqueRadius protected property

protected Double MinimumCliqueRadius
return Double

MinimumDConnectorRadius protected property

protected Double MinimumDConnectorRadius
return Double

MinimumFanMotifAngleRadians protected property

protected Double MinimumFanMotifAngleRadians
return Double

m_oCollapsedGroup protected property

protected GroupInfo,Smrf.NodeXL.Core m_oCollapsedGroup
return Smrf.NodeXL.Core.GroupInfo

m_oCollapsedGroupAttributes protected property

protected CollapsedGroupAttributes,Smrf.NodeXL.Core m_oCollapsedGroupAttributes
return Smrf.NodeXL.Core.CollapsedGroupAttributes

m_oCollapsedGroupVertex protected property

protected IVertex m_oCollapsedGroupVertex
return IVertex