Browse Source

Commit #1 ;---]

master
Bandie Yip Kojote 5 years ago
parent
commit
73281c7926
  1. 53
      build.xml
  2. 4
      build/built-jar.properties
  3. BIN
      build/classes/org/bandie/circleart/About.class
  4. BIN
      build/classes/org/bandie/circleart/BandieCanis.gif
  5. BIN
      build/classes/org/bandie/circleart/CircleArt.class
  6. BIN
      build/classes/org/bandie/circleart/CircleArt.png
  7. BIN
      build/classes/org/bandie/circleart/CircleArt.xcf
  8. BIN
      build/classes/org/bandie/circleart/CircleArtGUI.class
  9. BIN
      build/classes/org/bandie/circleart/CircleArt_640.png
  10. BIN
      build/classes/org/bandie/circleart/FileUtil.class
  11. BIN
      build/classes/org/bandie/circleart/ObjectMath.class
  12. BIN
      build/classes/org/bandie/circleart/Pen$RGB.class
  13. BIN
      build/classes/org/bandie/circleart/Pen.class
  14. BIN
      build/classes/org/bandie/circleart/SettingsGUI.class
  15. BIN
      build/classes/org/bandie/circleart/Splash.class
  16. 47
      build/classes/org/bandie/circleart/msgs.properties
  17. 47
      build/classes/org/bandie/circleart/msgs_de_AT.properties
  18. 47
      build/classes/org/bandie/circleart/msgs_de_BE.properties
  19. 47
      build/classes/org/bandie/circleart/msgs_de_CA.properties
  20. 47
      build/classes/org/bandie/circleart/msgs_de_CH.properties
  21. 47
      build/classes/org/bandie/circleart/msgs_de_DE.properties
  22. 47
      build/classes/org/bandie/circleart/msgs_en_CA.properties
  23. 47
      build/classes/org/bandie/circleart/msgs_en_UK.properties
  24. 47
      build/classes/org/bandie/circleart/msgs_en_US.properties
  25. 47
      build/classes/org/bandie/circleart/msgs_fr_BE.properties
  26. 47
      build/classes/org/bandie/circleart/msgs_fr_CA.properties
  27. 47
      build/classes/org/bandie/circleart/msgs_fr_FR.properties
  28. 47
      build/classes/org/bandie/circleart/msgs_nl_BE.properties
  29. 47
      build/classes/org/bandie/circleart/msgs_nl_NL.properties
  30. 45
      dist/CircleArt.html
  31. BIN
      dist/CircleArt.jar
  32. 18
      dist/CircleArt.jnlp
  33. 3954
      dist/web-files/dtjava.js
  34. BIN
      dist/web-files/error.png
  35. BIN
      dist/web-files/get_java.png
  36. BIN
      dist/web-files/get_javafx.png
  37. BIN
      dist/web-files/javafx-chrome.png
  38. BIN
      dist/web-files/javafx-loading-100x100.gif
  39. BIN
      dist/web-files/javafx-loading-25x25.gif
  40. BIN
      dist/web-files/upgrade_java.png
  41. BIN
      dist/web-files/upgrade_javafx.png
  42. 3
      manifest.mf
  43. 1421
      nbproject/build-impl.xml
  44. 2
      nbproject/configs/Run_as_WebStart.properties
  45. 2
      nbproject/configs/Run_in_Browser.properties
  46. 8
      nbproject/genfiles.properties
  47. 4049
      nbproject/jfx-impl.xml
  48. 2
      nbproject/private/configs/Run_as_WebStart.properties
  49. 2
      nbproject/private/configs/Run_in_Browser.properties
  50. 12
      nbproject/private/private.properties
  51. 13
      nbproject/private/private.xml
  52. 126
      nbproject/project.properties
  53. 25
      nbproject/project.xml
  54. 112
      src/org/bandie/circleart/About.java
  55. BIN
      src/org/bandie/circleart/BandieCanis.gif
  56. 65
      src/org/bandie/circleart/CircleArt.java
  57. BIN
      src/org/bandie/circleart/CircleArt.png
  58. BIN
      src/org/bandie/circleart/CircleArt.xcf
  59. 209
      src/org/bandie/circleart/CircleArtGUI.java
  60. BIN
      src/org/bandie/circleart/CircleArt_640.png
  61. 106
      src/org/bandie/circleart/FileUtil.java
  62. 52
      src/org/bandie/circleart/ObjectMath.java
  63. 147
      src/org/bandie/circleart/Pen.java
  64. 239
      src/org/bandie/circleart/SettingsGUI.java
  65. 66
      src/org/bandie/circleart/Splash.java
  66. 47
      src/org/bandie/circleart/msgs.properties
  67. 1
      src/org/bandie/circleart/msgs_de_AT.properties
  68. 1
      src/org/bandie/circleart/msgs_de_BE.properties
  69. 1
      src/org/bandie/circleart/msgs_de_CA.properties
  70. 1
      src/org/bandie/circleart/msgs_de_CH.properties
  71. 47
      src/org/bandie/circleart/msgs_de_DE.properties
  72. 1
      src/org/bandie/circleart/msgs_en_CA.properties
  73. 1
      src/org/bandie/circleart/msgs_en_UK.properties
  74. 1
      src/org/bandie/circleart/msgs_en_US.properties
  75. 1
      src/org/bandie/circleart/msgs_fr_BE.properties
  76. 1
      src/org/bandie/circleart/msgs_fr_CA.properties
  77. 47
      src/org/bandie/circleart/msgs_fr_FR.properties
  78. 1
      src/org/bandie/circleart/msgs_nl_BE.properties
  79. 47
      src/org/bandie/circleart/msgs_nl_NL.properties

53
build.xml

