Closed

Its a Lab related to JAVA FX. Its a small project and need urgently

init method

animators = [login to view URL]( new TextAnimator());

board = new CanvasMap();

ToolBar statusBar = createStatusBar();

ToolBar optionsBar = createOptionsBar();

root = new BorderPane();

[login to view URL]( optionsBar);

[login to view URL]( [login to view URL]());

[login to view URL]( statusBar);

[login to view URL]().widthProperty().bind( [login to view URL]());

[login to view URL]().heightProperty().bind( [login to view URL]()

.subtract( [login to view URL]())

.subtract( [login to view URL]()));

[login to view URL]( a -> [login to view URL]( board));

Lambda

Lambda is just a shorthand of defining a functional interface (an interface with only one method). for the explanation below assume we have the data below:

//this is the function that we will be calling

public < E extends Event> void addEventHandler( EventType< E> event, EventHandler< E> handler);

//this is the interface that is being passed as an argument to the function above.

@FunctionalInterface

public interface EventHandler<T extends Event> extends EventListener {

void handle(T event);

}

a lambda can be used when we need to define an instance of an interface such as the interface above, EventHandler. traditionally we do this:

//anonymous instance

new EventHandler<MouseEvent>(){

public void handle( MouseEvent event) {

[login to view URL]( e);

}

}

//instance saved in event

EventHandler<MouseEvent> event = new EventHandler<>(){

public void handle( MouseEvent event) {

[login to view URL]( e);

}

};

however, we can do what we did above in a much cleaner way using lambda:

(MouseEvent e)->[login to view URL]( e)

or in more of a short hand

e->[login to view URL]( e)

EventHandler<MouseEvent> event = (MouseEvent e)->[login to view URL]( e);

or in more of a short hand

EventHandler<MouseEvent> event = e->[login to view URL]( e);

For example the four lines below mean the exact same thing:

addEventHandler( MouseEvent.MOUSE_MOVED, (MouseEvent e)->[login to view URL]( e));

addEventHandler( MouseEvent.MOUSE_MOVED, e->[login to view URL]( e));

addEventHandler( MouseEvent.MOUSE_MOVED, animator::mouseMoved);

addEventHandler( MouseEvent.MOUSE_MOVED, new EventHandler< MouseEvent>(){

public void handle(MouseEvent e) {

[login to view URL]( e);

};

});

the 3rd line is an example of a function reference :: (double colon). you will use this when you already have a function that matches the signature of the method with in the desired functional interface. in this case we can simply refer to the existing function.

if the method in your interface has more than one argument you can simply add more argument to the lambda. look at the example below:

@FunctionalInterface

public interface ChangeListener<T> {

void changed(ObservableValue<? extends T> observable, T oldValue, T newValue);

}

//lambda for this interface can be defined like this

( observable, oldValue, newValue)-> //code

//if your code has multiple lines, surround in {}

( observable, oldValue, newValue)-> {//code;//code;}

General Hints, based on your feedbacks

in abstract animator be careful not to call the same handle method inside of handle(long). you will get stuck in an infinite loop.

don't forget mouseDragged and mouseMoved are both setters for mouse variable of AbstractAnimator. the idea is after we get the mouse position we need to store them somewhere to use them later. these is no point in just calling [login to view URL]() or [login to view URL]().

when creating JavaFX nodes like MenuButton, you can pass all of the child nodes you want to be displayed in it at once when creating it. ex

MenuButton options = new MenuButton( "Options", null,

new CheckMenuItem( "Hello1"),

new CheckMenuItem( "Hello2"));

in our case CheckMenuItem is replaced with createCheckMenuItem method.

Skills: Javascript, Java, PHP, Software Architecture, Adobe Flash

See more: small project java rmi, java outsourcing small project, deliver small project assignments java coding, need java programmer finish project, earn money online small project java, small project samples java, java beginners small project, assignment small project software development java edu, project related java, project related java beginners j2ee, small project code java scripts html, java mysql small project, small project need done, hire a java coder small project

About the Employer:
( 0 reviews ) Ottawa, Canada

Project ID: #21750545

6 freelancers are bidding on average $95 for this job

utkarshkatiyar19

Hi, I'm an expert in java programming. I'm sure that I can easily do this project for you. We can have a chat about it. Thanks.

$70 CAD in 2 days
(337 Reviews)
7.3
WongGanteng

I'm very happy to bid on your project. I read your description carefully and am very interesting in your project. I can start right now and I can confirm high quality. If you hire me,I will do my best for your job and More

$200 CAD in 7 days
(6 Reviews)
4.3
universe11125

*#@ Clients don't expect perfection from the service providers they hire, but they do expect honesty and transparency. There is no better way to demonstrate this than by acknowledging when a mistake has been made and h More

$20 CAD in 7 days
(11 Reviews)
4.3
ninestar801

Hi, I have gone through your requirements and I can do this task. The skills and resources needed for this project are in my genes. I can assure you for a complete professional work in given time [login to view URL] share comp More

$200 CAD in 7 days
(19 Reviews)
4.2
Abdulsalam26227

hi, I have seen your project about the development of the JavaFX project. I understand your requirements. As you mentioned, it is a lab project, I will try to complete it as soon as possible with comments that will he More

$50 CAD in 7 days
(0 Reviews)
0.0
pshalini02

I have a good 2 years working experience in javafx and java. I can give you a quality work as i know javafx and java. Looking forward wot work with you Thank you.

$30 CAD in 14 days
(0 Reviews)
0.0