C# Class Smrf.NodeXL.ExcelTemplate.DynamicFiltersLegendControl

Displays a graph legend for the dynamic filters that have been applied to the graph.
Call Update whenever the dynamic filters change. Call to clear the legend.

Update sets the control's height to allow the entire legend to fit within the control.

Inheritance: LegendControlBase
Afficher le fichier Open project: 2014-sed-team3/term-project

Protected Properties

Свойство Type Description
m_oEdgeDynamicFilterRangeTrackBars ICollection
m_oVertexDynamicFilterRangeTrackBars ICollection

Méthodes publiques

Méthode Description
AssertValid ( ) : void
Clear ( ) : void
CreateEmptyCollection ( ) : ICollection
DynamicFiltersLegendControl ( ) : System

Initializes a new instance of the class.

Update ( ICollection edgeDynamicFilterRangeTrackBars, ICollection vertexDynamicFilterRangeTrackBars ) : void

Méthodes protégées

Méthode Description
Draw ( DrawingObjects oDrawingObjects ) : Int32
DrawAvailableRangeText ( DrawingObjects oDrawingObjects, IDynamicFilterRangeTrackBar oDynamicFilterRangeTrackBar, Int32 &iAvailableRangeTextLeft, Int32 &iAvailableRangeTextRight, Int32 &iTop ) : void
DrawDynamicFilterRangeTrackBar ( DrawingObjects oDrawingObjects, IDynamicFilterRangeTrackBar oDynamicFilterRangeTrackBar, Pen oAvailableRangeLinePen, Pen oSelectedRangeLinePen, Rectangle oColumnRectangle, Int32 iTrackBarLeft, Int32 iTrackBarRight, Int32 &iTop ) : void
DrawDynamicFilterRangeTrackBars ( DrawingObjects oDrawingObjects, String sGroupName, ICollection oDynamicFilterRangeTrackBars, Rectangle oColumnRectangle ) : Int32
DrawSelectedRangeLine ( DrawingObjects oDrawingObjects, IDynamicFilterRangeTrackBar oDynamicFilterRangeTrackBar, Pen oSelectedRangeLinePen, Int32 iAvailableRangeLineLeft, Int32 iAvailableRangeLineRight, Int32 &iSelectedRangeLineLeft, Int32 &iSelectedRangeLineRight, Int32 &iTop ) : void
DrawSelectedRangeText ( DrawingObjects oDrawingObjects, IDynamicFilterRangeTrackBar oDynamicFilterRangeTrackBar, Int32 iAvailableRangeTextLeft, Int32 iAvailableRangeTextRight, Int32 iSelectedRangeLineLeft, Int32 iSelectedRangeLineRight, Int32 iTop ) : void
GetXWithinAvailableLine ( Decimal decValue, IDynamicFilterRangeTrackBar oDynamicFilterRangeTrackBar, Int32 iAvailableLineLeft, Int32 iAvailableLineRight ) : Int32
OnPaint ( PaintEventArgs e ) : void

Method Details

AssertValid() public méthode

public AssertValid ( ) : void
Résultat void

Clear() public méthode

public Clear ( ) : void
Résultat void

CreateEmptyCollection() public méthode

public CreateEmptyCollection ( ) : ICollection
Résultat ICollection

Draw() protected méthode

protected Draw ( DrawingObjects oDrawingObjects ) : Int32
oDrawingObjects DrawingObjects
Résultat System.Int32

DrawAvailableRangeText() protected méthode

protected DrawAvailableRangeText ( DrawingObjects oDrawingObjects, IDynamicFilterRangeTrackBar oDynamicFilterRangeTrackBar, Int32 &iAvailableRangeTextLeft, Int32 &iAvailableRangeTextRight, Int32 &iTop ) : void
oDrawingObjects DrawingObjects
oDynamicFilterRangeTrackBar IDynamicFilterRangeTrackBar
iAvailableRangeTextLeft System.Int32
iAvailableRangeTextRight System.Int32
iTop System.Int32
Résultat void

DrawDynamicFilterRangeTrackBar() protected méthode