@ -0,0 +1,53 @@
<?xml version="1.0" encoding="UTF-8"?><!-- You may freely edit this file. See commented blocks below for --><!-- some examples of how to customize the build. --><!-- (If you delete it and reopen the project it will be recreated.) --><!-- By default, only the Clean and Build commands use this build script. --><project name="CircleArt" default="default" basedir="." xmlns:fx="javafx:com.sun.javafx.tools.ant">
<description>Builds, tests, and runs the project CircleArt.</description>
<import file="nbproject/build-impl.xml"/>
<!--
There exist several targets which are by default empty and which can be
used for execution of your tasks. These targets are usually executed
before and after some main targets. Those of them relevant for JavaFX project are:
-pre-init: called before initialization of project properties
-post-init: called after initialization of project properties
-pre-compile: called before javac compilation
-post-compile: called after javac compilation
-pre-compile-test: called before javac compilation of JUnit tests
-post-compile-test: called after javac compilation of JUnit tests
-pre-jfx-jar: called before FX SDK specific <fx:jar> task
-post-jfx-jar: called after FX SDK specific <fx:jar> task
-pre-jfx-deploy: called before FX SDK specific <fx:deploy> task
-post-jfx-deploy: called after FX SDK specific <fx:deploy> task
-pre-jfx-native: called just after -pre-jfx-deploy if <fx:deploy> runs in native packaging mode
-post-jfx-native: called just after -post-jfx-deploy if <fx:deploy> runs in native packaging mode
-post-clean: called after cleaning build products
(Targets beginning with '-' are not intended to be called on their own.)
Example of inserting a HTML postprocessor after javaFX SDK deployment:
<target name="-post-jfx-deploy">
<basename property="jfx.deployment.base" file="${jfx.deployment.jar}" suffix=".jar"/>
<property name="jfx.deployment.html" location="${jfx.deployment.dir}${file.separator}${jfx.deployment.base}.html"/>
<custompostprocess>
<fileset dir="${jfx.deployment.html}"/>
</custompostprocess>
</target>
Example of calling an Ant task from JavaFX SDK. Note that access to JavaFX SDK Ant tasks must be
initialized; to ensure this is done add the dependence on -check-jfx-sdk-version target:
<target name="-post-jfx-jar" depends="-check-jfx-sdk-version">
<echo message="Calling jar task from JavaFX SDK"/>
<fx:jar ...>
...
</fx:jar>
</target>
For more details about JavaFX SDK Ant tasks go to
http://docs.oracle.com/javafx/2/deployment/jfxpub-deployment.htm
For list of available properties check the files
nbproject/build-impl.xml and nbproject/jfx-impl.xml.
-->
</project>

4
build/built-jar.properties

@ -0,0 +1,4 @@
#Thu, 10 Aug 2017 14:14:04 +0200
/home/bandie/NetBeansProjects/CircleArt=

BIN
build/classes/org/bandie/circleart/About.class

BIN
build/classes/org/bandie/circleart/BandieCanis.gif

After

Width: 248  |  Height: 248  |  Size: 319 KiB

BIN
build/classes/org/bandie/circleart/CircleArt.class

BIN
build/classes/org/bandie/circleart/CircleArt.png

After

Width: 1434  |  Height: 1075  |  Size: 304 KiB

BIN
build/classes/org/bandie/circleart/CircleArt.xcf

BIN
build/classes/org/bandie/circleart/CircleArtGUI.class

BIN
build/classes/org/bandie/circleart/CircleArt_640.png

After

Width: 640  |  Height: 480  |  Size: 185 KiB

BIN
build/classes/org/bandie/circleart/FileUtil.class

BIN
build/classes/org/bandie/circleart/ObjectMath.class

BIN
build/classes/org/bandie/circleart/Pen$RGB.class

BIN
build/classes/org/bandie/circleart/Pen.class

BIN
build/classes/org/bandie/circleart/SettingsGUI.class

BIN
build/classes/org/bandie/circleart/Splash.class

47
build/classes/org/bandie/circleart/msgs.properties

@ -0,0 +1,47 @@
# Copyright (c) 2017, bandie
# 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.
#
# 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 HOLDER 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.
FILE=File
QUIT=Quit
SAVE=Save
NEW=New
SAVE_IMG=Save Image
VIEW=View
FULLSCREEN=Fullscreen
TOOLS=Tools
SETTINGS=Settings
SETTINGS_TITLE=CircleArt \- Settings
SETTINGS_CIRC_SIZE=Max. circle size
SETTINGS_DIST=Distance
SETTINGS_DIR=Direction
SETTINGS_Y=Use y instead of x
SETTINGS_COLOR=Color settings
RED=Red
GREEN=Green
BLUE=Blue
HELP=Help
ABOUT=About
DRAWING_OFF=Status: Off
DRAWING_ON=Status: On
HELP_DRAWING=To switch on/off your pen, press D.

47
build/classes/org/bandie/circleart/msgs_de_AT.properties

@ -0,0 +1,47 @@
# Copyright (c) 2017, bandie
# 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.
#
# 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 HOLDER 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.
FILE=Datei
QUIT=Beenden
SAVE=Speichern
NEW=Neu
SAVE_IMG=Speichere Bild
VIEW=Ansicht
FULLSCREEN=Vollbild
TOOLS=Tools
SETTINGS=Einstellungen
SETTINGS_TITLE=CircleArt \- Einstellungen
SETTINGS_CIRC_SIZE=Max. Gr\u00f6\u00dfe der Kreise
SETTINGS_DIST=Distanz
SETTINGS_DIR=Richtung
SETTINGS_Y=Benutze y statt x
SETTINGS_COLOR=Farbeinstellungen
RED=Rot
GREEN=Gr\u00fcn
BLUE=Blau
HELP=Hilfe
ABOUT=\u00dcber
DRAWING_OFF=Status: Aus
DRAWING_ON=Status: An
HELP_DRAWING=Ein-/Ausschalten des Stiftes durch Dr\u00fccken von D.

47
build/classes/org/bandie/circleart/msgs_de_BE.properties

@ -0,0 +1,47 @@
# Copyright (c) 2017, bandie
# 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.
#
# 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 HOLDER 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.
FILE=Datei
QUIT=Beenden
SAVE=Speichern
NEW=Neu
SAVE_IMG=Speichere Bild
VIEW=Ansicht
FULLSCREEN=Vollbild
TOOLS=Tools
SETTINGS=Einstellungen
SETTINGS_TITLE=CircleArt \- Einstellungen
SETTINGS_CIRC_SIZE=Max. Gr\u00f6\u00dfe der Kreise
SETTINGS_DIST=Distanz
SETTINGS_DIR=Richtung
SETTINGS_Y=Benutze y statt x
SETTINGS_COLOR=Farbeinstellungen
RED=Rot
GREEN=Gr\u00fcn
BLUE=Blau
HELP=Hilfe
ABOUT=\u00dcber
DRAWING_OFF=Status: Aus
DRAWING_ON=Status: An
HELP_DRAWING=Ein-/Ausschalten des Stiftes durch Dr\u00fccken von D.

47
build/classes/org/bandie/circleart/msgs_de_CA.properties

@ -0,0 +1,47 @@
# Copyright (c) 2017, bandie
# 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.
#
# 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 HOLDER 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.
FILE=Datei
QUIT=Beenden
SAVE=Speichern
NEW=Neu
SAVE_IMG=Speichere Bild
VIEW=Ansicht
FULLSCREEN=Vollbild
TOOLS=Tools
SETTINGS=Einstellungen
SETTINGS_TITLE=CircleArt \- Einstellungen
SETTINGS_CIRC_SIZE=Max. Gr\u00f6\u00dfe der Kreise
SETTINGS_DIST=Distanz
SETTINGS_DIR=Richtung
SETTINGS_Y=Benutze y statt x
SETTINGS_COLOR=Farbeinstellungen
RED=Rot
GREEN=Gr\u00fcn
BLUE=Blau
HELP=Hilfe
ABOUT=\u00dcber
DRAWING_OFF=Status: Aus
DRAWING_ON=Status: An
HELP_DRAWING=Ein-/Ausschalten des Stiftes durch Dr\u00fccken von D.

