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

Base class for classes that draw vertices and edges.
Inheritance: DrawerBase
Datei anzeigen Open project: 2014-sed-team3/term-project

Protected Properties

Property Type Description
DefaultDashStyle System.Windows.Media.DashStyle
m_bUseSelection System.Boolean
m_btFilteredAlpha Byte
m_iMaximumLabelLength System.Int32
m_oColor Color
m_oDefaultBrush System.Windows.Media.SolidColorBrush
m_oDefaultPen System.Windows.Media.Pen
m_oFormattedTextManager FormattedTextManager
m_oSelectedColor Color

Public Methods

Method Description
AssertValid ( ) : void
GetDrawAsSelected ( IMetadataProvider vertexOrEdge ) : System.Boolean
GetVisibility ( IMetadataProvider vertexOrEdge ) : VisibilityKeyValue
SetFont ( System.Windows.Media.Typeface typeface, Double fontSize ) : void
VertexAndEdgeDrawerBase ( ) : System

Initializes a new instance of the class.

Protected Methods

Method Description
CreateDrawingObjects ( ) : void
GetAlpha ( IMetadataProvider oVertexOrEdge, VisibilityKeyValue eVisibility, Byte btDefaultAlpha ) : Byte
GetBrush ( Color oColor ) : SolidColorBrush
GetColor ( IMetadataProvider oVertexOrEdge, VisibilityKeyValue eVisibility, System.Boolean bDrawAsSelected ) : Color
GetColor ( IMetadataProvider oVertexOrEdge, VisibilityKeyValue eVisibility, String sKey, Color oDefaultColor, System.Boolean bApplyAlpha ) : Color
GetPen ( Color oColor, Double dThickness ) : System.Windows.Media.Pen
GetPen ( Color oColor, Double dThickness, System.Windows.Media.DashStyle oDashStyle ) : System.Windows.Media.Pen
TruncateLabel ( String sLabel ) : String

Method Details

AssertValid() public method

public AssertValid ( ) : void
return void

CreateDrawingObjects() protected method

protected CreateDrawingObjects ( ) : void
return void

GetAlpha() protected method

protected GetAlpha ( IMetadataProvider oVertexOrEdge, VisibilityKeyValue eVisibility, Byte btDefaultAlpha ) : Byte
oVertexOrEdge IMetadataProvider
eVisibility VisibilityKeyValue
btDefaultAlpha Byte
return Byte

GetBrush() protected method

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

GetColor() protected method

protected GetColor ( IMetadataProvider oVertexOrEdge, VisibilityKeyValue eVisibility, System.Boolean bDrawAsSelected ) : Color
oVertexOrEdge IMetadataProvider
eVisibility VisibilityKeyValue
bDrawAsSelected System.Boolean
return Color

GetColor() protected method

protected GetColor ( IMetadataProvider oVertexOrEdge, VisibilityKeyValue eVisibility, String sKey, Color oDefaultColor, System.Boolean bApplyAlpha ) : Color
oVertexOrEdge IMetadataProvider
eVisibility VisibilityKeyValue
sKey String
oDefaultColor Color
bApplyAlpha System.Boolean
return Color

GetDrawAsSelected() public method

public GetDrawAsSelected ( IMetadataProvider vertexOrEdge ) : System.Boolean
vertexOrEdge IMetadataProvider
return System.Boolean

GetPen() protected method

protected GetPen ( Color oColor, Double dThickness ) : System.Windows.Media.Pen
oColor Color
dThickness Double
return System.Windows.Media.Pen

GetPen() protected method

protected GetPen ( Color oColor, Double dThickness, System.Windows.Media.DashStyle oDashStyle ) : System.Windows.Media.Pen
oColor Color
dThickness Double
oDashStyle System.Windows.Media.DashStyle
return System.Windows.Media.Pen

GetVisibility() public static method

public static GetVisibility ( IMetadataProvider vertexOrEdge ) : VisibilityKeyValue
vertexOrEdge IMetadataProvider
return VisibilityKeyValue

SetFont() public method

public SetFont ( System.Windows.Media.Typeface typeface, Double fontSize ) : void
typeface System.Windows.Media.Typeface
fontSize Double
return void

TruncateLabel() protected method

protected TruncateLabel ( String sLabel ) : String
sLabel String
return String

VertexAndEdgeDrawerBase() public method

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

Property Details

DefaultDashStyle protected_oe static_oe property

protected static DashStyle,System.Windows.Media DefaultDashStyle
return System.Windows.Media.DashStyle

m_bUseSelection protected_oe property

protected Boolean,System m_bUseSelection
return System.Boolean

m_btFilteredAlpha protected_oe property

protected Byte m_btFilteredAlpha
return Byte

m_iMaximumLabelLength protected_oe property

protected Int32,System m_iMaximumLabelLength
return System.Int32

m_oColor protected_oe property

protected Color m_oColor
return Color

m_oDefaultBrush protected_oe property

protected SolidColorBrush,System.Windows.Media m_oDefaultBrush
return System.Windows.Media.SolidColorBrush

m_oDefaultPen protected_oe property

protected Pen,System.Windows.Media m_oDefaultPen
return System.Windows.Media.Pen

m_oFormattedTextManager protected_oe property

protected FormattedTextManager,Smrf.NodeXL.Visualization.Wpf m_oFormattedTextManager
return FormattedTextManager

m_oSelectedColor protected_oe property

protected Color m_oSelectedColor
return Color