C# Класс 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.

Наследование: DrawerBase
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
m_dLabelScale Double
m_eLabelPosition VertexLabelPosition
m_oFormattedTextManager FormattedTextManager
m_oLabelTextColor Color

Открытые методы

Метод Описание
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

Защищенные методы

Метод Описание
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

Описание методов

AssertValid() публичный Метод

public AssertValid ( ) : void
Результат void

DrawCombinedIntergroupEdge() защищенный Метод

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
Результат void

DrawGroupLabel() защищенный Метод

protected DrawGroupLabel ( System.Windows.Media.DrawingContext oDrawingContext, GraphDrawingContext oGraphDrawingContext, GroupInfo oGroupInfo ) : void
oDrawingContext System.Windows.Media.DrawingContext
oGraphDrawingContext GraphDrawingContext
oGroupInfo Smrf.NodeXL.Core.GroupInfo
Результат void

GetCombinedIntergroupEdgePenWidth() защищенный Метод

protected GetCombinedIntergroupEdgePenWidth ( IntergroupEdgeInfo oCombinedIntergroupEdge ) : Double
oCombinedIntergroupEdge Smrf.NodeXL.Core.IntergroupEdgeInfo
Результат Double

GetContrastingColor() защищенный Метод

protected GetContrastingColor ( GraphDrawingContext oGraphDrawingContext, Byte btAlpha, System.Boolean bUseMaximumContrast ) : Color
oGraphDrawingContext GraphDrawingContext
btAlpha Byte
bUseMaximumContrast System.Boolean
Результат Color

GroupDrawer() публичный Метод

Initializes a new instance of the GroupDrawer class.
public GroupDrawer ( ) : System
Результат System

SetFont() публичный Метод

public SetFont ( System.Windows.Media.Typeface typeface, Double fontSize ) : void
typeface System.Windows.Media.Typeface
fontSize Double
Результат void

SetTextAlignment() защищенный Метод

protected SetTextAlignment ( System.Windows.Media.FormattedText oFormattedText, VertexLabelPosition eLabelPosition ) : void
oFormattedText System.Windows.Media.FormattedText
eLabelPosition VertexLabelPosition
Результат void

TryDrawCombinedIntergroupEdges() публичный Метод

public TryDrawCombinedIntergroupEdges ( IGraph graph, GraphDrawingContext graphDrawingContext, Visual &visual ) : System.Boolean
graph IGraph
graphDrawingContext GraphDrawingContext
visual Visual
Результат System.Boolean

TryDrawGroupLabels() публичный Метод

public TryDrawGroupLabels ( IGraph graph, GraphDrawingContext graphDrawingContext, Visual &visual ) : System.Boolean
graph IGraph
graphDrawingContext GraphDrawingContext
visual Visual
Результат System.Boolean

TryDrawGroupRectangles() публичный Метод

public TryDrawGroupRectangles ( IGraph graph, GraphDrawingContext graphDrawingContext, Visual &visual ) : System.Boolean
graph IGraph
graphDrawingContext GraphDrawingContext
visual Visual
Результат System.Boolean

TryGetGroupRectangle() защищенный Метод

protected TryGetGroupRectangle ( GroupInfo oGroupInfo, Rect &oGroupRectangle ) : System.Boolean
oGroupInfo Smrf.NodeXL.Core.GroupInfo
oGroupRectangle System.Windows.Rect
Результат System.Boolean

Описание свойств

m_dLabelScale защищенное свойство

protected Double m_dLabelScale
Результат Double

m_eLabelPosition защищенное свойство

protected VertexLabelPosition m_eLabelPosition
Результат VertexLabelPosition

m_oFormattedTextManager защищенное свойство

protected FormattedTextManager,Smrf.NodeXL.Visualization.Wpf m_oFormattedTextManager
Результат FormattedTextManager

m_oLabelTextColor защищенное свойство

protected Color m_oLabelTextColor
Результат Color