You can get the latest version of HarmonicFX directly from Bintray’s JCenter repository or Maven Central.
repositories {
jcenter()
}
dependencies {
compile 'org.kordamp.harmonicfx:harmonicfx-core:0.2.0'
}
<dependencies>
<dependency>
<groupId>org.kordamp.harmonicfx</groupId>
<artifactId>harmonicfx-core</artifactId>
<version>0.2.0</version>
</dependency>
</dependencies>
HarmonicFX can be used in a modular fashion when running in Java9+. It’s module name is org.kordamp.harmonicfx.core
.
You must meet the following requirements:
-
JDK8u60 as a minimum
-
Gradle 6
You may used the included gradle wrapper script if you don’t have gradle
installed.
-
Download Gradle from http://gradle.org/downloads
-
Unzip the file into a directory without spaces (recommended).
-
Create a GRADLE_HOME environment variable that points to this directory.
-
Adjust your PATH environment variable to include $GRADLE_HOME/bin (%GRADLE_HOME%\bin on Windows).
-
Test your setup by invoking
gradle --version
.
-
Follow the instructions found at http://sdkman.io/ to install SDKMAN.
-
You need a POSIX environment if running Windows. We recommend using Babun Shell (http://babun.github.io/)
-
Once SDKMAN is installed invoke
sdk install gradle 4.10
. -
Test your setup by invoking
gradle --version
.
Gum is a wrapper script that facilitates invoking gradle tasks anywhere within a Gradle project. It’s smart enough to use the gradle wrapper if available or your global gradle command. This is an optional download.
-
Follow the instructions found at https://github.com/kordamp/gm to install gum
-
Make a full build issuing
gradle build
. -
Run the sampler application by invoking the following commands
$ cd subprojects/harmonicfx-samples $ gradle demo<name>
Where <name> stands for any of the following:
-
AnchorSelector
-
BpmGauge
-
CardNav
-
ChargeControl
-
CircularPlot
-
CircularProgressIndicator
-
ColorSelector
-
CoxcombChart
-
DialPlate
-
DonutChart
-
DotMatrix
-
FitnessGauge
-
FunIndicator
-
FunlevelGauge
-
FunMenu
-
GradientGauge
-
GradientPicker
-
HorizonChat
-
IOS
-
NestedBarChart
-
PathGradient
-
QualityGauge
-
RadialChart
-
Regulators
-
RollingGradient
-
SankeyPlot
-
Segment
-
SimpleSectionGauge
-
SlideCheckbox
-
SmoothedChart
-
SubmitButton
-
SunburstChart
-
TimeControl
-
Timer
-
TrafficLight
-
Weather
-
WhitGgauge
-
World
-
YotaClock