47
build/classes/org/bandie/circleart/msgs_de_CH.properties

@ -0,0 +1,47 @@
# Copyright (c) 2017, bandie
# 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.
#
# 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 HOLDER 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.
FILE=Datei
QUIT=Beenden
SAVE=Speichern
NEW=Neu
SAVE_IMG=Speichere Bild
VIEW=Ansicht
FULLSCREEN=Vollbild
TOOLS=Tools
SETTINGS=Einstellungen
SETTINGS_TITLE=CircleArt \- Einstellungen
SETTINGS_CIRC_SIZE=Max. Gr\u00f6\u00dfe der Kreise
SETTINGS_DIST=Distanz
SETTINGS_DIR=Richtung
SETTINGS_Y=Benutze y statt x
SETTINGS_COLOR=Farbeinstellungen
RED=Rot
GREEN=Gr\u00fcn
BLUE=Blau
HELP=Hilfe
ABOUT=\u00dcber
DRAWING_OFF=Status: Aus
DRAWING_ON=Status: An
HELP_DRAWING=Ein-/Ausschalten des Stiftes durch Dr\u00fccken von D.

47
build/classes/org/bandie/circleart/msgs_de_DE.properties

@ -0,0 +1,47 @@
# Copyright (c) 2017, bandie
# 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.
#
# 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 HOLDER 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.
FILE=Datei
QUIT=Beenden
SAVE=Speichern
NEW=Neu
SAVE_IMG=Speichere Bild
VIEW=Ansicht
FULLSCREEN=Vollbild
TOOLS=Tools
SETTINGS=Einstellungen
SETTINGS_TITLE=CircleArt \- Einstellungen
SETTINGS_CIRC_SIZE=Max. Gr\u00f6\u00dfe der Kreise
SETTINGS_DIST=Distanz
SETTINGS_DIR=Richtung
SETTINGS_Y=Benutze y statt x
SETTINGS_COLOR=Farbeinstellungen
RED=Rot
GREEN=Gr\u00fcn
BLUE=Blau
HELP=Hilfe
ABOUT=\u00dcber
DRAWING_OFF=Status: Aus
DRAWING_ON=Status: An
HELP_DRAWING=Ein-/Ausschalten des Stiftes durch Dr\u00fccken von D.

47
build/classes/org/bandie/circleart/msgs_en_CA.properties

@ -0,0 +1,47 @@
# Copyright (c) 2017, bandie
# 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.
#
# 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 HOLDER 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.
FILE=File
QUIT=Quit
SAVE=Save
NEW=New
SAVE_IMG=Save Image
VIEW=View
FULLSCREEN=Fullscreen
TOOLS=Tools
SETTINGS=Settings
SETTINGS_TITLE=CircleArt \- Settings
SETTINGS_CIRC_SIZE=Max. circle size
SETTINGS_DIST=Distance
SETTINGS_DIR=Direction
SETTINGS_Y=Use y instead of x
SETTINGS_COLOR=Color settings
RED=Red
GREEN=Green
BLUE=Blue
HELP=Help
ABOUT=About
DRAWING_OFF=Status: Off
DRAWING_ON=Status: On
HELP_DRAWING=To switch on/off your pen, press D.

47
build/classes/org/bandie/circleart/msgs_en_UK.properties

@ -0,0 +1,47 @@
# Copyright (c) 2017, bandie
# 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.
#
# 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 HOLDER 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.
FILE=File
QUIT=Quit
SAVE=Save
NEW=New
SAVE_IMG=Save Image
VIEW=View
FULLSCREEN=Fullscreen
TOOLS=Tools
SETTINGS=Settings
SETTINGS_TITLE=CircleArt \- Settings
SETTINGS_CIRC_SIZE=Max. circle size
SETTINGS_DIST=Distance
SETTINGS_DIR=Direction
SETTINGS_Y=Use y instead of x
SETTINGS_COLOR=Color settings
RED=Red
GREEN=Green
BLUE=Blue
HELP=Help
ABOUT=About
DRAWING_OFF=Status: Off
DRAWING_ON=Status: On
HELP_DRAWING=To switch on/off your pen, press D.

47
build/classes/org/bandie/circleart/msgs_en_US.properties

@ -0,0 +1,47 @@
# Copyright (c) 2017, bandie
# 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.
#
# 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 HOLDER 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.
FILE=File
QUIT=Quit
SAVE=Save
NEW=New
SAVE_IMG=Save Image
VIEW=View
FULLSCREEN=Fullscreen
TOOLS=Tools
SETTINGS=Settings
SETTINGS_TITLE=CircleArt \- Settings
SETTINGS_CIRC_SIZE=Max. circle size
SETTINGS_DIST=Distance
SETTINGS_DIR=Direction
SETTINGS_Y=Use y instead of x
SETTINGS_COLOR=Color settings
RED=Red
GREEN=Green
BLUE=Blue
HELP=Help
ABOUT=About
DRAWING_OFF=Status: Off
DRAWING_ON=Status: On
HELP_DRAWING=To switch on/off your pen, press D.

47
build/classes/org/bandie/circleart/msgs_fr_BE.properties

@ -0,0 +1,47 @@
# Copyright (c) 2017, bandie
# 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.
#
# 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 HOLDER 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.
FILE=Ficher
QUIT=Quitter
SAVE=Sauvegarder
NEW=Nouveau
SAVE_IMG=Sauvegarder la peinture
VIEW=Vue
FULLSCREEN=Plein \u00e9cran
TOOLS=Outils
SETTINGS=R\u00e9glage
SETTINGS_TITLE=R\u00e9glage de CircleArt
SETTINGS_CIRC_SIZE=Maximum de les cercles
SETTINGS_DIST=Distance
SETTINGS_DIR=Direction
SETTINGS_Y=Utilise Y au lieu de X
SETTINGS_COLOR=R\u00e9glage de coleur
RED=Rouge
GREEN=Vert
BLUE=Bleu
HELP=Aider
ABOUT=\u00c0 propos de programme
DRAWING_OFF=Crayon: D\u00e9sactiv\u00e9
DRAWING_ON=Crayon: Allum\u00e9
HELP_DRAWING=Allum\u00e9/D\u00e9sactiv\u00e9 le crayon en appuyant sur la barre d'espacement.

47
build/classes/org/bandie/circleart/msgs_fr_CA.properties

