using System.Collections; using System.Drawing; namespace DevComponents.Charts.TextMarkup { /// /// Represents block layout manager responsible for sizing the content blocks. /// public abstract class BlockLayoutManager { private Graphics _Graphics; /// /// Resizes the content block and sets it's Bounds property to reflect new size. /// /// Content block to resize. /// Content size available for the block in the given line. public abstract void Layout(IBlock block, Size availableSize); /// /// Performs layout finalization /// /// /// /// /// public abstract Rectangle FinalizeLayout(Rectangle containerBounds, Rectangle blocksBounds, ArrayList lines); /// /// Gets or sets the graphics object used by layout manager. /// public Graphics Graphics { get {return _Graphics;} set {_Graphics = value;} } } }