protected DrawDynamicFilterRangeTrackBar ( DrawingObjects oDrawingObjects, IDynamicFilterRangeTrackBar oDynamicFilterRangeTrackBar, Pen oAvailableRangeLinePen, Pen oSelectedRangeLinePen, Rectangle oColumnRectangle, Int32 iTrackBarLeft, Int32 iTrackBarRight, Int32 &iTop ) : void
oDrawingObjects DrawingObjects
oDynamicFilterRangeTrackBar IDynamicFilterRangeTrackBar
oAvailableRangeLinePen System.Drawing.Pen
oSelectedRangeLinePen System.Drawing.Pen
oColumnRectangle System.Drawing.Rectangle
iTrackBarLeft System.Int32
iTrackBarRight System.Int32
iTop System.Int32
Résultat void

DrawDynamicFilterRangeTrackBars() protected méthode

protected DrawDynamicFilterRangeTrackBars ( DrawingObjects oDrawingObjects, String sGroupName, ICollection oDynamicFilterRangeTrackBars, Rectangle oColumnRectangle ) : Int32
oDrawingObjects DrawingObjects
sGroupName String
oDynamicFilterRangeTrackBars ICollection
oColumnRectangle System.Drawing.Rectangle
Résultat System.Int32

DrawSelectedRangeLine() protected méthode

protected DrawSelectedRangeLine ( DrawingObjects oDrawingObjects, IDynamicFilterRangeTrackBar oDynamicFilterRangeTrackBar, Pen oSelectedRangeLinePen, Int32 iAvailableRangeLineLeft, Int32 iAvailableRangeLineRight, Int32 &iSelectedRangeLineLeft, Int32 &iSelectedRangeLineRight, Int32 &iTop ) : void
oDrawingObjects DrawingObjects
oDynamicFilterRangeTrackBar IDynamicFilterRangeTrackBar
oSelectedRangeLinePen System.Drawing.Pen
iAvailableRangeLineLeft System.Int32
iAvailableRangeLineRight System.Int32
iSelectedRangeLineLeft System.Int32
iSelectedRangeLineRight System.Int32
iTop System.Int32
Résultat void

DrawSelectedRangeText() protected méthode

protected DrawSelectedRangeText ( DrawingObjects oDrawingObjects, IDynamicFilterRangeTrackBar oDynamicFilterRangeTrackBar, Int32 iAvailableRangeTextLeft, Int32 iAvailableRangeTextRight, Int32 iSelectedRangeLineLeft, Int32 iSelectedRangeLineRight, Int32 iTop ) : void
oDrawingObjects DrawingObjects
oDynamicFilterRangeTrackBar IDynamicFilterRangeTrackBar
iAvailableRangeTextLeft System.Int32
iAvailableRangeTextRight System.Int32
iSelectedRangeLineLeft System.Int32
iSelectedRangeLineRight System.Int32
iTop System.Int32
Résultat void

DynamicFiltersLegendControl() public méthode

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

GetXWithinAvailableLine() protected méthode

protected GetXWithinAvailableLine ( Decimal decValue, IDynamicFilterRangeTrackBar oDynamicFilterRangeTrackBar, Int32 iAvailableLineLeft, Int32 iAvailableLineRight ) : Int32
decValue Decimal
oDynamicFilterRangeTrackBar IDynamicFilterRangeTrackBar
iAvailableLineLeft System.Int32
iAvailableLineRight System.Int32
Résultat System.Int32

OnPaint() protected méthode

protected OnPaint ( PaintEventArgs e ) : void
e PaintEventArgs
Résultat void

Update() public méthode

public Update ( ICollection edgeDynamicFilterRangeTrackBars, ICollection vertexDynamicFilterRangeTrackBars ) : void
edgeDynamicFilterRangeTrackBars ICollection
vertexDynamicFilterRangeTrackBars ICollection
Résultat void

Property Details

m_oEdgeDynamicFilterRangeTrackBars protected_oe property

protected ICollection m_oEdgeDynamicFilterRangeTrackBars
Résultat ICollection

m_oVertexDynamicFilterRangeTrackBars protected_oe property

protected ICollection m_oVertexDynamicFilterRangeTrackBars
Résultat ICollection