@ -0,0 +1,47 @@
# Copyright (c) 2017, bandie
# 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.
#
# 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 HOLDER 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.
FILE=Ficher
QUIT=Quitter
SAVE=Sauvegarder
NEW=Nouveau
SAVE_IMG=Sauvegarder la peinture
VIEW=Vue
FULLSCREEN=Plein \u00e9cran
TOOLS=Outils
SETTINGS=R\u00e9glage
SETTINGS_TITLE=R\u00e9glage de CircleArt
SETTINGS_CIRC_SIZE=Maximum de les cercles
SETTINGS_DIST=Distance
SETTINGS_DIR=Direction
SETTINGS_Y=Utilise Y au lieu de X
SETTINGS_COLOR=R\u00e9glage de coleur
RED=Rouge
GREEN=Vert
BLUE=Bleu
HELP=Aider
ABOUT=\u00c0 propos de programme
DRAWING_OFF=Crayon: D\u00e9sactiv\u00e9
DRAWING_ON=Crayon: Allum\u00e9
HELP_DRAWING=Allum\u00e9/D\u00e9sactiv\u00e9 le crayon en appuyant sur la barre d'espacement.

47
build/classes/org/bandie/circleart/msgs_fr_FR.properties

@ -0,0 +1,47 @@
# Copyright (c) 2017, bandie
# 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.
#
# 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 HOLDER 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.
FILE=Ficher
QUIT=Quitter
SAVE=Sauvegarder
NEW=Nouveau
SAVE_IMG=Sauvegarder la peinture
VIEW=Vue
FULLSCREEN=Plein \u00e9cran
TOOLS=Outils
SETTINGS=R\u00e9glage
SETTINGS_TITLE=R\u00e9glage de CircleArt
SETTINGS_CIRC_SIZE=Maximum de les cercles
SETTINGS_DIST=Distance
SETTINGS_DIR=Direction
SETTINGS_Y=Utilise Y au lieu de X
SETTINGS_COLOR=R\u00e9glage de coleur
RED=Rouge
GREEN=Vert
BLUE=Bleu
HELP=Aider
ABOUT=\u00c0 propos de programme
DRAWING_OFF=Crayon: D\u00e9sactiv\u00e9
DRAWING_ON=Crayon: Allum\u00e9
HELP_DRAWING=Allum\u00e9/D\u00e9sactiv\u00e9 le crayon en appuyant sur la barre d'espacement.

47
build/classes/org/bandie/circleart/msgs_nl_BE.properties

@ -0,0 +1,47 @@
# Copyright (c) 2017, bandie
# 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.
#
# 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 HOLDER 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.
FILE=File
QUIT=Be\u00ebindigen
SAVE=Opslaan
NEW=Nieuw
SAVE_IMG=Afbeelding opslaan
VIEW=Inzicht
FULLSCREEN=Volledige scherm
TOOLS=Tools
SETTINGS=Instellingen
SETTINGS_TITLE=CircleArt \- Instellingen
SETTINGS_CIRC_SIZE=Max. grootte van de cirkels
SETTINGS_DIST=Afstand
SETTINGS_DIR=Richting
SETTINGS_Y=Gebruik y in plaats van x
SETTINGS_COLOR=Kleur instellingen
RED=Rood
GREEN=Groen
BLUE=Blauw
HELP=Help
ABOUT=Over dit programma
DRAWING_OFF=Status: Af
DRAWING_ON=Status: Aan
HELP_DRAWING=Je kunt de pen aan/uitschakelen door dat je D drukt.

47
build/classes/org/bandie/circleart/msgs_nl_NL.properties

@ -0,0 +1,47 @@
# Copyright (c) 2017, bandie
# 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.
#
# 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 HOLDER 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.
FILE=File
QUIT=Be\u00ebindigen
SAVE=Opslaan
NEW=Nieuw
SAVE_IMG=Afbeelding opslaan
VIEW=Inzicht
FULLSCREEN=Volledige scherm
TOOLS=Tools
SETTINGS=Instellingen
SETTINGS_TITLE=CircleArt \- Instellingen
SETTINGS_CIRC_SIZE=Max. grootte van de cirkels
SETTINGS_DIST=Afstand
SETTINGS_DIR=Richting
SETTINGS_Y=Gebruik y in plaats van x
SETTINGS_COLOR=Kleur instellingen
RED=Rood
GREEN=Groen
BLUE=Blauw
HELP=Help
ABOUT=Over dit programma
DRAWING_OFF=Status: Af
DRAWING_ON=Status: Aan
HELP_DRAWING=Je kunt de pen aan/uitschakelen door dat je D drukt.

45
dist/CircleArt.html

