Exemplo n.º 1
0
        /// <summary>
        /// Combines this instance with reference parameter.
        /// </summary>
        public void Combine(BorderModel reference)
        {
            if (Color.Equals(DefaultColor))
            {
                Color = reference.Color;
            }

            if (LineStyle.Equals(DefaultLineStyle))
            {
                LineStyle = reference.LineStyle;
            }

            if (Weight.Equals(DefaultWidthLineStyle))
            {
                Weight = reference.Weight;
            }
        }
 /// <summary>
 /// Gets the internal name of the LineStyle property of the shape.
 /// </summary>
 /// <returns></returns>
 virtual public string GetLineStyleName()
 {
     if (LineStyle.Equals(tud.mci.tangram.util.LineStyle.SOLID))
     {
         return("solid");
     }
     else if (LineStyle.Equals(tud.mci.tangram.util.LineStyle.DASH))
     {
         LineDash lineDash = GetProperty("LineDash") as LineDash;
         if (lineDash != null)
         {
             if (lineDash.Dots == 0)
             {
                 return("dashed_line");
             }
             else if (lineDash.Dots == 1)
             {
                 return("dotted_line");
             }
         }
     }
     return("");
 }
Exemplo n.º 3
0
        /// <summary>
        /// Returns true if ChartItemConfigBean instances are equal
        /// </summary>
        /// <param name="input">Instance of ChartItemConfigBean to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(ChartItemConfigBean input)
        {
            if (input == null)
            {
                return(false);
            }

            return
                ((
                     Item == input.Item ||
                     (Item != null &&
                      Item.Equals(input.Item))
                     ) &&
                 (
                     Axis == input.Axis ||
                     (Axis != null &&
                      Axis.Equals(input.Axis))
                 ) &&
                 (
                     Label == input.Label ||
                     (Label != null &&
                      Label.Equals(input.Label))
                 ) &&
                 (
                     Chart == input.Chart ||
                     (Chart != null &&
                      Chart.Equals(input.Chart))
                 ) &&
                 (
                     Legend == input.Legend ||
                     (Legend != null &&
                      Legend.Equals(input.Legend))
                 ) &&
                 (
                     Fill == input.Fill ||
                     (Fill != null &&
                      Fill.Equals(input.Fill))
                 ) &&
                 (
                     LineColor == input.LineColor ||
                     (LineColor != null &&
                      LineColor.Equals(input.LineColor))
                 ) &&
                 (
                     LineWidth == input.LineWidth ||
                     (LineWidth != null &&
                      LineWidth.Equals(input.LineWidth))
                 ) &&
                 (
                     LineStyle == input.LineStyle ||
                     (LineStyle != null &&
                      LineStyle.Equals(input.LineStyle))
                 ) &&
                 (
                     MarkerColor == input.MarkerColor ||
                     (MarkerColor != null &&
                      MarkerColor.Equals(input.MarkerColor))
                 ) &&
                 (
                     MarkerSymbol == input.MarkerSymbol ||
                     (MarkerSymbol != null &&
                      MarkerSymbol.Equals(input.MarkerSymbol))
                 ) &&
                 (
                     RepeatTime == input.RepeatTime ||
                     (RepeatTime != null &&
                      RepeatTime.Equals(input.RepeatTime))
                 ));
        }