Example #1
0
        /// <summary>
        /// Determines the type of the given axis.
        /// </summary>
        internal string CheckAxis(Axis axis)
        {
            if ((_xAxis != null) && (axis == _xAxis))
                return "xaxis";
            if ((_yAxis != null) && (axis == _yAxis))
                return "yaxis";
            if ((_zAxis != null) && (axis == _zAxis))
                return "zaxis";

            return "";
        }
Example #2
0
        protected void FlattenAxis(Axis axis)
        {
            if (axis == null)
                return;

            LineFormat refLineFormat = new LineFormat();
            refLineFormat._width = 0.15;
            if (axis._hasMajorGridlines.Value && axis._majorGridlines != null)
                FlattenLineFormat(axis._majorGridlines._lineFormat, refLineFormat);
            if (axis._hasMinorGridlines.Value && axis._minorGridlines != null)
                FlattenLineFormat(axis._minorGridlines._lineFormat, refLineFormat);

            refLineFormat._width = 0.4;
            if (axis._lineFormat != null)
                FlattenLineFormat(axis._lineFormat, refLineFormat);

            //      axis.majorTick;
            //      axis.majorTickMark;
            //      axis.minorTick;
            //      axis.minorTickMark;

            //      axis.maximumScale;
            //      axis.minimumScale;

            //      axis.tickLabels;
            //      axis.title;
        }
Example #3
0
        /// <summary>
        /// Parses the keywords «\xaxis», «\yaxis» or «\zaxis» inside a chart.
        /// </summary>
        private void ParseAxes(Axis axis, Symbol symbolAxis)
        {
            // Syntax:
            // 1.  \xaxis[...]
            // 2.  \xaxis[...]{...} //???
            //
            // Usage of yaxis and zaxis are similar.

            try
            {
                ReadCode();
                if (Symbol == Symbol.BracketLeft)
                {
                    ParseAttributes(axis, false);
                    ReadCode();
                }

                if (Symbol != Symbol.BraceLeft)
                    return;

                while (Symbol != Symbol.BraceRight)
                    ReadCode();

                AssertSymbol(Symbol.BraceRight, DomMsgID.MissingBraceRight, GetSymbolText(symbolAxis));
                ReadCode(); // read beyond '}'
            }
            catch (DdlParserException pe)
            {
                ReportParserException(pe);
                AdjustToNextBlock();
            }
        }
Example #4
0
        /// <summary>
        /// Determines the type of the given axis.
        /// </summary>
        internal string CheckAxis(Axis axis)
        {
            if ((this.xAxis != null) && (axis == this.xAxis))
            return "xaxis";
              if ((this.yAxis != null) && (axis == this.yAxis))
            return "yaxis";
              if ((this.zAxis != null) && (axis == this.zAxis))
            return "zaxis";

              return "";
        }