@ -0,0 +1,45 @@
<html><head>
<SCRIPT src="./web-files/dtjava.js"></SCRIPT>
<script>
function launchApplication(jnlpfile) {
dtjava.launch( {
url : 'CircleArt.jnlp',
jnlp_content : 'PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPGpubHAgc3BlYz0iMS4wIiB4bWxuczpqZng9Imh0dHA6Ly9qYXZhZnguY29tIiBocmVmPSJDaXJjbGVBcnQuam5scCI+CiAgPGluZm9ybWF0aW9uPgogICAgPHRpdGxlPkNpcmNsZUFydDwvdGl0bGU+CiAgICA8dmVuZG9yPmJhbmRpZTwvdmVuZG9yPgogICAgPGRlc2NyaXB0aW9uPm51bGw8L2Rlc2NyaXB0aW9uPgogICAgPG9mZmxpbmUtYWxsb3dlZC8+CiAgPC9pbmZvcm1hdGlvbj4KICA8cmVzb3VyY2VzPgogICAgPGoyc2UgdmVyc2lvbj0iMS42KyIgaHJlZj0iaHR0cDovL2phdmEuc3VuLmNvbS9wcm9kdWN0cy9hdXRvZGwvajJzZSIvPgogICAgPGphciBocmVmPSJDaXJjbGVBcnQuamFyIiBzaXplPSIxMTA2NzkwIiBkb3dubG9hZD0iZWFnZXIiIC8+CiAgPC9yZXNvdXJjZXM+CiAgPGFwcGxldC1kZXNjICB3aWR0aD0iODAwIiBoZWlnaHQ9IjYwMCIgbWFpbi1jbGFzcz0iY29tLmphdmFmeC5tYWluLk5vSmF2YUZYRmFsbGJhY2siICBuYW1lPSJDaXJjbGVBcnQiID4KICAgIDxwYXJhbSBuYW1lPSJyZXF1aXJlZEZYVmVyc2lvbiIgdmFsdWU9IjguMCsiLz4KICA8L2FwcGxldC1kZXNjPgogIDxqZng6amF2YWZ4LWRlc2MgIHdpZHRoPSI4MDAiIGhlaWdodD0iNjAwIiBtYWluLWNsYXNzPSJvcmcuYmFuZGllLmNpcmNsZWFydC5DaXJjbGVBcnQiICBuYW1lPSJDaXJjbGVBcnQiIC8+CiAgPHVwZGF0ZSBjaGVjaz0iYWx3YXlzIi8+Cjwvam5scD4K'
},
{
javafx : '8.0+'
},
{}
);
return false;
}
</script>
<script>
function javafxEmbedorg.bandie.circleart() {
dtjava.embed(
{
id : 'org.bandie.circleart',
url : 'CircleArt.jnlp',
placeholder : 'javafx-app-placeholder',
width : '800',
height : '600',
jnlp_content : 'PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPGpubHAgc3BlYz0iMS4wIiB4bWxuczpqZng9Imh0dHA6Ly9qYXZhZnguY29tIiBocmVmPSJDaXJjbGVBcnQuam5scCI+CiAgPGluZm9ybWF0aW9uPgogICAgPHRpdGxlPkNpcmNsZUFydDwvdGl0bGU+CiAgICA8dmVuZG9yPmJhbmRpZTwvdmVuZG9yPgogICAgPGRlc2NyaXB0aW9uPm51bGw8L2Rlc2NyaXB0aW9uPgogICAgPG9mZmxpbmUtYWxsb3dlZC8+CiAgPC9pbmZvcm1hdGlvbj4KICA8cmVzb3VyY2VzPgogICAgPGoyc2UgdmVyc2lvbj0iMS42KyIgaHJlZj0iaHR0cDovL2phdmEuc3VuLmNvbS9wcm9kdWN0cy9hdXRvZGwvajJzZSIvPgogICAgPGphciBocmVmPSJDaXJjbGVBcnQuamFyIiBzaXplPSIxMTA2NzkwIiBkb3dubG9hZD0iZWFnZXIiIC8+CiAgPC9yZXNvdXJjZXM+CiAgPGFwcGxldC1kZXNjICB3aWR0aD0iODAwIiBoZWlnaHQ9IjYwMCIgbWFpbi1jbGFzcz0iY29tLmphdmFmeC5tYWluLk5vSmF2YUZYRmFsbGJhY2siICBuYW1lPSJDaXJjbGVBcnQiID4KICAgIDxwYXJhbSBuYW1lPSJyZXF1aXJlZEZYVmVyc2lvbiIgdmFsdWU9IjguMCsiLz4KICA8L2FwcGxldC1kZXNjPgogIDxqZng6amF2YWZ4LWRlc2MgIHdpZHRoPSI4MDAiIGhlaWdodD0iNjAwIiBtYWluLWNsYXNzPSJvcmcuYmFuZGllLmNpcmNsZWFydC5DaXJjbGVBcnQiICBuYW1lPSJDaXJjbGVBcnQiIC8+CiAgPHVwZGF0ZSBjaGVjaz0iYWx3YXlzIi8+Cjwvam5scD4K'
},
{
javafx : '8.0+'
},
{}
);
}
<!-- Embed FX application into web page once page is loaded -->
dtjava.addOnloadCallback(javafxEmbedorg.bandie.circleart);
</script>
</head><body>
<h2>Test page for <b>CircleArt</b></h2>
<b>Webstart:</b> <a href='CircleArt.jnlp' onclick="return launchApplication('CircleArt.jnlp');">click to launch this app as webstart</a><br><hr><br>
<!-- Applet will be inserted here -->
<div id='javafx-app-placeholder'></div>
</body></html>

BIN
dist/CircleArt.jar

18
dist/CircleArt.jnlp

@ -0,0 +1,18 @@
<?xml version="1.0" encoding="utf-8"?>
<jnlp spec="1.0" xmlns:jfx="http://javafx.com" href="CircleArt.jnlp">
<information>
<title>CircleArt</title>
<vendor>bandie</vendor>
<description>null</description>
<offline-allowed/>
</information>
<resources>
<j2se version="1.6+" href="http://java.sun.com/products/autodl/j2se"/>
<jar href="CircleArt.jar" size="1106790" download="eager" />
</resources>
<applet-desc width="800" height="600" main-class="com.javafx.main.NoJavaFXFallback" name="CircleArt" >
<param name="requiredFXVersion" value="8.0+"/>
</applet-desc>
<jfx:javafx-desc width="800" height="600" main-class="org.bandie.circleart.CircleArt" name="CircleArt" />
<update check="always"/>
</jnlp>

3954
dist/web-files/dtjava.js
File diff suppressed because it is too large
View File

BIN
dist/web-files/error.png

After

Width: 16  |  Height: 16  |  Size: 725 B

BIN
dist/web-files/get_java.png

After

Width: 238  |  Height: 155  |  Size: 9.7 KiB

BIN
dist/web-files/get_javafx.png

After

Width: 238  |  Height: 155  |  Size: 11 KiB

BIN
dist/web-files/javafx-chrome.png

After

Width: 238  |  Height: 155  |  Size: 11 KiB

BIN
dist/web-files/javafx-loading-100x100.gif

After

Width: 80  |  Height: 80  |  Size: 18 KiB

BIN
dist/web-files/javafx-loading-25x25.gif

After

Width: 25  |  Height: 25  |  Size: 2.4 KiB

BIN
dist/web-files/upgrade_java.png

After

Width: 238  |  Height: 155  |  Size: 11 KiB

BIN
dist/web-files/upgrade_javafx.png

After

Width: 238  |  Height: 155  |  Size: 13 KiB

3
manifest.mf

@ -0,0 +1,3 @@
Manifest-Version: 1.0
X-COMMENT: Main-Class will be added automatically by build

1421
nbproject/build-impl.xml
File diff suppressed because it is too large
View File

2
nbproject/configs/Run_as_WebStart.properties

@ -0,0 +1,2 @@
# Do not modify this property in this configuration. It can be re-generated.
$label=Run as WebStart

2
nbproject/configs/Run_in_Browser.properties

@ -0,0 +1,2 @@
# Do not modify this property in this configuration. It can be re-generated.
$label=Run in Browser

8
nbproject/genfiles.properties

@ -0,0 +1,8 @@
build.xml.data.CRC32=38241210
build.xml.script.CRC32=e354da3e
build.xml.stylesheet.CRC32=8064a381@1.80.1.48
# This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml.
# Do not edit this file. You may delete it but then the IDE will never regenerate such files for you.
nbproject/build-impl.xml.data.CRC32=157ad1af
nbproject/build-impl.xml.script.CRC32=c8488e2d
nbproject/build-impl.xml.stylesheet.CRC32=830a3534@1.80.1.48

4049
nbproject/jfx-impl.xml
File diff suppressed because it is too large
View File

2
nbproject/private/configs/Run_as_WebStart.properties

@ -0,0 +1,2 @@
# Do not modify this property in this configuration. It can be re-generated.
javafx.run.as=webstart

2
nbproject/private/configs/Run_in_Browser.properties

@ -0,0 +1,2 @@
# Do not modify this property in this configuration. It can be re-generated.
javafx.run.as=embedded

12
nbproject/private/private.properties

@ -0,0 +1,12 @@
auxiliary.org-netbeans-modules-projectapi.issue214819_5f_fx_5f_enabled=true
compile.on.save=true
do.depend=false
do.jar=true
# No need to modify this property unless customizing JavaFX Ant task infrastructure
endorsed.javafx.ant.classpath=.
javac.debug=true
javadoc.preview=true
javafx.run.as=standalone
javafx.run.inbrowser=<Default System Browser>
javafx.run.inbrowser.path=
user.properties.file=/home/bandie/.netbeans/8.2/build.properties

