예제 #1
0
        public override void Draw(CustomGraphics g)
        {
            base.Draw(g); /* BC required for highlighting */
            drawLead(mPoint1, mPoint2);
            g.FillPolygon(NeedsHighlight ? CustomGraphics.SelectColor : CustomGraphics.GrayColor, mArrowPoly);
            doDots();
            setBbox(mPoint1, mPoint2, 3);
            string s = "A";

            switch (mMeter)
            {
            case AM_VOL:
                s = Utils.UnitTextWithScale(mCurrent, "A", mScale);
                break;

            case AM_RMS:
                s = Utils.UnitTextWithScale(mRmsI, "A(rms)", mScale);
                break;
            }
            if (mNameV)
            {
                g.DrawRightVText(s, mTextPos.X, mTextPos.Y);
            }
            else
            {
                g.DrawRightText(s, mTextPos.X, mTextPos.Y);
            }
            drawPosts();
        }