/*
 * CarContextFine.fx
 *
 * Created on Nov 30, 2009, 1:18:48 PM
 */

package mdot_gui;

import javafx.geometry.Rectangle2D;
import javafx.scene.CustomNode;
import javafx.scene.Group;
import javafx.scene.Node;
import javafx.scene.image.ImageView;
import javafx.scene.shape.Rectangle;

import javafx.scene.layout.HBox;
import javafx.scene.layout.VBox;
import javafx.scene.paint.Color;


/**
 * @author Jamie Lynn
 */

public class CarContextFine extends CustomNode{


public override function create(): Node {
   
    visible = false;
    id = "CarContextFine";
   
    Group{

    content:[

            VBox{
                    spacing:27
                layoutX:Constants.WINDOW_WIDTH/2 - ((3*Constants.BLINKING_RECT_COURSE_WIDTH)/2);
            content:[

            HBox{
               spacing: 27

                content:[
                            rectLocation24,
                            rectPlaceHolder1,
                            rectPlaceHolder2,
                            rectLocation17,
                            rectPlaceHolder3,
                            rectPlaceHolder4,
                            rectLocation18
                        ]
            },
           HBox{
                 spacing: 27
                content:[
                            rectPlaceHolder5,
                            rectLocation16,
                            rectPlaceHolder6,
                            rectLocation9,
                            rectPlaceHolder7,
                            rectLocation10,
                            rectPlaceHolder8

                        ]
            },

            HBox{
                 spacing: 27
                content:[
                            rectPlaceHolder9,
                            rectPlaceHolder10,
                            rectLocation8,
                            rectLocation1,
                            rectLocation2,
                            rectPlaceHolder11,
                            rectPlaceHolder12

                        ]
            },



            HBox{
                 spacing: 27
                content:[
                            rectLocation23,
                            rectLocation15,
                            rectLocation7,
                            rectPlaceHolderCar,
                            rectLocation3,
                            rectLocation11,
                            rectLocation19

                        ]
            },

             HBox{
                spacing: 27
                content:[
                            rectPlaceHolder13,
                            rectPlaceHolder14,
                            rectLocation6,
                            rectLocation5,
                            rectLocation4,
                            rectPlaceHolder15,
                            rectPlaceHolder16
                        ]
            },

             HBox{
                spacing: 27
                content:[
                            rectPlaceHolder17,
                            rectLocation14,
                            rectPlaceHolder18,
                            rectLocation13,
                            rectPlaceHolder19,
                            rectLocation12,
                            rectPlaceHolder20

                        ]
            },

             HBox{
                spacing: 27
                content:[
                            rectLocation22,
                            rectPlaceHolder21,
                            rectPlaceHolder22,
                            rectLocation21,
                            rectPlaceHolder23,
                            rectPlaceHolder24,
                            rectLocation20

                        ]
            }
            ]}//Close mainHBox

            carImage
            ]
        }
}

def rectPlaceHolder1 = Rectangle{
                    width: Constants.BLINKING_RECT_FINE_WIDTH;
                    height: Constants.BLINKING_RECT_FINE_HEIGHT;
                    fill: Color.BLACK}
def rectPlaceHolder2 = Rectangle{
                   width: Constants.BLINKING_RECT_FINE_WIDTH;
                    height: Constants.BLINKING_RECT_FINE_HEIGHT;
                    fill: Color.BLACK}
def rectPlaceHolder3 = Rectangle{
                    width: Constants.BLINKING_RECT_FINE_WIDTH;
                    height: Constants.BLINKING_RECT_FINE_HEIGHT;
                    fill: Color.BLACK}
def rectPlaceHolder4 = Rectangle{
                    width: Constants.BLINKING_RECT_FINE_WIDTH;
                    height: Constants.BLINKING_RECT_FINE_HEIGHT;
                    fill: Color.BLACK}
def rectPlaceHolder5 = Rectangle{
                    width: Constants.BLINKING_RECT_FINE_WIDTH;
                    height: Constants.BLINKING_RECT_FINE_HEIGHT;
                    fill: Color.BLACK}
def rectPlaceHolder6 = Rectangle{
                    width: Constants.BLINKING_RECT_FINE_WIDTH;
                    height: Constants.BLINKING_RECT_FINE_HEIGHT;
                    fill: Color.BLACK}
def rectPlaceHolder7 = Rectangle{
                    width: Constants.BLINKING_RECT_FINE_WIDTH;
                    height: Constants.BLINKING_RECT_FINE_HEIGHT;
                    fill: Color.BLACK}
def rectPlaceHolder8 = Rectangle{
                    width: Constants.BLINKING_RECT_FINE_WIDTH;
                    height: Constants.BLINKING_RECT_FINE_HEIGHT;
                    fill: Color.BLACK}
def rectPlaceHolder9 = Rectangle{
                    width: Constants.BLINKING_RECT_FINE_WIDTH;
                    height: Constants.BLINKING_RECT_FINE_HEIGHT;
                    fill: Color.BLACK}
def rectPlaceHolder10 = Rectangle{
                    width: Constants.BLINKING_RECT_FINE_WIDTH;
                    height: Constants.BLINKING_RECT_FINE_HEIGHT;
                    fill: Color.BLACK}
def rectPlaceHolder11 = Rectangle{
                    width: Constants.BLINKING_RECT_FINE_WIDTH;
                    height: Constants.BLINKING_RECT_FINE_HEIGHT;
                    fill: Color.BLACK}
def rectPlaceHolder12 = Rectangle{
                    width: Constants.BLINKING_RECT_FINE_WIDTH;
                    height: Constants.BLINKING_RECT_FINE_HEIGHT;
                    fill: Color.BLACK}
def rectPlaceHolder13 = Rectangle{
                    width: Constants.BLINKING_RECT_FINE_WIDTH;
                    height: Constants.BLINKING_RECT_FINE_HEIGHT;
                    fill: Color.BLACK}
def rectPlaceHolder14 = Rectangle{
                    width: Constants.BLINKING_RECT_FINE_WIDTH;
                    height: Constants.BLINKING_RECT_FINE_HEIGHT;
                    fill: Color.BLACK}
def rectPlaceHolder15 = Rectangle{
                    width: Constants.BLINKING_RECT_FINE_WIDTH;
                    height: Constants.BLINKING_RECT_FINE_HEIGHT;
                    fill: Color.BLACK}
def rectPlaceHolder16 = Rectangle{
                    width: Constants.BLINKING_RECT_FINE_WIDTH;
                    height: Constants.BLINKING_RECT_FINE_HEIGHT;
                    fill: Color.BLACK}
def rectPlaceHolder17 = Rectangle{
                    width: Constants.BLINKING_RECT_FINE_WIDTH;
                    height: Constants.BLINKING_RECT_FINE_HEIGHT;
                    fill: Color.BLACK}
def rectPlaceHolder18 = Rectangle{
                    width: Constants.BLINKING_RECT_FINE_WIDTH;
                    height: Constants.BLINKING_RECT_FINE_HEIGHT;
                    fill: Color.BLACK}
def rectPlaceHolder19 = Rectangle{
                    width: Constants.BLINKING_RECT_FINE_WIDTH;
                    height: Constants.BLINKING_RECT_FINE_HEIGHT;
                    fill: Color.BLACK}
def rectPlaceHolder20 = Rectangle{
                    width: Constants.BLINKING_RECT_FINE_WIDTH;
                    height: Constants.BLINKING_RECT_FINE_HEIGHT;
                    fill: Color.BLACK}
def rectPlaceHolder21 = Rectangle{
                    width: Constants.BLINKING_RECT_FINE_WIDTH;
                    height: Constants.BLINKING_RECT_FINE_HEIGHT;
                    fill: Color.BLACK}
def rectPlaceHolder22 = Rectangle{
                    width: Constants.BLINKING_RECT_FINE_WIDTH;
                    height: Constants.BLINKING_RECT_FINE_HEIGHT;
                    fill: Color.BLACK}
def rectPlaceHolder23 = Rectangle{
                    width: Constants.BLINKING_RECT_FINE_WIDTH;
                    height: Constants.BLINKING_RECT_FINE_HEIGHT;
                    fill: Color.BLACK}
def rectPlaceHolder24 = Rectangle{
                    width: Constants.BLINKING_RECT_FINE_WIDTH;
                    height: Constants.BLINKING_RECT_FINE_HEIGHT;
                    fill: Color.BLACK}
def rectPlaceHolderCar = Rectangle{
                    width: Constants.BLINKING_RECT_FINE_WIDTH;
                    height: Constants.BLINKING_RECT_FINE_HEIGHT;
                    fill: Color.BLACK}

def rectLocation1 = Rectangle{
                    width: Constants.BLINKING_RECT_FINE_WIDTH;
                    height: Constants.BLINKING_RECT_FINE_HEIGHT;
                    fill:  bind MainScreen.fineRect1.color}

def rectLocation2 = Rectangle{
                    width: Constants.BLINKING_RECT_FINE_WIDTH;
                    height: Constants.BLINKING_RECT_FINE_HEIGHT;
                    fill:  bind MainScreen.fineRect2.color}

def rectLocation3 = Rectangle{
                    width: Constants.BLINKING_RECT_FINE_WIDTH;
                    height: Constants.BLINKING_RECT_FINE_HEIGHT;
                    fill:  bind MainScreen.fineRect3.color}

def rectLocation4 = Rectangle{
                    width: Constants.BLINKING_RECT_FINE_WIDTH;
                    height: Constants.BLINKING_RECT_FINE_HEIGHT;
                    fill:  bind MainScreen.fineRect4.color}

def rectLocation5 = Rectangle{
                    width: Constants.BLINKING_RECT_FINE_WIDTH;
                    height: Constants.BLINKING_RECT_FINE_HEIGHT;
                    fill: bind MainScreen.fineRect5.color}

def rectLocation6 = Rectangle{
                    width: Constants.BLINKING_RECT_FINE_WIDTH;
                    height: Constants.BLINKING_RECT_FINE_HEIGHT;
                    fill: bind MainScreen.fineRect6.color}

def rectLocation7 = Rectangle{
                    width: Constants.BLINKING_RECT_FINE_WIDTH;
                    height: Constants.BLINKING_RECT_FINE_HEIGHT;
                    fill: bind MainScreen.fineRect7.color}

def rectLocation8 = Rectangle{
                    width: Constants.BLINKING_RECT_FINE_WIDTH;
                    height: Constants.BLINKING_RECT_FINE_HEIGHT;
                    fill: bind MainScreen.fineRect8.color}

def rectLocation9 = Rectangle{
                    width: Constants.BLINKING_RECT_FINE_WIDTH;
                    height: Constants.BLINKING_RECT_FINE_HEIGHT;
                    fill: bind MainScreen.fineRect9.color}

def rectLocation10 = Rectangle{
                    width: Constants.BLINKING_RECT_FINE_WIDTH;
                    height: Constants.BLINKING_RECT_FINE_HEIGHT;
                    fill: bind MainScreen.fineRect10.color}

def rectLocation11 = Rectangle{
                   width: Constants.BLINKING_RECT_FINE_WIDTH;
                    height: Constants.BLINKING_RECT_FINE_HEIGHT;
                    fill: bind MainScreen.fineRect11.color}

def rectLocation12 = Rectangle{
                    width: Constants.BLINKING_RECT_FINE_WIDTH;
                    height: Constants.BLINKING_RECT_FINE_HEIGHT;
                    fill: bind MainScreen.fineRect12.color}

def rectLocation13 = Rectangle{
                   width: Constants.BLINKING_RECT_FINE_WIDTH;
                    height: Constants.BLINKING_RECT_FINE_HEIGHT;
                    fill: bind MainScreen.fineRect13.color}

def rectLocation14 = Rectangle{
                    width: Constants.BLINKING_RECT_FINE_WIDTH;
                    height: Constants.BLINKING_RECT_FINE_HEIGHT;
                    fill: bind MainScreen.fineRect14.color}

def rectLocation15 = Rectangle{
                    width: Constants.BLINKING_RECT_FINE_WIDTH;
                    height: Constants.BLINKING_RECT_FINE_HEIGHT;
                    fill: bind MainScreen.fineRect15.color}

def rectLocation16 = Rectangle{
                    width: Constants.BLINKING_RECT_FINE_WIDTH;
                    height: Constants.BLINKING_RECT_FINE_HEIGHT;
                    fill: bind MainScreen.fineRect16.color}

def rectLocation17 = Rectangle{
                    width: Constants.BLINKING_RECT_FINE_WIDTH;
                    height: Constants.BLINKING_RECT_FINE_HEIGHT;
                    fill: bind MainScreen.fineRect17.color}

def rectLocation18 = Rectangle{
                    width: Constants.BLINKING_RECT_FINE_WIDTH;
                    height: Constants.BLINKING_RECT_FINE_HEIGHT;
                    fill: bind MainScreen.fineRect18.color}

def rectLocation19 = Rectangle{
                    width: Constants.BLINKING_RECT_FINE_WIDTH;
                    height: Constants.BLINKING_RECT_FINE_HEIGHT;
                    fill: bind MainScreen.fineRect19.color}

def rectLocation20 = Rectangle{
                   width: Constants.BLINKING_RECT_FINE_WIDTH;
                    height: Constants.BLINKING_RECT_FINE_HEIGHT;
                    fill: bind MainScreen.fineRect20.color}

def rectLocation21 = Rectangle{
                    width: Constants.BLINKING_RECT_FINE_WIDTH;
                    height: Constants.BLINKING_RECT_FINE_HEIGHT;
                    fill: bind MainScreen.fineRect21.color}

def rectLocation22 = Rectangle{
                    width: Constants.BLINKING_RECT_FINE_WIDTH;
                    height: Constants.BLINKING_RECT_FINE_HEIGHT;
                    fill: bind MainScreen.fineRect22.color}

def rectLocation23 = Rectangle{
                    width: Constants.BLINKING_RECT_FINE_WIDTH;
                    height: Constants.BLINKING_RECT_FINE_HEIGHT;
                    fill: bind MainScreen.fineRect23.color}

def rectLocation24 = Rectangle{
                    width: Constants.BLINKING_RECT_FINE_WIDTH;
                    height: Constants.BLINKING_RECT_FINE_HEIGHT;
                    fill: bind MainScreen.fineRect24.color}


var carImage:ImageView =    ImageView{

                            image: CommonFunctionsFX.getImage("car_lg")
                            translateX: Constants.WINDOW_WIDTH/2 - (50); //carheight/2
                            translateY: Constants.APPLICATION_HEIGHT/2 - (50);
                    }
                    
}
