コード例 #1
0
        /// <summary>
        /// The Copy Constructor
        /// </summary>
        /// <param name="rhs">The XAxis object from which to copy</param>
        public Legend(Legend rhs)
        {
            rect       = rhs.Rect;
            location   = rhs.Location;
            isFramed   = rhs.isFramed;
            isFilled   = rhs.isFilled;
            isHStack   = rhs.IsHStack;
            isVisible  = rhs.IsVisible;
            fillColor  = rhs.FillColor;
            frameColor = rhs.FrameColor;
            frameWidth = rhs.FrameWidth;

            fontSpec = new FontSpecs(rhs.FontSpec);
        }
コード例 #2
0
        /// <summary>
        /// The Copy Constructor
        /// </summary>
        /// <param name="rhs">The TextItem object from which to copy</param>
        public TextItem(TextItem rhs)
        {
            text    = rhs.Text;
            alignV  = rhs.AlignV;
            alignH  = rhs.AlignH;
            x       = rhs.X;
            y       = rhs.Y;
            widthx  = rhs.widthx;
            heighty = rhs.heighty;

            blnForCurveLabel    = rhs.blnForCurveLabel;
            blnForHighPeakLabel = rhs.blnForHighPeakLabel;
            coordinateFrame     = rhs.CoordinateFrame;
            fontSpec            = new FontSpecs(rhs.FontSpec);
        }
コード例 #3
0
        public AldysPane(RectangleF paneRect, string paneTitle,
                         string xTitle, string yTitle, AldysGraph objAld)
        {
            statusflag = true;
            bPeakEdit  = false;
            cursor     = Cursors.NoMove2D;
            this.peakX = new ArrayList();
            this.peakY = new ArrayList();

            //Added By Mangesh S. on 25-Nov-2006
            peakInfoX = new ArrayList();
            peakInfoY = new ArrayList();
            //Added By Mangesh S. on 25-Nov-2006

            this.paneRect    = paneRect;
            this.axisRect    = axisRect;
            xAxis            = new XAxis();
            yAxis            = new YAxis();
            legend           = new Legend();
            curveList        = new CurveList();
            textList         = new TextList();
            arrowList        = new ArrowList();
            xAxis.Title      = xTitle;
            yAxis.Title      = xTitle;
            this.title       = paneTitle;
            this.isShowTitle = Defaults.Pane.ShowTitle;
            this.fontSpec    = new FontSpecs(Defaults.Pane.FontFamily,
                                             Defaults.Pane.FontSize, Defaults.Pane.FontColor, Defaults.Pane.FontBold,
                                             Defaults.Pane.FontItalic, Defaults.Pane.FontUnderline);
            this.fontSpec.IsFilled = false;
            this.fontSpec.IsFramed = false;

            this.isIgnoreInitial = Defaults.Axis.IgnoreInitial;

            this.isPaneFramed      = Defaults.Pane.IsFramed;
            this.paneFrameColor    = Defaults.Pane.FrameColor;
            this.paneFramePenWidth = Defaults.Pane.FramePenWidth;
            this.paneBackColor     = Defaults.Pane.BackColor;

            this.isAxisFramed      = Defaults.Axis.IsFramed;
            this.axisFrameColor    = Defaults.Axis.FrameColor;
            this.axisFramePenWidth = Defaults.Axis.FramePenWidth;
            this.axisBackColor     = Defaults.Axis.BackColor;

            this.baseDimension    = Defaults.Pane.BaseDimension;
            this.paneGap          = Defaults.Pane.Gap;
            this.objAldysGraphTmp = objAld;
        }
コード例 #4
0
        /// <summary>
        /// Default constructor that sets all <see cref="Legend"/> properties to default
        /// values as defined in the <see cref="Def"/> class.
        /// </summary>
        public Legend()
        {
            this.location   = Defaults.Legend.Location;
            this.isFramed   = Defaults.Legend.IsFramed;
            this.frameColor = Defaults.Legend.FrameColor;
            this.frameWidth = Defaults.Legend.FrameWidth;
            this.isFilled   = Defaults.Legend.IsFilled;
            this.fillColor  = Defaults.Legend.FillColor;
            this.isHStack   = Defaults.Legend.HStack;
            this.isVisible  = Defaults.Legend.IsVisible;

            this.fontSpec = new FontSpecs(Defaults.Legend.FontFamily, Defaults.Legend.FontSize,
                                          Defaults.Legend.FontColor, Defaults.Legend.FontBold,
                                          Defaults.Legend.FontItalic, Defaults.Legend.FontUnderline);
            this.fontSpec.IsFilled = false;
            this.fontSpec.IsFramed = false;
        }
