예제 #1
0
파일: AxisStyle.cs 프로젝트: olesar/Altaxo
 public void PaintTitle(Graphics g, IPaintContext paintContext, IPlotArea layer)
 {
     if (IsTitleEnabled)
     {
         _axisTitle.Paint(g, paintContext);
     }
 }
예제 #2
0
파일: AxisStyle.cs 프로젝트: olesar/Altaxo
 public void PaintTitle(IGraphicsContext3D g, Altaxo.Graph.IPaintContext paintContext, IPlotArea layer)
 {
     if (IsTitleEnabled)
     {
         _axisTitle.Paint(g, paintContext);
     }
 }
예제 #3
0
        public void EhView_PreviewPanelPaint(System.Drawing.Graphics g)
        {
            g.PageUnit = System.Drawing.GraphicsUnit.Point;

            // set position and rotation to zero
            //    m_TextObject.Position=new PointF(0,0);
            //    m_TextObject.Rotation = 0;
            _doc.Paint(g, m_Layer, true);

            // restore the original position and rotation values
            //      m_TextObject.Position = new PointF(m_PositionX,m_PositionY);
            //      m_TextObject.Rotation = _rotation;
        }
예제 #4
0
        public void Paint(Graphics g, XYPlotLayer layer)
        {
            // update the logical values of the physical axes before
            if (_styleID.UsePhysicalValueOtherFirst)
            {
                // then update the logical value of this identifier
                double logicalValue = layer.Scales(_styleID.AxisNumberOtherFirst).PhysicalVariantToNormal(_styleID.PhysicalValueOtherFirst);
                _styleID.LogicalValueOtherFirst = logicalValue;
            }
            if (_styleID.UsePhysicalValueOtherSecond)
            {
                // then update the logical value of this identifier
                double logicalValue = layer.Scales(_styleID.AxisNumberOtherSecond).PhysicalVariantToNormal(_styleID.PhysicalValueOtherSecond);
                _styleID.LogicalValueOtherSecond = logicalValue;
            }

            int axisnumber = _styleID.ParallelAxisNumber;
            CSAxisInformation styleinfo = layer.CoordinateSystem.GetAxisStyleInformation(_styleID);

            _cachedAxisInfo = styleinfo;

            if (ShowAxisLine)
            {
                _axisLineStyle.Paint(g, layer, styleinfo);
            }
            if (ShowMajorLabels)
            {
                this._majorLabelStyle.Paint(g, layer, styleinfo, _axisLineStyle, false);
            }
            if (ShowMinorLabels)
            {
                this._minorLabelStyle.Paint(g, layer, styleinfo, _axisLineStyle, true);
            }
            if (ShowTitle)
            {
                _axisTitle.Paint(g, layer);
            }
        }