13
nbproject/private/private.xml

@ -0,0 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<project-private xmlns="http://www.netbeans.org/ns/project-private/1">
<editor-bookmarks xmlns="http://www.netbeans.org/ns/editor-bookmarks/2" lastBookmarkId="0"/>
<open-files xmlns="http://www.netbeans.org/ns/projectui-open-files/2">
<group>
<file>file:/home/bandie/NetBeansProjects/CircleArt/src/org/bandie/circleart/CircleArt.java</file>
<file>file:/home/bandie/NetBeansProjects/CircleArt/src/org/bandie/circleart/ObjectMath.java</file>
<file>file:/home/bandie/NetBeansProjects/CircleArt/src/org/bandie/circleart/Pen.java</file>
<file>file:/home/bandie/NetBeansProjects/CircleArt/src/org/bandie/circleart/CircleArtGUI.java</file>
<file>file:/home/bandie/NetBeansProjects/CircleArt/src/org/bandie/circleart/SettingsGUI.java</file>
</group>
</open-files>
</project-private>

126
nbproject/project.properties

@ -0,0 +1,126 @@
annotation.processing.enabled=true
annotation.processing.enabled.in.editor=false
annotation.processing.processors.list=
annotation.processing.run.all.processors=true
annotation.processing.source.output=${build.generated.sources.dir}/ap-source-output
application.splash=
application.title=CircleArt
application.vendor=bandie
auxiliary.org-netbeans-spi-editor-hints-projects.perProjectHintSettingsFile=nbproject/cfg_hints.xml
build.classes.dir=${build.dir}/classes
build.classes.excludes=**/*.java,**/*.form
# This directory is removed when the project is cleaned:
build.dir=build
build.generated.dir=${build.dir}/generated
build.generated.sources.dir=${build.dir}/generated-sources
# Only compile against the classpath explicitly listed here:
build.sysclasspath=ignore
build.test.classes.dir=${build.dir}/test/classes
build.test.results.dir=${build.dir}/test/results
compile.on.save=true
compile.on.save.unsupported.javafx=true
# Uncomment to specify the preferred debugger connection transport:
#debug.transport=dt_socket
debug.classpath=\
${run.classpath}
debug.test.classpath=\
${run.test.classpath}
# This directory is removed when the project is cleaned:
dist.dir=dist
dist.jar=${dist.dir}/CircleArt.jar
dist.javadoc.dir=${dist.dir}/javadoc
endorsed.classpath=
excludes=
includes=**
# Non-JavaFX jar file creation is deactivated in JavaFX 2.0+ projects
jar.archive.disabled=true
jar.compress=false
javac.classpath=\
${javafx.classpath.extension}
# Space-separated list of extra javac options
javac.compilerargs=
javac.deprecation=false
javac.external.vm=false
javac.processorpath=\
${javac.classpath}
javac.source=1.8
javac.target=1.8
javac.test.classpath=\
${javac.classpath}:\
${build.classes.dir}
javac.test.processorpath=\
${javac.test.classpath}
javadoc.additionalparam=
javadoc.author=false
javadoc.encoding=${source.encoding}
javadoc.noindex=false
javadoc.nonavbar=false
javadoc.notree=false
javadoc.private=false
javadoc.splitindex=true
javadoc.use=true
javadoc.version=false
javadoc.windowtitle=
javafx.application.implementation.version=1.0
javafx.binarycss=false
javafx.classpath.extension=\
${java.home}/lib/javaws.jar:\
${java.home}/lib/deploy.jar:\
${java.home}/lib/plugin.jar
javafx.deploy.adddesktopshortcut=false
javafx.deploy.addstartmenushortcut=false
javafx.deploy.allowoffline=true
# If true, application update mode is set to 'background', if false, update mode is set to 'eager'
javafx.deploy.backgroundupdate=false
javafx.deploy.disable.proxy=false
javafx.deploy.embedJNLP=true
javafx.deploy.includeDT=true
javafx.deploy.installpermanently=false
javafx.deploy.permissionselevated=false
# Set true to prevent creation of temporary copy of deployment artifacts before each run (disables concurrent runs)
javafx.disable.concurrent.runs=false
# Set true to enable multiple concurrent runs of the same WebStart or Run-in-Browser project
javafx.enable.concurrent.external.runs=false
# This is a JavaFX project
javafx.enabled=true
javafx.fallback.class=com.javafx.main.NoJavaFXFallback
# Main class for JavaFX
javafx.main.class=org.bandie.circleart.CircleArt
javafx.preloader.class=
# This project does not use Preloader
javafx.preloader.enabled=false
javafx.preloader.jar.filename=
javafx.preloader.jar.path=
javafx.preloader.project.path=
javafx.preloader.type=none
# Set true for GlassFish only. Rebases manifest classpaths of JARs in lib dir. Not usable with signed JARs.
javafx.rebase.libs=false
javafx.run.height=600
javafx.run.width=800
javafx.signing.blob=false
javafx.signing.enabled=false
javafx.signing.type=notsigned
# Pre-JavaFX 2.0 WebStart is deactivated in JavaFX 2.0+ projects
jnlp.enabled=false
# Main class for Java launcher
main.class=com.javafx.main.Main
# For improved security specify narrower Codebase manifest attribute to prevent RIAs from being repurposed
manifest.custom.codebase=*
# Specify Permissions manifest attribute to override default (choices: sandbox, all-permissions)
manifest.custom.permissions=
manifest.file=manifest.mf
meta.inf.dir=${src.dir}/META-INF
mkdist.disabled=false
native.bundling.enabled=false
platform.active=default_platform
project.license=bsd
run.classpath=\
${dist.jar}:\
${javac.classpath}:\
${build.classes.dir}
run.test.classpath=\
${javac.test.classpath}:\
${build.test.classes.dir}
source.encoding=UTF-8
src.dir=src
test.src.dir=test

25
nbproject/project.xml

@ -0,0 +1,25 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://www.netbeans.org/ns/project/1">
<type>org.netbeans.modules.java.j2seproject</type>
<configuration>
<buildExtensions xmlns="http://www.netbeans.org/ns/ant-build-extender/1">
<extension file="jfx-impl.xml" id="jfx3">
<dependency dependsOn="-jfx-copylibs" target="-post-jar"/>
<dependency dependsOn="-rebase-libs" target="-post-jar"/>
<dependency dependsOn="jfx-deployment" target="-post-jar"/>
<dependency dependsOn="jar" target="debug"/>
<dependency dependsOn="jar" target="profile"/>
<dependency dependsOn="jar" target="run"/>
</extension>
</buildExtensions>
<data xmlns="http://www.netbeans.org/ns/j2se-project/3">
<name>CircleArt</name>
<source-roots>
<root id="src.dir"/>
</source-roots>
<test-roots>
<root id="test.src.dir"/>
</test-roots>
</data>
</configuration>
</project>

