C# 클래스 Smrf.NodeXL.Layouts.RectangleBinner

Splits a parent rectangle into "bin" rectangles.
A bin is a small square that fits into a parent rectangle. This class splits the parent into consecutive bins, running from left to right along the bottom of the parent and then moving up a row.

Pass the parent rectangle to the constructor, along with the length of the bin. Call TryGetNextBin to get the next bin, and call to get any space not occupied by the returned bins.

상속: Object
파일 보기 프로젝트 열기: 2014-sed-team3/term-project 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
m_bBinReturned System.Boolean
m_iBinLength System.Int32
m_oLastBin System.Drawing.Rectangle
m_oParent System.Drawing.Rectangle

공개 메소드들

메소드 설명
RectangleBinner ( Rectangle parent, Int32 binLength ) : System

Initializes a new instance of the RectangleBinner class.

TryGetNextBin ( Rectangle &nextBin ) : System.Boolean
TryGetRemainingRectangle ( Rectangle &remainingRectangle ) : System.Boolean

비공개 메소드들

메소드 설명
AssertValid ( ) : void

메소드 상세

RectangleBinner() 공개 메소드

Initializes a new instance of the RectangleBinner class.
public RectangleBinner ( Rectangle parent, Int32 binLength ) : System
parent System.Drawing.Rectangle /// The parent rectangle to split into bins. ///
binLength System.Int32 /// Length and width of each bin square. Must be greater than zero. ///
리턴 System

TryGetNextBin() 공개 메소드

public TryGetNextBin ( Rectangle &nextBin ) : System.Boolean
nextBin System.Drawing.Rectangle
리턴 System.Boolean

TryGetRemainingRectangle() 공개 메소드

public TryGetRemainingRectangle ( Rectangle &remainingRectangle ) : System.Boolean
remainingRectangle System.Drawing.Rectangle
리턴 System.Boolean

프로퍼티 상세

m_bBinReturned 보호되어 있는 프로퍼티

protected Boolean,System m_bBinReturned
리턴 System.Boolean

m_iBinLength 보호되어 있는 프로퍼티

protected Int32,System m_iBinLength
리턴 System.Int32

m_oLastBin 보호되어 있는 프로퍼티

protected Rectangle,System.Drawing m_oLastBin
리턴 System.Drawing.Rectangle

m_oParent 보호되어 있는 프로퍼티

protected Rectangle,System.Drawing m_oParent
리턴 System.Drawing.Rectangle