private void BuildLayout()
        {
            if (m_Words == null)
            {
                return;
            }

            using (Graphics graphics = this.CreateGraphics())
            {
                IGraphicEngine graphicEngine =
                    new GdiGraphicEngine(graphics, this.Font.FontFamily, FontStyle.Regular, m_Palette, MinFontSize, MaxFontSize, m_MinWordWeight, m_MaxWordWeight);
                m_Layout = LayoutFactory.CrateLayout(m_LayoutType, this.Size);
                m_Layout.Arrange(m_Words, graphicEngine);
            }
        }
Exemple #2
0
        public void BuildLayout()
        {
            m_Layout   = LayoutFactory.CrateLayout(m_LayoutType, this.Size);
            ItemsCount = 0;
            if (m_Words == null || m_Words.Count == 0)
            {
                return;
            }

            CaclulateMinMaxWordWeights();

            using (Graphics graphics = this.CreateGraphics())
            {
                IGraphicEngine graphicEngine =
                    new GdiGraphicEngine(graphics, this.Font.FontFamily, FontStyle.Regular, m_Palette, MinFontSize, MaxFontSize, m_MinWordWeight, m_MaxWordWeight);
                ItemsCount = m_Layout.Arrange(this.m_Words, graphicEngine);
            }
        }
 protected virtual ILayout CreateLayout(LayoutType layoutType, SizeF size)
 {
     return(LayoutFactory.CreateLayout(layoutType, size));
 }