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

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

Protected Properties

Свойство 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

Méthodes publiques

Méthode 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.

Méthodes protégées

Méthode 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 méthode

public AssertValid ( ) : void
Résultat void

CreateDrawingObjects() protected méthode

protected CreateDrawingObjects ( ) : void
Résultat void

GetAlpha() protected méthode

protected GetAlpha ( IMetadataProvider oVertexOrEdge, VisibilityKeyValue eVisibility, Byte btDefaultAlpha ) : Byte
oVertexOrEdge IMetadataProvider
eVisibility VisibilityKeyValue
btDefaultAlpha Byte
Résultat Byte

GetBrush() protected méthode

protected GetBrush ( Color oColor ) : SolidColorBrush
oColor Color
Résultat System.Windows.Media.SolidColorBrush

GetColor() protected méthode

protected GetColor ( IMetadataProvider oVertexOrEdge, VisibilityKeyValue eVisibility, System.Boolean bDrawAsSelected ) : Color
oVertexOrEdge IMetadataProvider
eVisibility VisibilityKeyValue
bDrawAsSelected System.Boolean
Résultat Color

GetColor() protected méthode

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
Résultat Color

GetDrawAsSelected() public méthode

public GetDrawAsSelected ( IMetadataProvider vertexOrEdge ) : System.Boolean
vertexOrEdge IMetadataProvider
Résultat System.Boolean

GetPen() protected méthode

protected GetPen ( Color oColor, Double dThickness ) : System.Windows.Media.Pen
oColor Color
dThickness Double
Résultat System.Windows.Media.Pen

GetPen() protected méthode

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

GetVisibility() public static méthode

public static GetVisibility ( IMetadataProvider vertexOrEdge ) : VisibilityKeyValue
vertexOrEdge IMetadataProvider
Résultat VisibilityKeyValue

SetFont() public méthode

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

TruncateLabel() protected méthode

protected TruncateLabel ( String sLabel ) : String
sLabel String
Résultat String

VertexAndEdgeDrawerBase() public méthode

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

Property Details

DefaultDashStyle protected_oe static_oe property

protected static DashStyle,System.Windows.Media DefaultDashStyle
Résultat System.Windows.Media.DashStyle

m_bUseSelection protected_oe property

protected Boolean,System m_bUseSelection
Résultat System.Boolean

m_btFilteredAlpha protected_oe property

protected Byte m_btFilteredAlpha
Résultat Byte

m_iMaximumLabelLength protected_oe property

protected Int32,System m_iMaximumLabelLength
Résultat System.Int32

m_oColor protected_oe property

protected Color m_oColor
Résultat Color

m_oDefaultBrush protected_oe property

protected SolidColorBrush,System.Windows.Media m_oDefaultBrush
Résultat System.Windows.Media.SolidColorBrush

m_oDefaultPen protected_oe property

protected Pen,System.Windows.Media m_oDefaultPen
Résultat System.Windows.Media.Pen

m_oFormattedTextManager protected_oe property

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

m_oSelectedColor protected_oe property

protected Color m_oSelectedColor
Résultat Color