コード例 #5
0
        /// <summary>
        /// The Copy Constructor
        /// </summary>
        /// <param name="rhs">The FontSpec object from which to copy</param>
        public FontSpecs(FontSpecs rhs)
        {
            fontColor   = rhs.FontColor;
            family      = rhs.Family;
            isBold      = rhs.IsBold;
            isItalic    = rhs.IsItalic;
            isUnderline = rhs.IsUnderline;
            isFilled    = rhs.IsFilled;
            fillColor   = rhs.FillColor;
            isFramed    = rhs.IsFramed;
            frameColor  = rhs.FrameColor;
            frameWidth  = rhs.FrameWidth;

            angle = rhs.Angle;
            size  = rhs.Size;

            scaledSize = rhs.scaledSize;
            Remake(1.0F);
        }
コード例 #6
0
//		public AldysPane()
//		{
//			//
//			// TODO: Add constructor logic here
//			//
//		}
        /// <summary>
        /// The Copy Constructor
        /// </summary>
        /// <param name="rhs">The GraphPane object from which to copy</param>
        public AldysPane(AldysPane rhs)
        {
            statusflag = rhs.statusflag;
            bPeakEdit  = rhs.bPeakEdit;
            cursor     = Cursors.NoMove2D;
            this.peakX = rhs.peakX;
            this.peakY = rhs.peakY;

            //Added By Mangesh S. on 25-Nov-2006
            this.peakInfoX = rhs.peakInfoX;
            this.peakInfoY = rhs.peakInfoY;
            //Added By Mangesh S. on 25-Nov-2006

            paneRect  = rhs.PaneRect;
            axisRect  = rhs.AxisRect;
            xAxis     = new XAxis(rhs.XAxis);
            yAxis     = new YAxis(rhs.YAxis);
            legend    = new Legend(rhs.Legend);
            curveList = new CurveList(rhs.CurveList);
            textList  = new TextList(rhs.TextList);
            arrowList = new ArrowList(rhs.ArrowList);

            this.title       = rhs.Title;
            this.isShowTitle = rhs.IsShowTitle;
            this.fontSpec    = new FontSpecs(rhs.fontSpec);

            this.isIgnoreInitial = rhs.IsIgnoreInitial;

            this.isPaneFramed      = rhs.IsPaneFramed;
            this.paneFrameColor    = rhs.PaneFrameColor;
            this.paneFramePenWidth = rhs.PaneFramePenWidth;
            this.paneBackColor     = rhs.PaneBackColor;

            this.isAxisFramed      = rhs.IsAxisFramed;
            this.axisFrameColor    = rhs.AxisFrameColor;
            this.axisFramePenWidth = rhs.AxisFramePenWidth;
            this.axisBackColor     = rhs.AxisBackColor;

            this.baseDimension    = rhs.BaseDimension;
            this.paneGap          = rhs.PaneGap;
            this.objAldysGraphTmp = rhs.objAldysGraphTmp;
            this.ShowCurveLabels  = rhs.ShowCurveLabels;
        }
コード例 #7
0
        /// <summary>
        /// Initialization method that sets all <see cref="TextItem"/> properties to default
        /// values as defined in the <see cref="Def"/> class.
        /// </summary>
        protected void Init()
        {
            text    = "Text";
            alignV  = Defaults.Text.AlignV;
            alignH  = Defaults.Text.AlignH;
            x       = 0;
            y       = 0;
            widthx  = 0;
            heighty = 0;

            coordinateFrame = Defaults.Text.CoordFrame;

            this.fontSpec = new FontSpecs(
                Defaults.Text.FontFamily, Defaults.Text.FontSize,
                Defaults.Text.FontColor, Defaults.Text.FontBold,
                Defaults.Text.FontItalic, Defaults.Text.FontUnderline);

            //widthx  = (this.fontSpec.GetWidth( * (float) text.Length );
            //heighty  = (this.fontSpec.GetHeight);	//* (flot) text.Length ;
            blnForCurveLabel    = false;
            blnForHighPeakLabel = false;
        }