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

Base class for classes that perform drawing operations.
Inheritance: VisualizationBase
Mostrar archivo Open project: 2014-sed-team3/term-project

Protected Properties

Property Type Description
m_dGraphScale Double

Public Methods

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

Initializes a new instance of the DrawerBase class.

TryGetEdgeDrawingHistory ( IEdge oEdge, EdgeDrawingHistory &oEdgeDrawingHistory ) : System.Boolean
TryGetVertexDrawingHistory ( IVertex oVertex, VertexDrawingHistory &oVertexDrawingHistory ) : System.Boolean

Protected Methods

Method Description
CreateFrozenPen ( System.Windows.Media.Brush oBrush, Double dThickness, System.Windows.Media.DashStyle oDashStyle ) : System.Windows.Media.Pen
CreateFrozenPen ( System.Windows.Media.Brush oBrush, Double dThickness, System.Windows.Media.DashStyle oDashStyle, PenLineCap eLineCap ) : System.Windows.Media.Pen
CreateFrozenSolidColorBrush ( Color oColor ) : SolidColorBrush
DrawLabelBackground ( System.Windows.Media.DrawingContext oDrawingContext, GraphDrawingContext oGraphDrawingContext, System.Windows.Media.FormattedText oFormattedText, Color oFormattedTextColor, Byte btBackgroundAlpha, Point oTextOrigin ) : void
GetBezierControlPoint ( GraphDrawingContext oGraphDrawingContext, Point oEndpoint1, Point oEndpoint2, Double dBezierDisplacementFactor ) : Point
TryGetColorValue ( IMetadataProvider oMetadataProvider, String sKey, Color &oColor ) : System.Boolean

Method Details

AssertValid() public method

public AssertValid ( ) : void
return void

CreateFrozenPen() protected method

protected CreateFrozenPen ( System.Windows.Media.Brush oBrush, Double dThickness, System.Windows.Media.DashStyle oDashStyle ) : System.Windows.Media.Pen
oBrush System.Windows.Media.Brush
dThickness Double
oDashStyle System.Windows.Media.DashStyle
return System.Windows.Media.Pen

CreateFrozenPen() protected method

protected CreateFrozenPen ( System.Windows.Media.Brush oBrush, Double dThickness, System.Windows.Media.DashStyle oDashStyle, PenLineCap eLineCap ) : System.Windows.Media.Pen
oBrush System.Windows.Media.Brush
dThickness Double
oDashStyle System.Windows.Media.DashStyle
eLineCap PenLineCap
return System.Windows.Media.Pen

CreateFrozenSolidColorBrush() protected method

protected CreateFrozenSolidColorBrush ( Color oColor ) : SolidColorBrush
oColor Color
return System.Windows.Media.SolidColorBrush

DrawLabelBackground() protected method

protected DrawLabelBackground ( System.Windows.Media.DrawingContext oDrawingContext, GraphDrawingContext oGraphDrawingContext, System.Windows.Media.FormattedText oFormattedText, Color oFormattedTextColor, Byte btBackgroundAlpha, Point oTextOrigin ) : void
oDrawingContext System.Windows.Media.DrawingContext
oGraphDrawingContext GraphDrawingContext
oFormattedText System.Windows.Media.FormattedText
oFormattedTextColor Color
btBackgroundAlpha Byte
oTextOrigin Point
return void

DrawerBase() public method

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

GetBezierControlPoint() protected method

protected GetBezierControlPoint ( GraphDrawingContext oGraphDrawingContext, Point oEndpoint1, Point oEndpoint2, Double dBezierDisplacementFactor ) : Point
oGraphDrawingContext GraphDrawingContext
oEndpoint1 Point
oEndpoint2 Point
dBezierDisplacementFactor Double
return Point

TryGetColorValue() protected method

protected TryGetColorValue ( IMetadataProvider oMetadataProvider, String sKey, Color &oColor ) : System.Boolean
oMetadataProvider IMetadataProvider
sKey String
oColor Color
return System.Boolean

TryGetEdgeDrawingHistory() public static method

public static TryGetEdgeDrawingHistory ( IEdge oEdge, EdgeDrawingHistory &oEdgeDrawingHistory ) : System.Boolean
oEdge IEdge
oEdgeDrawingHistory EdgeDrawingHistory
return System.Boolean

TryGetVertexDrawingHistory() public static method

public static TryGetVertexDrawingHistory ( IVertex oVertex, VertexDrawingHistory &oVertexDrawingHistory ) : System.Boolean
oVertex IVertex
oVertexDrawingHistory VertexDrawingHistory
return System.Boolean

Property Details

m_dGraphScale protected_oe property

protected Double m_dGraphScale
return Double