Stream(ArrayList data, LayoutRule layoutRule)
        {
            data.Add(new Snoop.Data.ClassSeparator(typeof(LayoutRule)));

            // no data at this level

            LayoutRuleClearSpacing lrClearSpacing = layoutRule as LayoutRuleClearSpacing;

            if (lrClearSpacing != null)
            {
                Stream(data, lrClearSpacing);
                return;
            }

            LayoutRuleFixedDistance lrFixedDist = layoutRule as LayoutRuleFixedDistance;

            if (lrFixedDist != null)
            {
                Stream(data, lrFixedDist);
                return;
            }

            LayoutRuleFixedNumber lrFixedNum = layoutRule as LayoutRuleFixedNumber;

            if (lrFixedNum != null)
            {
                Stream(data, lrFixedNum);
                return;
            }

            LayoutRuleMaximumSpacing lrMaxSpacing = layoutRule as LayoutRuleMaximumSpacing;

            if (lrMaxSpacing != null)
            {
                Stream(data, lrMaxSpacing);
                return;
            }
        }
        Stream(ArrayList data, LayoutRuleFixedNumber layoutRule)
        {
            data.Add(new Snoop.Data.ClassSeparator(typeof(LayoutRuleFixedNumber)));

            data.Add(new Snoop.Data.Int("Number of lines", layoutRule.NumberOfLines));
        }
Esempio n. 3
0
 /// <summary>
 /// constructor
 /// </summary>
 public FixedNumberParam()
     : base()
 {
     m_layout     = new LayoutRuleFixedNumber(m_numberOfLines);
     m_layoutType = LayoutMethod.FixedNumber;
 }
      Stream(ArrayList data, LayoutRuleFixedNumber layoutRule)
      {
         data.Add(new Snoop.Data.ClassSeparator(typeof(LayoutRuleFixedNumber)));

         data.Add(new Snoop.Data.Int("Number of lines", layoutRule.NumberOfLines));
      }
Esempio n. 5
0
 /// <summary>
 /// constructor
 /// </summary>
 public FixedNumberParam()
     : base()
 {
     m_layout     = new LayoutRuleFixedNumber(m_numberOfLines);
     m_layoutType = LayoutMethod.FixedNumber;
 }