112
src/org/bandie/circleart/About.java

@ -0,0 +1,112 @@
/*
* Copyright (c) 2017, bandie
* 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.
*
* 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 HOLDER 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.bandie.circleart;
import javafx.geometry.Insets;
import javafx.scene.control.Alert;
import javafx.scene.control.Alert.AlertType;
import javafx.scene.control.Label;
import javafx.scene.control.TextArea;
import javafx.scene.image.ImageView;
import javafx.scene.layout.BorderPane;
import javafx.scene.layout.GridPane;
import javafx.stage.Stage;
/**
*
* @author bandie
*/
public abstract class About {
static protected void show(Stage stage) {
boolean fscr = stage.isFullScreen();
String progname = "CircleArt";
String copyright = "\n\u00a9 2017 by Bandie Canis <bandie@bandie.org>.";
String licensetext
= "CirceArt is licensed under BSD-2-Clause:\n\n\n"
+ "Copyright \u00a9 2017, Bandie Canis"
+ "\nAll rights reserved.\n\n"
+ "Redistribution and use in source and binary forms, with or without modification, \n"
+ "are permitted provided that the following conditions are met:\n\n"
+ "1.\tRedistributions of source code must retain the above copyright notice, \n"
+ "\tthis list of conditions and the following disclaimer.\n"
+ "2.\tRedistributions in binary form must reproduce the above copyright notice, \n"
+ "\tthis list of conditions and the following disclaimer in the documentation \n"
+ "\tand/or other materials provided with the distribution.\n\n"
+ "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 HOLDER 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.";
ImageView imgBandie = new ImageView(About.class.getResource("BandieCanis.gif").toString());
GridPane gp = new GridPane();
BorderPane bp = new BorderPane();
Label prog = new Label(progname);
prog.setStyle("-fx-font-weight: bold");
Label copy = new Label(copyright);
TextArea license = new TextArea(licensetext);
license.setEditable(false);
license.setWrapText(true);
gp.setHgap(20.0);
gp.addColumn(0, prog, copy);
gp.addColumn(1, imgBandie);
gp.setPadding(new Insets(20, 20, 20, 20));
bp.setTop(gp);
bp.setBottom(license);
Alert alert = new Alert(AlertType.INFORMATION);
alert.setHeight(630.0);
alert.setWidth(680.0);
alert.setResizable(false);
alert.setTitle("About CircleArt");
alert.setHeaderText("About CircleArt");
alert.getDialogPane().setContent(bp);
/*
alert.widthProperty().addListener((ObservableValue<? extends Number> ov, Number t, Number t1) -> {
System.out.println("Width:" + ov.getValue());
});
alert.heightProperty().addListener((ObservableValue<? extends Number> ov, Number t, Number t1) -> {
System.out.println("Height:" + ov.getValue());
});
*/
if (fscr) {
stage.setFullScreen(false);
}
alert.showAndWait();
if (fscr) {
stage.setFullScreen(true);
}
}
}

BIN
src/org/bandie/circleart/BandieCanis.gif

After

Width: 248  |  Height: 248  |  Size: 319 KiB

65
src/org/bandie/circleart/CircleArt.java

@ -0,0 +1,65 @@
/*
* Copyright (c) 2017, bandie
* 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.
*
* 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 HOLDER 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.bandie.circleart;
import java.util.Locale;
import java.util.ResourceBundle;
import javafx.animation.PauseTransition;
import javafx.application.Application;
import javafx.stage.Stage;
import javafx.util.Duration;
/**
*
* @author bandie
*/
public class CircleArt extends Application {
static final Locale CURRENTLOCALE = Locale.getDefault();
static final ResourceBundle MSGS = ResourceBundle.getBundle("org/bandie/circleart/msgs", CURRENTLOCALE);
@Override
public void start(Stage stage) {
Stage cagStage = new Stage();
CircleArtGUI cag = new CircleArtGUI();
Splash.start();
PauseTransition delay = new PauseTransition(Duration.seconds(4));
delay.setOnFinished(ev -> {
Splash.stop();
cagStage.requestFocus();
});
delay.play();
cag.start(cagStage);
}
}

BIN
src/org/bandie/circleart/CircleArt.png

After

Width: 1434  |  Height: 1075  |  Size: 304 KiB

BIN
src/org/bandie/circleart/CircleArt.xcf

209
src/org/bandie/circleart/CircleArtGUI.java

