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
ファイルを表示 Open project: 2014-sed-team3/term-project

Protected Properties

Property Type Description
m_oEdgeDynamicFilterRangeTrackBars ICollection
m_oVertexDynamicFilterRangeTrackBars ICollection

Public Methods

Method Description
AssertValid ( ) : void
Clear ( ) : void
CreateEmptyCollection ( ) : ICollection
DynamicFiltersLegendControl ( ) : System

Initializes a new instance of the class.

Update ( ICollection edgeDynamicFilterRangeTrackBars, ICollection vertexDynamicFilterRangeTrackBars ) : void

Protected Methods

Method 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 method

public AssertValid ( ) : void
return void

Clear() public method

public Clear ( ) : void
return void

CreateEmptyCollection() public method

public CreateEmptyCollection ( ) : ICollection
return ICollection

Draw() protected method

protected Draw ( DrawingObjects oDrawingObjects ) : Int32
oDrawingObjects DrawingObjects
return System.Int32

DrawAvailableRangeText() protected method

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
return void

DrawDynamicFilterRangeTrackBar() protected method

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
return void

DrawDynamicFilterRangeTrackBars() protected method

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

DrawSelectedRangeLine() protected method

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
return void

DrawSelectedRangeText() protected method

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
return void

DynamicFiltersLegendControl() public method

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

GetXWithinAvailableLine() protected method

protected GetXWithinAvailableLine ( Decimal decValue, IDynamicFilterRangeTrackBar oDynamicFilterRangeTrackBar, Int32 iAvailableLineLeft, Int32 iAvailableLineRight ) : Int32
decValue Decimal
oDynamicFilterRangeTrackBar IDynamicFilterRangeTrackBar
iAvailableLineLeft System.Int32
iAvailableLineRight System.Int32
return System.Int32

OnPaint() protected method

protected OnPaint ( PaintEventArgs e ) : void
e PaintEventArgs
return void

Update() public method

public Update ( ICollection edgeDynamicFilterRangeTrackBars, ICollection vertexDynamicFilterRangeTrackBars ) : void
edgeDynamicFilterRangeTrackBars ICollection
vertexDynamicFilterRangeTrackBars ICollection
return void

Property Details

m_oEdgeDynamicFilterRangeTrackBars protected_oe property

protected ICollection m_oEdgeDynamicFilterRangeTrackBars
return ICollection

m_oVertexDynamicFilterRangeTrackBars protected_oe property

protected ICollection m_oVertexDynamicFilterRangeTrackBars
return ICollection