From 40dc71ab032c0c795f1a4190241d15c97923c765 Mon Sep 17 00:00:00 2001 From: MatthisFauvet Date: Sun, 23 Jun 2024 01:39:58 +0200 Subject: [PATCH] original commit --- .idea/.gitignore | 8 +++++ .idea/misc.xml | 6 ++++ .idea/modules.xml | 8 +++++ .idea/vcs.xml | 6 ++++ InfiniteGridMap.iml | 11 +++++++ out/production/untitled/CustomListener.class | Bin 0 -> 1562 bytes out/production/untitled/CustomPanel.class | Bin 0 -> 933 bytes out/production/untitled/Main.class | Bin 0 -> 638 bytes out/production/untitled/View.class | Bin 0 -> 712 bytes src/CustomController.java | 2 ++ src/CustomListener.java | 31 +++++++++++++++++++ src/CustomPanel.java | 25 +++++++++++++++ src/Main.java | 9 ++++++ src/View.java | 17 ++++++++++ untitled.iml | 11 +++++++ 15 files changed, 134 insertions(+) create mode 100644 .idea/.gitignore create mode 100644 .idea/misc.xml create mode 100644 .idea/modules.xml create mode 100644 .idea/vcs.xml create mode 100644 InfiniteGridMap.iml create mode 100644 out/production/untitled/CustomListener.class create mode 100644 out/production/untitled/CustomPanel.class create mode 100644 out/production/untitled/Main.class create mode 100644 out/production/untitled/View.class create mode 100644 src/CustomController.java create mode 100644 src/CustomListener.java create mode 100644 src/CustomPanel.java create mode 100644 src/Main.java create mode 100644 src/View.java create mode 100644 untitled.iml diff --git a/.idea/.gitignore b/.idea/.gitignore new file mode 100644 index 0000000..13566b8 --- /dev/null +++ b/.idea/.gitignore @@ -0,0 +1,8 @@ +# Default ignored files +/shelf/ +/workspace.xml +# Editor-based HTTP Client requests +/httpRequests/ +# Datasource local storage ignored files +/dataSources/ +/dataSources.local.xml diff --git a/.idea/misc.xml b/.idea/misc.xml new file mode 100644 index 0000000..6f29fee --- /dev/null +++ b/.idea/misc.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/.idea/modules.xml b/.idea/modules.xml new file mode 100644 index 0000000..756584f --- /dev/null +++ b/.idea/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml new file mode 100644 index 0000000..35eb1dd --- /dev/null +++ b/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/InfiniteGridMap.iml b/InfiniteGridMap.iml new file mode 100644 index 0000000..c90834f --- /dev/null +++ b/InfiniteGridMap.iml @@ -0,0 +1,11 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/out/production/untitled/CustomListener.class b/out/production/untitled/CustomListener.class new file mode 100644 index 0000000000000000000000000000000000000000..2eba875a4982236552219040efb1b7e1099b085b GIT binary patch literal 1562 zcmah}+foxj5Iw^s3ty(30g?@)<+tY%YMaFgVTz<6V z0eQaUj`WFfb|V>(YW2iuIs3$T8F2$+CdM(rFw{mBgHcu*ZAXE$LL_racEZG@(yVlS zj)EZ;rOuJ*M9jbpLnKr2rCZ8c)CNa*25vA+v@7r|gRnAgK`;ztEl0eol=g(T!}o03 ziDunAw{zUHR9xHak_Q&mIhbuGN;8-x)wqmp<%^=gkf;^WuCeK4j)4)ycu;8DoHN8N zPx!tEqR7OR6Zm?N+?JShG|mL(O6rR70qS71x!%^mutw z$OE_F4}|bIj3;<%Agw07#4w|Kr)Oz7M{ZH1f{_NpU*mb{dR2yRjT5US2B7QQDcHiF z$+~W_QckxHwqd8~;!d?J+NAF`eux!zFBbRUumG z*^|9VQHoYZYxmqwuuy`lBS!tKmlih#EYBVWFn#PMv6xZYiP`g^>mbR)=79h`V)& zR;|;`TCcX%8YQhmq&3z+G+8G)*Ltr`^iQqv28ecA@BbenaUnz}9_T(T;vubLG`>eP YsAX-RYx`2$3|8qpOlNCY#~Z}|0v(V|egFUf literal 0 HcmV?d00001 diff --git a/out/production/untitled/CustomPanel.class b/out/production/untitled/CustomPanel.class new file mode 100644 index 0000000000000000000000000000000000000000..8d6ff1d4281ed98be5c7db9c0ee2fa70c15c4ef0 GIT binary patch literal 933 zcmZuvT~iWa6np`Zu6;On@xe>UCXw-RRMoGQwd=NAr)Z_qtFCK3!S#-><&BwU909b1VmA~jcb^Y zKEZ}*)f-+2QN&clHJn01U|g2U8C@?|aGH)Q5P0^eSiUb1DgBL*;|NY`ID;vHv9{@L z7}b|`*Xh_bfq42~?@UGZG_Bz*QmoQ4EZZwMyDi5yZBJlwDBz)Mv>H~motH5)IIm(> z!v$Ovi2kN<;=?wou4#CtKq8&_Q}hJS%l76pT$a5BHcIP-$1-PHLq_r*A@6>l(wNmS zj|CcQuF)-7Hgl@!BA-k}Kq)vi8YZOuNoRM*bj!w0la^S?sT$3S;ac)MFe+ZdYI7{5 zp*`fefIWV%`PDh1|Bw~%)t4By?Qxb{Mr)8QyzO+{s`0#o9wC|S;oR2z0WS4$#lM=;-$Q+a#C*!1V$mM- zRAlM->f4`Rjq(y3EH()Ncn^-3IFxD8q%=xSkk3;#6xQZF^6;t0Jq@dGnLO$I21v^`^ AY5)KL literal 0 HcmV?d00001 diff --git a/out/production/untitled/Main.class b/out/production/untitled/Main.class new file mode 100644 index 0000000000000000000000000000000000000000..98a645e1fc29ddcd5294314f3d55c9569f1111de GIT binary patch literal 638 zcmZvZ+iuf95QhIv+&VTcEe%bf99vFt12y*nZjca_%s~n=0z*hyyK&~DrQl`Od=BBGDdt>+2x|)A%(%?X>~Lb3(tRIi0oJkM<3fZ@wEtrd zzRaAN5?Rivu$9)TwoG1Ewr~Si89nU_dn-Z*+X}7RxVQGmjq6(+hPaF!A6Ft=#WjWY z8RZK8CxJ~0xy)gl3GPOOn}Q37dv0t#c0TqPf1$0UJuQ!T_4U*i=H+}kG}RkjH?x_R zBR$DaH0Z}$r2V0 z%6T<1&#cTc5QPKj5xe{vd^pf5c`@2s^b)R$>&pHq)Ym$En^wZ$e}^_&Cg3ja(F@Q; z%o8d8NSHwPe!zcsiXiQI3xwZrzPG@|1uiXj*SY&g?ob?Pq6H6Y)Y;~Acj<{zXGz08 Sdh}Y@!F@cSmcjx329iIvTzJ3$ literal 0 HcmV?d00001 diff --git a/out/production/untitled/View.class b/out/production/untitled/View.class new file mode 100644 index 0000000000000000000000000000000000000000..534d03c170fde144255380fca2fc4f8126eb3398 GIT binary patch literal 712 zcmZuv+iuf95IviuF>#zLy_Z|dEpee~A3#V2UR+fwaskmQRUfy>0*mb3$lf%FCq98+ z;U$q8i4WkT5VJ`@d8jPyc+dEpnKPc>f3AK3c!fO|8Dt&gJS-s3Q2)X&`PWuDkm^(G z&0)f0!H|C`l{BvzvW;fj#SIi3xE_k|7;{Yx_S_3l^U*0YSr(1cz}lttJL~|_{jT_2_l_}cRi6zrbQ!ckWC7K?vk@gD3y5I zk1s@W$}b{9>UOYEn=SQFT!b~CgU08#Ba(D{gNKj=M6@wq<&^VtxNKSt@i=6tW^UW`x~qCUp*`3S4w z7;6+aj{WT+Zk_r0A+~-JGlR!;ZjnAfyGF4<&pKSfittg!E-HA2DjM{~y=gTxDPviS V*v1p;#fOKd*daBB7G*Nn{R;|OpHlz; literal 0 HcmV?d00001 diff --git a/src/CustomController.java b/src/CustomController.java new file mode 100644 index 0000000..c94bbf6 --- /dev/null +++ b/src/CustomController.java @@ -0,0 +1,2 @@ +public class CustomController { +} diff --git a/src/CustomListener.java b/src/CustomListener.java new file mode 100644 index 0000000..3345d9f --- /dev/null +++ b/src/CustomListener.java @@ -0,0 +1,31 @@ +import java.awt.event.MouseEvent; +import java.awt.event.MouseListener; + +public class CustomListener implements MouseListener { + @Override + public void mouseClicked(MouseEvent e) { + System.out.println("x deb"+e.getX()); + System.out.println("y deb"+e.getY()); + } + + @Override + public void mousePressed(MouseEvent e) { + + } + + @Override + public void mouseReleased(MouseEvent e) { + System.out.println("x fin"+e.getX()); + System.out.println("y fin"+e.getY()); + } + + @Override + public void mouseEntered(MouseEvent e) { + + } + + @Override + public void mouseExited(MouseEvent e) { + + } +} diff --git a/src/CustomPanel.java b/src/CustomPanel.java new file mode 100644 index 0000000..b51e035 --- /dev/null +++ b/src/CustomPanel.java @@ -0,0 +1,25 @@ +import javax.swing.*; +import java.awt.*; + +public class CustomPanel extends JPanel { + + private int width = 1920; + private int height = 1080; + public CustomPanel() { + setBackground(Color.WHITE); + } + + @Override + public void paintComponent(Graphics g) { + super.paintComponent(g); + Graphics g2 = g.create(); + g2.setColor(Color.BLACK); + + for(int x=0; x + + + + + + + + + + \ No newline at end of file