@ -0,0 +1,209 @@
/*
* Copyright (c) 2017, bandie
* 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.
*
* 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 HOLDER 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.bandie.circleart;
import javafx.application.Application;
import javafx.application.Platform;
import javafx.event.ActionEvent;
import javafx.scene.Scene;
import javafx.scene.control.Label;
import javafx.scene.control.Menu;
import javafx.scene.control.MenuBar;
import javafx.scene.control.MenuItem;
import javafx.scene.control.ScrollPane;
import javafx.scene.control.SeparatorMenuItem;
import javafx.scene.input.KeyCode;
import javafx.scene.input.KeyCodeCombination;
import javafx.scene.input.KeyCombination;
import javafx.scene.input.KeyEvent;
import javafx.scene.input.MouseEvent;
import javafx.scene.layout.BorderPane;
import javafx.scene.layout.GridPane;
import javafx.scene.layout.Pane;
import javafx.scene.paint.Color;
import javafx.scene.shape.Circle;
import javafx.scene.text.Font;
import javafx.stage.Stage;
import static org.bandie.circleart.CircleArt.MSGS;
/**
*
* @author bandie
*/
public class CircleArtGUI extends Application {
private Stage stageSettingsGUI;
private SettingsGUI sg;
static final Pen P = new Pen();
@Override
public void start(Stage stage) {
final KeyCodeCombination kcNew = new KeyCodeCombination(KeyCode.N, KeyCombination.CONTROL_DOWN);
final KeyCodeCombination kcSave = new KeyCodeCombination(KeyCode.S, KeyCombination.CONTROL_DOWN);
final KeyCodeCombination kcQuit = new KeyCodeCombination(KeyCode.Q, KeyCombination.CONTROL_DOWN);
final KeyCodeCombination kcFullscreen = new KeyCodeCombination(KeyCode.F, KeyCombination.CONTROL_DOWN);
BorderPane root = new BorderPane();
Pane drawPane = new Pane();
ScrollPane scrollPane = new ScrollPane(drawPane);
scrollPane.setFitToHeight(true);
scrollPane.setFitToWidth(true);
GridPane statusPane = new GridPane();
//MENU - File
MenuItem menuIFNew = new MenuItem(MSGS.getString("NEW"));
menuIFNew.setAccelerator(kcNew);
menuIFNew.setOnAction((ActionEvent t) -> {
drawPane.getChildren().clear();
});
MenuItem menuIFSave = new MenuItem(MSGS.getString("SAVE"));
menuIFSave.setAccelerator(kcSave);
menuIFSave.setOnAction((ActionEvent t) -> {
FileUtil.saveFile(stage, drawPane);
});
MenuItem menuIFQuit = new MenuItem(MSGS.getString("QUIT"));
menuIFQuit.setAccelerator(kcQuit);
menuIFQuit.setOnAction(t -> {
if (stageSettingsGUI != null) {
stageSettingsGUI.close();
}
stage.close();
});
Menu menuFile = new Menu(MSGS.getString("FILE"));
menuFile.getItems().addAll(menuIFNew, menuIFSave, new SeparatorMenuItem(), menuIFQuit);
//MENU - View
MenuItem menuIVFullscreen = new MenuItem(MSGS.getString("FULLSCREEN"));
menuIVFullscreen.setAccelerator(kcFullscreen);
menuIVFullscreen.setOnAction((ActionEvent t) -> {
toggleFullscreen(stage);
});
Menu menuView = new Menu(MSGS.getString("VIEW"));
menuView.getItems().addAll(menuIVFullscreen);
//MENU - Tools
MenuItem menuITSettings = new MenuItem(MSGS.getString("SETTINGS"));
menuITSettings.setOnAction(t -> {
sg = new SettingsGUI();
stageSettingsGUI = new Stage();
if(stage.isFullScreen())
toggleFullscreen(stage);
sg.start(stageSettingsGUI);
});
Menu menuTools = new Menu(MSGS.getString("TOOLS"));
menuTools.getItems().addAll(menuITSettings);
//MENU - Help
MenuItem menuIHAbout = new MenuItem(MSGS.getString("ABOUT"));
menuIHAbout.setOnAction((ActionEvent t) -> {
About.show(stage);
});
Menu menuHelp = new Menu(MSGS.getString("HELP"));
menuHelp.getItems().addAll(menuIHAbout);
//MENUBAR
MenuBar menu = new MenuBar();
menu.getMenus().addAll(menuFile, menuView, menuTools, menuHelp);
//Statusbar
Label lHelp = new Label(MSGS.getString("HELP_DRAWING"));
lHelp.setFont(new Font(18));
Label lStatus = new Label(MSGS.getString("DRAWING_OFF"));
lStatus.setFont(new Font(18));
lStatus.setTextFill(Color.DARKRED);
statusPane.setHgap(30);
statusPane.addColumn(1, lStatus);
statusPane.addColumn(2, lHelp);
root.setTop(menu);
root.setBottom(statusPane);
root.setCenter(scrollPane);
root.setFocusTraversable(true);
root.addEventHandler(MouseEvent.MOUSE_MOVED, (MouseEvent t) -> {
if (P.isOn()) {
double x = t.getSceneX();
double y = t.getSceneY();
drawPane.getChildren().add(new Circle(x, y,
P.getSize(x, y),
P.getColor(x, y)
)
);
}
});
Scene scene = new Scene(root);
root.addEventHandler(KeyEvent.KEY_PRESSED, (KeyEvent t) -> {
if (t.getCode() == KeyCode.D) {
if (P.toggle()) {
lStatus.setTextFill(Color.DARKGREEN);
lStatus.setText(MSGS.getString("DRAWING_ON"));
} else {
lStatus.setTextFill(Color.DARKRED);
lStatus.setText(MSGS.getString("DRAWING_OFF"));
}
}
});
stage.setOnCloseRequest(eh -> {
Platform.setImplicitExit(true);
Platform.exit();
});
stage.setWidth(800);
stage.setHeight(600);
stage.setScene(scene);
stage.setTitle("CircleArt");
stage.show();
stage.requestFocus();
scrollPane.requestFocus();
}
// Fullscreen toggle
private void toggleFullscreen(Stage stage) {
stage.setFullScreen(!stage.isFullScreen());
}
}

BIN
src/org/bandie/circleart/CircleArt_640.png

After

Width: 640  |  Height: 480  |  Size: 185 KiB

106
src/org/bandie/circleart/FileUtil.java

@ -0,0 +1,106 @@
/*
* Copyright (c) 2017, bandie
* 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.
*
* 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 HOLDER 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.bandie.circleart;
import java.awt.image.BufferedImage;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.nio.file.Paths;
import javafx.embed.swing.SwingFXUtils;
import javafx.scene.SnapshotParameters;
import javafx.scene.control.Alert;
import javafx.scene.image.WritableImage;
import javafx.scene.layout.Pane;
import javafx.stage.FileChooser;
import javafx.stage.Stage;
import javax.imageio.ImageIO;
/**
*
* @author bandie
*/
public abstract class FileUtil {
/**
*
* @param stage The main stage
* @param drawPane The pane which needs to be saved.
*/
static protected void saveFile(Stage stage, Pane drawPane) {
//FileChooser
FileChooser fc = new FileChooser();
fc.setTitle(CircleArt.MSGS.getString("SAVE_IMG"));
fc.getExtensionFilters().add(new FileChooser.ExtensionFilter("PNG File", "*.png"));
//Prevent overwriting older files
File initFile = new File("CircleArt.png");
long i = 0;
while (initFile.exists()) {
i++;
initFile = new File("CircleArt_" + i + ".png");
}
fc.setInitialFileName(initFile.getName());
File file = fc.showSaveDialog(stage);
if (file != null) {
//Screenshot
WritableImage wi = drawPane.snapshot(new SnapshotParameters(), null);
BufferedImage bi = SwingFXUtils.fromFXImage(wi, null);
try {
//Check Permissions
File path = Paths.get(file.getAbsolutePath()).getParent().toFile();
if (!path.canWrite()) {
throw new FileNotFoundException(file.getAbsoluteFile() + " (Permission denied)");
}
ImageIO.write(bi, "png", file);
} catch (IOException e) {
boolean fscr = stage.isFullScreen();
if (fscr) {
stage.setFullScreen(false);
}
Alert a = new Alert(Alert.AlertType.ERROR);
a.setTitle("Error");
a.setHeaderText("Error1!1");
a.setContentText(e.getLocalizedMessage());
a.showAndWait();
if (fscr) {
stage.setFullScreen(true);
}
}
}
}
}

52
src/org/bandie/circleart/ObjectMath.java

@ -0,0 +1,52 @@
/*
* Copyright (c) 2017, bandie
* 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.
*
* 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 HOLDER 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.bandie.circleart;
/**
*
* @author bandie
*/
public abstract class ObjectMath {
/**
*
* @param x Mouse x
* @param y Mouse y
* @param mode Color mode
* @return 0 &gt;= color value =&lt; 255
*/
static protected int calcColor(double x, double y, Integer mode) {
switch (mode) {
case 1:
return Math.abs(((int) x - (int) y)) % 256;
case 2:
return ((int) x * (int) y) % 256;
default: