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
파일 보기 프로젝트 열기: 2014-sed-team3/term-project 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
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