Exemplo n.º 1
0
 public Layer_M2MLevel(ILevel M2MLevel)
 {
     this.level = M2MLevel;
     layer_Grid = new Layer_Grid(level);
     UpdateLayerGridTransform();
     maxRect = GetMaxRect();
 }
Exemplo n.º 2
0
        public override void Draw(Graphics graphics)
        {
            if (Visible)
            {
                Color tempColor = GridColor;

                for (int i = m2mStructure.GetLevelNum() - 1; i > 0; i--)
                {
                    layer_Grid = new Layer_Grid(m2mStructure.GetLevel(i));

                    layer_Grid.ScreenScaleX       = this.ScreenScaleX;
                    layer_Grid.ScreenScaleY       = this.ScreenScaleY;
                    layer_Grid.ScreenTranslationX = this.ScreenTranslationX;
                    layer_Grid.ScreenTranslationY = this.ScreenTranslationY;

                    layer_Grid.Visible            = true;
                    tempColor                     = GenerateColor.GetSimilarColor(tempColor);
                    layer_Grid.GridLine.LineColor = Color.FromArgb(alpha, tempColor);
                    layer_Grid.GridLine.LineWidth = (float)((m2mStructure.GetLevelNum() - i));
                    layer_Grid.Draw(graphics);
                }
            }
        }
Exemplo n.º 3
0
 private RectangleF GetMaxRect()
 {
     layer_Grid = new Layer_Grid(m2mStructure.GetLevel(0));
     return(layer_Grid.MaxRect);
 }