From f9d02120176d7202a993c16eed549bd9cbc323b6 Mon Sep 17 00:00:00 2001 From: Mykola Fesenko Date: Mon, 29 Sep 2025 10:59:45 +0200 Subject: [PATCH] added circles --- Muehle.class | Bin 3211 -> 3773 bytes Muehle.java | 19 ++++++++++- Muehle.jfm | 2 +- Muehle.~ava | 93 +++++++++++++++++++++++++++++++++++++++++++++++++++ Muehle.~fm | 46 +++++++++++++++++++++++++ 5 files changed, 158 insertions(+), 2 deletions(-) create mode 100644 Muehle.~ava create mode 100644 Muehle.~fm diff --git a/Muehle.class b/Muehle.class index 2e4c975e94a4afed266f21429466eaee38a58a7b..f950644333dd98226c1f00a25f9f32f99e2e6090 100644 GIT binary patch delta 1563 zcmZXU`F9gl6vscWNhZlKWNUy-MJNjAqz5ok6>I@dfO1$`%6eKVRZgsF2m}IcS_Or0 z00qGf#sxQ2TyQ~U(XWjEp+AAq_yPO0cP8Alfe@_sR#@%w`LzLtWvlod7*A(wU*3Y&t&6u z$9A?G?BFS}>&|YHUAy8n^Xv`mG}y&6@|{T+6xI%RRbYe8vpnbJd4m^t@%Ul)cvWk3 zJE^Sf$mjB1ilH6Zu8v%KWxlgh@=!!>Et{pZ?IXPdc9UfD1E_Wo-D7RjE=~VNF(U3b zcRrp-_omks60>bNwWcMgaaLyt-x~DMAEI9rKj{3(PhNgD_=R)F4|pq;`!~fn>mT1J zeQZ-czouusmp`n(d~?)ZYn*?~_F2yWS~Tbc!`%~R=mQiBKKMw{28^+ zy68{LvaRlwQ-hXkRyNwtYhvf4nb&zkIEONiHwC$vOf_$DKq4saW|G6!s8Gn zOh`ba-VGu&1@ z!R`uLcSO{otACrGBXXW@>@(TIXps}8yY3=LLh3$AG?R%lMYQ)*OP!#4rpdE_=`7^| zR>)5$$4t4Zv)DufyO}Lqb2!diPDm%5Wj+_={#_K0%QQ=iEi5V@i&Tuos#<3lP9y9msP1GO?{bicec0DpVu(ueo`h7gK8^PURWMxL#|L~Utu|Us;1D0lM&jcA zv9zCuiE0#|@F^O#%H*&hA5)an|1*I)(^Qbp1sRgr6~5pI0olnVjtUA&{`)y5C?r`g zmaij(`BJK5-;#k~UrDf%XcAOhm6$;yJfFCmuXR$p^UW;>nlMR%Gre8;b%(M5Bf-}w{s EU;R)(rT_o{ delta 957 zcmYk4+f!Rr6vlr$IpL6#Lr6=wgiC3uodz+2jH1D!19XO=rcBySp@_6bK%`KE33uB@ zgkH4u(w=&2tM*PWUO=X)%INs)i_bndE)XYdN^p} z;gCWP@072))Al7yUZKyL)gH@@Ghp&6gVud*b7h<%lfw)vwDi!-fWjTFZkMbaF?pS& z74ua22MkiAb;eA_nOHvRsZpxbI^r(PSD5LsRC0LWP+xK+nX-P*nX_i}Kh#z0KyF3l zbpszaOg`gcfQ$J#EEwG8j?P_^dwjKgA-6zj-zv6Q&wDHU=|^J8F;tk_zV4!EU#UoBBW(0juiT{jQm2` z4~)9#n)j=PwLe4JqST>bck-N5Q$%L-xF}giB~KBS-XlCsJA?W8U?}@-+*~IrnYE8&G z`G5~)IQ8t|oFH9@W1JV{72-B5K|U#>fy@Oyk|}*GH1^Eb(|sc8J{8YaTx(K^Pq)tt z&WY;;-16!4$cC&^6)@}_TptRxa@&jJk#W4SB*5jUlH)k5{ shapes = new ArrayList(); @@ -61,7 +62,23 @@ public class Muehle extends Application { shapes.add(bg); + Rectangle circle1 = new Rectangle(topLeftX,topLeftY,topRightX,topRightY); + circle1.setStroke(stroke_color); + circle1.setStrokeWidth(10); + circle1.setFill(new Color(0.0,0.0,0.0,0.0)); + shapes.add(circle1); + Rectangle circle2 = new Rectangle(topLeftX + 100,topLeftY + 100,topRightX - 200,topRightY - 200); + circle2.setStroke(stroke_color); + circle2.setStrokeWidth(10); + circle2.setFill(new Color(0.0,0.0,0.0,0.0)); + shapes.add(circle2); + + Rectangle circle3 = new Rectangle(topLeftX + 200,topLeftY + 200,topRightX - 400,topRightY - 400); + circle3.setStroke(stroke_color); + circle3.setStrokeWidth(10); + circle3.setFill(new Color(0.0,0.0,0.0,0.0)); + shapes.add(circle3); for (int i = 0; i < shapes.size() ;i++ ) { board.getChildren().add(shapes.get(i)); diff --git a/Muehle.jfm b/Muehle.jfm index 92bd0a6..67ab3c9 100644 --- a/Muehle.jfm +++ b/Muehle.jfm @@ -1,4 +1,4 @@ -object FGUIForm_1: TFXGUIForm +object FGUIForm: TFXGUIForm Tag = 180 Left = 240 Top = 154 diff --git a/Muehle.~ava b/Muehle.~ava new file mode 100644 index 0000000..e4a5a14 --- /dev/null +++ b/Muehle.~ava @@ -0,0 +1,93 @@ +import javafx.application.Application; +import javafx.scene.Scene; +import javafx.scene.layout.Pane; +import javafx.stage.Stage; +import javafx.scene.shape.Rectangle; +import javafx.scene.paint.Color; +import javafx.stage.Window; +import javafx.scene.shape.Shape; +import java.util.ArrayList; +import javafx.scene.control.Label; + +/** + * + * Beschreibung + * + * @version 1.0 vom 25.09.2025 + * @author + */ + +public class Muehle extends Application { + // start attributes + // end attributes + private Label lTop = new Label(); + + public void start(Stage primaryStage) { + Pane root = new Pane(); + + Pane game_board = draw_game_board(); + root.getChildren().addAll(lTop,game_board); + Scene scene = new Scene(root, 1080, 820); + + setTopLabel("Test Label"); + + primaryStage.setOnCloseRequest(e -> System.exit(0)); + primaryStage.setTitle("Muehle"); + primaryStage.setScene(scene); + primaryStage.show(); + } // end of public Muehle + public void setTopLabel(String value) { + lTop.setText(value); + } + // start methods + public Pane draw_game_board() { + + Color bg_color = Color.rgb(255,255,0); + Color stroke_color = Color.RED; + Double circle_offset = 100.0; + + ArrayList shapes = new ArrayList(); + + + + + Pane board = new Pane(); + double topLeftX = (1080/2)-400; + double topLeftY = 720-(720/2)-300; + double topRightX =(1080/2)+200; + double topRightY = (720/2)+300; + + Rectangle bg = new Rectangle(topLeftX,topLeftY,topRightX,topRightY); + bg.setFill(bg_color); + shapes.add(bg); + + + Rectangle circle1 = new Rectangle(topLeftX,topLeftY,topRightX,topRightY); + circle1.setStroke(stroke_color); + circle1.setStrokeWidth(10); + circle1.setFill(new Color(0.0,0.0,0.0,0.0)); + shapes.add(circle1); + + Rectangle circle2 = new Rectangle(topLeftX + 100,topLeftY + 100,topRightX - 200,topRightY - 200); + circle2.setStroke(stroke_color); + circle2.setStrokeWidth(10); + circle2.setFill(new Color(0.0,0.0,0.0,0.0)); + shapes.add(circle2); + + Rectangle circle3 = new Rectangle(topLeftX + 200,topLeftY + 200,topRightX - 500,topRightY - 500); + circle3.setStroke(stroke_color); + circle3.setStrokeWidth(10); + circle3.setFill(new Color(0.0,0.0,0.0,0.0)); + shapes.add(circle3); + + for (int i = 0; i < shapes.size() ;i++ ) { + board.getChildren().add(shapes.get(i)); + } // end of for + + + return board; + + } + + // end methods +} // end of class Muehle diff --git a/Muehle.~fm b/Muehle.~fm new file mode 100644 index 0000000..92bd0a6 --- /dev/null +++ b/Muehle.~fm @@ -0,0 +1,46 @@ +object FGUIForm_1: TFXGUIForm + Tag = 180 + Left = 240 + Top = 154 + BorderIcons = [biSystemMenu] + Caption = 'Muehle' + ClientHeight = 227 + ClientWidth = 270 + Color = clBtnFace + Font.Charset = DEFAULT_CHARSET + Font.Color = clWindowText + Font.Height = -12 + Font.Name = 'Segoe UI' + Font.Style = [] + FormStyle = fsStayOnTop + Position = poDesigned + Visible = True + OnActivate = FormActivate + OnAfterMonitorDpiChanged = FormAfterMonitorDpiChanged + OnBeforeMonitorDpiChanged = FormBeforeMonitorDpiChanged + OnCanResize = FormCanResize + OnClose = FormClose + OnCloseQuery = FormCloseQuery + OnCreate = FormCreate + OnDeactivate = FormDeactivate + OnMouseActivate = FormMouseActivate + OnResize = FormResize + Resizable = True + Undecorated = False + Background = clBtnFace + Title = 'Muehle' + FontSize = 11 + X = 0 + Y = 0 + FullScreen = False + AlwaysOnTop = False + Iconified = False + MaxHeight = 0 + MaxWidth = 0 + MinHeight = 0 + MinWidth = 0 + showing = '' + TextHeight = 15 + object GNUgettextMarker: TGnuGettextComponentMarker + end +end