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

Provides methods that draw a graph's groups.
This class provides methods for drawing groups when the user has specified a layout style of LayoutStyle.UseGroups. This is sometimes called "group in a box."

Call the TryDrawGroupRectangles, and methods to draw the group elements.

Inheritance: DrawerBase
Afficher le fichier Open project: 2014-sed-team3/term-project Class Usage Examples

Protected Properties

Свойство Type Description
m_dLabelScale Double
m_eLabelPosition VertexLabelPosition
m_oFormattedTextManager FormattedTextManager
m_oLabelTextColor Color

Méthodes publiques

Méthode Description
AssertValid ( ) : void
GroupDrawer ( ) : System

Initializes a new instance of the GroupDrawer class.

SetFont ( System.Windows.Media.Typeface typeface, Double fontSize ) : void
TryDrawCombinedIntergroupEdges ( IGraph graph, GraphDrawingContext graphDrawingContext, Visual &visual ) : System.Boolean
TryDrawGroupLabels ( IGraph graph, GraphDrawingContext graphDrawingContext, Visual &visual ) : System.Boolean
TryDrawGroupRectangles ( IGraph graph, GraphDrawingContext graphDrawingContext, Visual &visual ) : System.Boolean

Méthodes protégées

Méthode Description
DrawCombinedIntergroupEdge ( System.Windows.Media.DrawingContext oDrawingContext, GraphDrawingContext oGraphDrawingContext, IntergroupEdgeInfo oCombinedIntergroupEdge, GroupLayoutDrawingInfo oGroupLayoutDrawingInfo ) : void
DrawGroupLabel ( System.Windows.Media.DrawingContext oDrawingContext, GraphDrawingContext oGraphDrawingContext, GroupInfo oGroupInfo ) : void
GetCombinedIntergroupEdgePenWidth ( IntergroupEdgeInfo oCombinedIntergroupEdge ) : Double
GetContrastingColor ( GraphDrawingContext oGraphDrawingContext, Byte btAlpha, System.Boolean bUseMaximumContrast ) : Color
SetTextAlignment ( System.Windows.Media.FormattedText oFormattedText, VertexLabelPosition eLabelPosition ) : void
TryGetGroupRectangle ( GroupInfo oGroupInfo, Rect &oGroupRectangle ) : System.Boolean

Method Details

AssertValid() public méthode

public AssertValid ( ) : void
Résultat void

DrawCombinedIntergroupEdge() protected méthode

protected DrawCombinedIntergroupEdge ( System.Windows.Media.DrawingContext oDrawingContext, GraphDrawingContext oGraphDrawingContext, IntergroupEdgeInfo oCombinedIntergroupEdge, GroupLayoutDrawingInfo oGroupLayoutDrawingInfo ) : void
oDrawingContext System.Windows.Media.DrawingContext
oGraphDrawingContext GraphDrawingContext
oCombinedIntergroupEdge Smrf.NodeXL.Core.IntergroupEdgeInfo
oGroupLayoutDrawingInfo Smrf.NodeXL.Layouts.GroupLayoutDrawingInfo
Résultat void

DrawGroupLabel() protected méthode

protected DrawGroupLabel ( System.Windows.Media.DrawingContext oDrawingContext, GraphDrawingContext oGraphDrawingContext, GroupInfo oGroupInfo ) : void
oDrawingContext System.Windows.Media.DrawingContext
oGraphDrawingContext GraphDrawingContext
oGroupInfo Smrf.NodeXL.Core.GroupInfo
Résultat void

GetCombinedIntergroupEdgePenWidth() protected méthode

protected GetCombinedIntergroupEdgePenWidth ( IntergroupEdgeInfo oCombinedIntergroupEdge ) : Double
oCombinedIntergroupEdge Smrf.NodeXL.Core.IntergroupEdgeInfo
Résultat Double

GetContrastingColor() protected méthode

protected GetContrastingColor ( GraphDrawingContext oGraphDrawingContext, Byte btAlpha, System.Boolean bUseMaximumContrast ) : Color
oGraphDrawingContext GraphDrawingContext
btAlpha Byte
bUseMaximumContrast System.Boolean
Résultat Color

GroupDrawer() public méthode

Initializes a new instance of the GroupDrawer class.
public GroupDrawer ( ) : System
Résultat System

SetFont() public méthode

public SetFont ( System.Windows.Media.Typeface typeface, Double fontSize ) : void
typeface System.Windows.Media.Typeface
fontSize Double
Résultat void

SetTextAlignment() protected méthode

protected SetTextAlignment ( System.Windows.Media.FormattedText oFormattedText, VertexLabelPosition eLabelPosition ) : void
oFormattedText System.Windows.Media.FormattedText
eLabelPosition VertexLabelPosition
Résultat void

TryDrawCombinedIntergroupEdges() public méthode

public TryDrawCombinedIntergroupEdges ( IGraph graph, GraphDrawingContext graphDrawingContext, Visual &visual ) : System.Boolean
graph IGraph
graphDrawingContext GraphDrawingContext
visual Visual
Résultat System.Boolean

TryDrawGroupLabels() public méthode

public TryDrawGroupLabels ( IGraph graph, GraphDrawingContext graphDrawingContext, Visual &visual ) : System.Boolean
graph IGraph
graphDrawingContext GraphDrawingContext
visual Visual
Résultat System.Boolean

TryDrawGroupRectangles() public méthode

public TryDrawGroupRectangles ( IGraph graph, GraphDrawingContext graphDrawingContext, Visual &visual ) : System.Boolean
graph IGraph
graphDrawingContext GraphDrawingContext
visual Visual
Résultat System.Boolean

TryGetGroupRectangle() protected méthode

protected TryGetGroupRectangle ( GroupInfo oGroupInfo, Rect &oGroupRectangle ) : System.Boolean
oGroupInfo Smrf.NodeXL.Core.GroupInfo
oGroupRectangle System.Windows.Rect
Résultat System.Boolean

Property Details

m_dLabelScale protected_oe property

protected Double m_dLabelScale
Résultat Double

m_eLabelPosition protected_oe property

protected VertexLabelPosition m_eLabelPosition
Résultat VertexLabelPosition

m_oFormattedTextManager protected_oe property

protected FormattedTextManager,Smrf.NodeXL.Visualization.Wpf m_oFormattedTextManager
Résultat FormattedTextManager

m_oLabelTextColor protected_oe property

protected Color m_oLabelTextColor
Résultat Color