Ejemplo n.º 1
0
 void CalculateAndSetRects(IRectCalculationData data)
 {
     data.CalculateRects();
     SetUpGroupLength(data.groupLength);
     SetUpElementLength(data.elementLength);
     SetUpPadding(data.padding);
 }
Ejemplo n.º 2
0
        /* Setting up rects */

        /*  * Note *
         *      Three variable that affects the rects
         *              ElementGroupRectLength
         *              GroupElementLength
         *              PaddingLength
         *      two of these three must be somehow constrained to solve for each values
         *              Fixed GroupLength
         *              Fixed ElementLength
         *              Fixed PaddingLength
         *              Ratio of
         *                      GroupToElement
         *                      GropuToPadding
         *                      ElementToPadding
         *
         *              Fixed is either of
         *                      constant value
         *                      proportional to reference
         */
        public void SetUpRects(IRectCalculationData rectCalculationData)
        {
            thisRectCalculationData = rectCalculationData;
            thisRectCalculationData.SetColumnAndRowCount(
                thisNumOfColumns,
                thisNumOfRows
                );
            CalculateAndSetRects(rectCalculationData);
            SetRectsDependentCalculators();
        }
Ejemplo n.º 3
0
 void CalculateAndSetRects(IRectCalculationData data)
 {
     data.CalculateRects();
     thisUIAdaptor.SetRectSize(data.groupSize);
     foreach (IUIElement ele in thisGroupElements)
     {
         ele.SetRectSize(data.elementSize);
     }
     thisPadding = data.padding;
 }
Ejemplo n.º 4
0
        public void SetUpElements()
        {
            IUIElement[]         groupElements       = GetGroupElements();
            IRectCalculationData rectCalculationData = CreateRectCalculationData(groupElements);

            IUIElementGroup uieGroup = thisUIElementGroup;

            uieGroup.SetUpElements(groupElements);
            uieGroup.SetUpRects(rectCalculationData);
            uieGroup.PlaceElements();
        }
Ejemplo n.º 5
0
        protected override void SetUpUIElementReferenceImple()
        {
            base.SetUpUIElementReferenceImple();
            List <IUIElement>    groupElements       = GetGroupElements();
            IRectCalculationData rectCalculationData = CreateRectCalculationData(groupElements);

            IUIElementGroup uieGroup = (IUIElementGroup)this.GetUIElement();

            uieGroup.SetUpElements(groupElements);
            uieGroup.SetUpRects(rectCalculationData);
            uieGroup.PlaceElements();
        }