Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge contributions from @Otthon #281

Open
wants to merge 202 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
202 commits
Select commit Hold shift + click to select a range
29a004e
Collections are now parametric
Nov 20, 2023
4451abc
List<PCamera paramerreization
Nov 20, 2023
2b4c748
Parametrrization
Nov 20, 2023
085e720
Deprecated Event Constants are updated
Nov 20, 2023
c7dd2ba
Parametrization
Nov 20, 2023
088e6ce
Parametrization
Nov 20, 2023
31a7550
Eclipse warning message supressed
Nov 20, 2023
09107ba
Eclipse warning message supressed
Nov 20, 2023
7705895
Eclipse warning message supressed
Nov 20, 2023
8a64ed4
Event handler constant updated
Nov 20, 2023
293ee86
Parametrization
Nov 20, 2023
3670334
Parametrization
Nov 20, 2023
2fcc74b
ZMarkObjectOutputStream was not closed before
Nov 20, 2023
ab76569
Parametrization
Nov 20, 2023
6b3728c
Parametrization
Nov 20, 2023
db475fa
Parametrization
Nov 20, 2023
3b0aa77
Parameterization
Nov 20, 2023
572cfea
Parameterization
Nov 20, 2023
7e40600
Parameterization
Nov 20, 2023
af749f7
Deprecated event Constant updated
Nov 20, 2023
254d1fd
Deprecated event constant updated
Nov 20, 2023
a29f495
Parameterization
Nov 20, 2023
4c785d4
Parameterization
Nov 20, 2023
fa7b6c3
Parameterization
Nov 20, 2023
49286a4
Parameterzation
Nov 20, 2023
1212971
Unnecessary Import
Nov 20, 2023
610cbc9
Parameterization
Nov 20, 2023
20fc61e
Deprecated event constant updated
Nov 20, 2023
d4f68d0
Parameterization
Nov 20, 2023
c38324e
Parameterization
Nov 20, 2023
32ee1aa
Parameterization
Nov 20, 2023
e264de8
Parameterization
Nov 20, 2023
3fb58a6
Deprecated event constant updated
Nov 20, 2023
6e7c47c
Parameterization
Nov 20, 2023
eb27c3d
Deprecated event constant updated
Nov 20, 2023
5982568
Serialization warning fixed
Nov 20, 2023
00794bf
Serialization warning fixed
Nov 20, 2023
5a75314
Serialization warning fixed
Nov 20, 2023
d950f7a
Serialization warning fixed
Nov 20, 2023
163a0ef
Unnecessary imports have been removed
Nov 20, 2023
52fb147
Unnecessary import is removed
Nov 20, 2023
717175f
Deprecated method is updated
Nov 20, 2023
b00339d
Deprecated method is updated
Nov 20, 2023
8bd74d5
Deprecated method is updated
Nov 20, 2023
42f6f4d
Parameterization
Nov 20, 2023
a2ec33e
Parameterization
Nov 20, 2023
c9af135
Eclipse serialization warning fixed
Nov 20, 2023
6905257
Parameterization
Nov 20, 2023
ddd9bfd
Unnecessary import removed
Nov 20, 2023
472d567
Deprecated event constant updated
Nov 20, 2023
daede36
Parameterization
Nov 20, 2023
9b200e9
serialization warning fixed
Nov 20, 2023
a5077f8
Parameterization
Nov 20, 2023
b25c6c7
Parameterization
Nov 20, 2023
9d9aa47
Parameterization
Nov 20, 2023
28bb703
Reverted to original
Nov 20, 2023
f42190e
Nothing
Nov 20, 2023
6877aff
Nothing
Nov 22, 2023
c113195
Parameterization, Warning messages fixed
Nov 22, 2023
d89b402
Parameterization, Warning messages fixed
Nov 22, 2023
87a69f0
Parameterization, Warning messages fixed
Nov 22, 2023
67c2f40
Parameterization, Warning messages fixed
Nov 22, 2023
27ba2b4
Parameterization, Warning messages fixed
Nov 22, 2023
aafa02f
Parameterization, Warning messages fixed
Nov 22, 2023
4cf2d5f
Parameterization, Warning messages fixed
Nov 22, 2023
843e76a
Parameterization, Warning messages fixed
Nov 22, 2023
14b661d
Parameterization, Warning messages fixed
Nov 22, 2023
bbb0270
Parameterization, Warning messages fixed
Nov 22, 2023
ffaa7d8
Parameterization, Warning messages fixed
Nov 22, 2023
9be5e54
Parameterization, Warning messages fixed
Nov 22, 2023
42573cb
Unnecessary imports removed
Nov 22, 2023
9c45844
Unnecessary imports removed
Nov 22, 2023
ef54611
Unnecessary imports removed
Nov 22, 2023
70d12aa
Removing ser warning messages
Nov 22, 2023
c74d2e2
Fixing serialization warnings
Nov 22, 2023
0fe9db2
Unnecessary imports
Nov 22, 2023
84dcd18
KeyEvent.CHAR_UNDEFINED was added as a parameter to the constructor
Nov 22, 2023
af55528
Unnecessary import
Nov 22, 2023
f783e6e
Parameterization
Nov 22, 2023
8050031
Parameterization
Nov 22, 2023
088a93a
Nothing
Nov 22, 2023
9b85379
Serialization warning fixed
Nov 22, 2023
1d2898e
Unnecessary import
Nov 22, 2023
ab6a0e9
Unnecesary import
Nov 22, 2023
f89df1a
Unnecessary import
Nov 22, 2023
d1d284c
Unnecessary import
Nov 22, 2023
9063a82
Unnecessary import
Nov 22, 2023
d6e9091
Unnecessary import
Nov 22, 2023
30f0aa7
Unnecessary import
Nov 22, 2023
9413200
Deprecated event constants are updated
Nov 22, 2023
f7ea5a2
Unnecessary import
Nov 22, 2023
227093d
Unnecessary import
Nov 22, 2023
ae888ad
InputSrtream was not closed before
Nov 22, 2023
a57c0cb
Parameterization
Nov 22, 2023
5a7f141
Parameterization
Nov 22, 2023
f2268e7
Parameterization
Nov 22, 2023
49a9d46
Unnecessary import
Nov 22, 2023
d2982ec
Unnecessary import removed
Nov 22, 2023
38bfd56
Unnecessary import removed
Nov 22, 2023
7f554e6
Unnecessary import removed
Nov 22, 2023
31bb2ca
Unnecessary import removed
Nov 22, 2023
151ffc9
Unnecessary import removed
Nov 22, 2023
a057b90
Unnecessary import removed
Nov 22, 2023
f8ce849
Unnecessary import
Nov 22, 2023
efeecc3
Unnecessary import
Nov 22, 2023
9f9ef59
Unnecessary import
Nov 22, 2023
435fe93
Unnecessary import
Nov 22, 2023
e7020ae
Unnecessary import
Nov 22, 2023
e39987c
Unnecessary import
Nov 22, 2023
6bda39d
Unnecessary import
Nov 22, 2023
7cd6a43
Unnecessary import
Nov 22, 2023
af577d0
Unnecessary import
Nov 22, 2023
01db813
Unnecessary import
Nov 22, 2023
efb4193
Unnecessary import
Nov 22, 2023
457d151
Unnecessary import
Nov 22, 2023
d97c2b3
Unnecessary import
Nov 22, 2023
69dd182
Unnecessary import
Nov 22, 2023
de84d5a
Unnecessary import
Nov 22, 2023
2613702
Unnecessary import
Nov 22, 2023
0dca7d7
waring fixed
Nov 22, 2023
6377dbc
warning fixed
Nov 22, 2023
535bbda
event constant updated
Nov 22, 2023
a275e4c
event constants are updated
Nov 22, 2023
34417c8
event constants are updated
Nov 22, 2023
1619f24
unnecessary import
Nov 22, 2023
3a8877e
serilaization warning message fixed
Nov 22, 2023
b469504
Parameterzation
Nov 22, 2023
1e011ab
Parametrization
Nov 22, 2023
5f206e5
warning message fixed
Nov 22, 2023
5504d28
Parameterzation
Nov 22, 2023
e6d9b3c
warning message fixed
Nov 22, 2023
c2f28f9
Event constant updated
Nov 22, 2023
c4ea3f2
Parameterization
Nov 22, 2023
a041470
Warning messages fixed
Nov 22, 2023
ee95393
PArametrization
Nov 22, 2023
a4d83b9
Parameterzation
Nov 22, 2023
b972c92
Parametrization
Nov 22, 2023
e427e9b
Parametrization
Nov 22, 2023
51f1399
Parametrization
Nov 22, 2023
aea68cd
Nothing
Nov 22, 2023
1261929
Parametrization
Nov 22, 2023
2b3f1e8
Packages 'core' and 'extras' are merged.
Nov 22, 2023
45bff49
Packages 'core' and 'extras' are merged.
Nov 22, 2023
3768cb7
Packages 'core' and 'extras' are merged.
Nov 22, 2023
fbff3cf
Packages 'core' and 'extras' are merged.
Nov 22, 2023
6fd2b4d
Packages 'core' and 'extras' are merged.
Nov 22, 2023
0bc9970
Packages 'core' and 'extras' are merged.
Nov 22, 2023
ef536e8
Packages 'core' and 'extras' are merged.
Nov 22, 2023
1d46d18
Packages 'core' and 'extras' are merged.
Nov 22, 2023
f1d3cc0
Packages 'core' and 'extras' are merged.
Nov 22, 2023
a200731
Packages 'core' and 'extras' are merged.
Nov 22, 2023
1e50aae
Packages 'core' and 'extras' are merged.
Nov 22, 2023
10a2ecd
Packages 'core' and 'extras' are merged.
Nov 22, 2023
d65811f
Packages 'core' and 'extras' are merged.
Nov 22, 2023
b6c0894
Packages 'core' and 'extras' are merged.
Nov 22, 2023
3c3d32c
Packages 'core' and 'extras' are merged.
Nov 22, 2023
ebd48cf
Packages 'core' and 'extras' are merged.
Nov 22, 2023
f6f22b3
Packages 'core' and 'extras' are merged.
Nov 22, 2023
b70b537
Packages 'core' and 'extras' are merged.
Nov 22, 2023
e2df552
Packages 'core' and 'extras' are merged.
Nov 22, 2023
1d78ec7
Packages 'core' and 'extras' are merged.
Nov 22, 2023
b9e2dc3
Packages 'core' and 'extras' are merged.
Nov 22, 2023
b6ac178
Packages 'core' and 'extras' are merged.
Nov 22, 2023
148309d
Packages 'core' and 'extras' are merged.
Nov 22, 2023
315a373
Packages 'core' and 'extras' are merged.
Nov 22, 2023
da7bc05
Packages 'core' and 'extras' are merged.
Nov 22, 2023
d3b4774
Packages 'core' and 'extras' are merged.
Nov 22, 2023
41fe96d
Packages 'core' and 'extras' are merged.
Nov 22, 2023
2be2803
Packages 'core' and 'extras' are merged.
Nov 22, 2023
8b5e258
Packages 'core' and 'extras' are merged.
Nov 22, 2023
78d1ff4
Packages 'core' and 'extras' are merged.
Nov 22, 2023
e0de63b
Packages 'core' and 'extras' are merged.
Nov 22, 2023
740adf0
Packages 'core' and 'extras' are merged.
Nov 22, 2023
97171b6
Packages 'core' and 'extras' are merged.
Nov 22, 2023
8d7a610
Packages 'core' and 'extras' are merged.
Nov 22, 2023
662691d
Packages 'core' and 'extras' are merged.
Nov 22, 2023
0e5e5a5
Packages 'core' and 'extras' are merged.
Nov 22, 2023
85359fa
Packages 'core' and 'extras' are merged.
Nov 22, 2023
359eb3d
Packages 'core' and 'extras' are merged.
Nov 22, 2023
6635afe
Packages 'core' and 'extras' are merged.
Nov 22, 2023
0ab7ba2
Packages 'core' and 'extras' are merged.
Nov 22, 2023
20fb19b
Packages 'core' and 'extras' are merged.
Nov 22, 2023
99c713a
Packages 'core' and 'extras' are merged.
Nov 22, 2023
eca8a09
Packages 'core' and 'extras' are merged.
Nov 22, 2023
067268c
Packages 'core' and 'extras' are merged.
Nov 22, 2023
a3f4da5
Packages 'core' and 'extras' are merged.
Nov 22, 2023
9c925f7
Packages 'core' and 'extras' are merged.
Nov 22, 2023
aafcb33
Packages 'core' and 'extras' are merged.
Nov 22, 2023
1e658d7
Packages 'core' and 'extras' are merged.
Nov 22, 2023
f19805c
Packages 'core' and 'extras' are merged.
Nov 22, 2023
d2aaf0f
Packages 'core' and 'extras' are merged.
Nov 22, 2023
50bed91
Packages 'core' and 'extras' are merged.
Nov 22, 2023
24b28c5
Source code reformatted
Nov 22, 2023
3288f51
warnings removed
Nov 22, 2023
72511b6
Deprecate method has been removed
Nov 22, 2023
89da160
Packages 'core' and 'extras' are merged.
Nov 22, 2023
aa46619
Packages 'core' and 'extras' are merged.
Nov 22, 2023
6011b28
Packages 'core' and 'extras' are merged.
Nov 22, 2023
76a8f5e
Packages 'core' and 'extras' are merged.
Nov 22, 2023
e55c292
Packages 'core' and 'extras' are merged.
Nov 22, 2023
cc314cc
Packages 'core' and 'extras' are merged.
Nov 22, 2023
0bcaa29
Packages 'core' and 'extras' are merged.
Nov 22, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,4 @@ target/

