forked from YashasviChaurasia/The_Will_Hero
-
Notifications
You must be signed in to change notification settings - Fork 0
/
island.java
56 lines (48 loc) · 1.5 KB
/
island.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
import java.io.IOException;
import java.net.URL;
import java.util.ResourceBundle;
import javax.swing.plaf.basic.BasicInternalFrameUI.InternalFramePropertyChangeListener;
import javafx.animation.Animation;
import javafx.animation.AnimationTimer;
import javafx.animation.TranslateTransition;
import javafx.event.ActionEvent;
import javafx.fxml.FXML;
import javafx.fxml.FXMLLoader;
import javafx.fxml.Initializable;
import javafx.scene.Parent;
import javafx.scene.Scene;
import javafx.scene.control.Label;
import javafx.scene.image.Image;
import javafx.scene.image.ImageView;
//import javafx.scene.input.DragEvent;
import javafx.scene.input.MouseEvent;
import javafx.scene.layout.AnchorPane;
import javafx.scene.layout.Pane;
import javafx.scene.paint.Color;
import javafx.scene.paint.CycleMethod;
import javafx.scene.paint.LinearGradient;
import javafx.scene.paint.Stop;
import javafx.scene.shape.Rectangle;
import javafx.stage.Stage;
import javafx.util.Duration;
import javafx.scene.Node;
public class island {
private Image isl = new Image("The_Will_Hero-main/island_empty.png");
private ImageView isl1;
private AnchorPane pane1;
public island(Pane pane, int x, int y, int X, int Y) {
isl1 = new ImageView(isl);
isl1.setFitHeight(y);
isl1.setFitWidth(x);
isl1.setX(X);
isl1.setY(Y);
// pane1 =pane;
pane.getChildren().add(isl1);
}
public island() {
isl1 = new ImageView(isl);
}
public ImageView getIsl1() {
return isl1;
}
}