Smrf.NodeXL.Visualization.Wpf.VertexAndEdgeDrawerBase.GetColor C# (CSharp) Method

GetColor() protected method

protected GetColor ( IMetadataProvider oVertexOrEdge, VisibilityKeyValue eVisibility, System.Boolean bDrawAsSelected ) : Color
oVertexOrEdge IMetadataProvider
eVisibility VisibilityKeyValue
bDrawAsSelected System.Boolean
return Color
    GetColor
    (
        IMetadataProvider oVertexOrEdge,
        VisibilityKeyValue eVisibility,
        Boolean bDrawAsSelected
    )
    {
        Debug.Assert(oVertexOrEdge != null);
        AssertValid();

        if (bDrawAsSelected)
        {
            Color oColor = m_oSelectedColor;

            if (eVisibility == VisibilityKeyValue.Filtered)
            {
                oColor.A = m_btFilteredAlpha;
            }

            return (oColor);
        }

        return ( GetColor(oVertexOrEdge, eVisibility,
            ReservedMetadataKeys.PerColor, m_oColor, true) );
    }

Same methods

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