# strange - where comes this from?
core/C:\\test.jpg
/bin/
108 changes: 108 additions & 0 deletions core/src/main/java/org/piccolo2d/PApplet.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,108 @@
/*
* Copyright (c) 2008-2019, Piccolo2D project, http://piccolo2d.org
* Copyright (c) 1998-2008, University of Maryland
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification, are permitted provided
* that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice, this list of conditions
* and the following disclaimer.
*
* Redistributions in binary form must reproduce the above copyright notice, this list of conditions
* and the following disclaimer in the documentation and/or other materials provided with the
* distribution.
*
* None of the name of the University of Maryland, the name of the Piccolo2D project, or the names of its
* contributors may be used to endorse or promote products derived from this software without specific
* prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED
* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
* PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
* ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR
* TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
* ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.piccolo2d;

import javax.swing.JApplet;
import javax.swing.SwingUtilities;

/**
* <b>PApplet</b> is meant to be subclassed by applications that just need a
* PCanvas embedded in a web page.
*
* @version 1.0
* @author Jesse Grosjean
*/
public class PApplet extends JApplet {
/** Used to allow versioned binary streams for serializations. */
private static final long serialVersionUID = 1L;

/** Canvas being displayed by this applet. */
private PCanvas canvas;

/**
* Initializes the applet with a canvas and no background.
*/
public void init() {
setBackground(null);

canvas = createCanvas();
getContentPane().add(canvas);
validate();
canvas.requestFocus();
beforeInitialize();

// Manipulation of Piccolo's scene graph should be done from Swings
// event dispatch thread since Piccolo is not thread safe. This code
// calls initialize() from that thread once the PFrame is initialized,
// so you are safe to start working with Piccolo in the initialize()
// method.
SwingUtilities.invokeLater(new Runnable() {
public void run() {
PApplet.this.initialize();
repaint();
}
});
}

/**
* Returns the canvas this PApplet is displaying.
*
* @return canvas this applet is displaying
*/
public PCanvas getCanvas() {
return canvas;
}

/**
* Provides an extension point for subclasses so that they can control what's on
* the canvas by default.
*
* @return a built canvas
*/
public PCanvas createCanvas() {
return new PCanvas();
}

/**
* This method will be called before the initialize() method and will be called
* on the thread that is constructing this object.
*/
public void beforeInitialize() {
}

/**
* Subclasses should override this method and add their Piccolo2d initialization
* code there. This method will be called on the swing event dispatch thread.
* Note that the constructors of PFrame subclasses may not be complete when this
* method is called. If you need to initailize some things in your class before
* this method is called place that code in beforeInitialize();
*/
public void initialize() {
}
}
Loading