Exemplo n.º 1
0
        public override void setSize(int w, int h)
        {
            base.setSize(w, h);
            if (mCurrentChart != null)
            {
                mCurrentChart.setPosition(0, 0);
                mCurrentChart.setSize(w, h);
                mCurrentChart.invalidate();
                int x, y;
                if (mSettingButton != null)
                {
                    mSettingButton.setPosition(0, (getH() - mSettingButton.getH()) - 1);
                }

                x = mSettingButton.getRight();
                y = mSettingButton.getY();

                if (mDrawGridButton != null)
                {
                    mDrawGridButton.setPosition(x, y);
                    x = mDrawGridButton.getRight();
                }
                if (mSecondChartButton != null)
                {
                    mSecondChartButton.setPosition(x, y);
                    x = mSecondChartButton.getRight();
                }
                if (mHelpButton != null)
                {
                    mHelpButton.setPosition(0, y - mHelpButton.getH());
                }
                //if (mRemoveButton != null)
                //{
                //mAddButton.setPosition(mSwitchButton.getRight(), mSwitchButton.getY());
                //mRemoveButton.setPosition(0, (getH() - mRemoveButton.getH()) - 1);
                //}
            }
        }