A collection of circular gauges. Each one extends a Swing JComponent.
Read the header comments in each class for details on how to use and customize.
Gauge colors, units, and ranges can be customized.
Also known as an attitude gauge / gyro horizon. These are typically seen in aircraft. They display land with a horizon and sky, visually depicting the vehicle's pitch and roll. The horizon moves up and down to indicate pitch and rotates to indicate roll.
The compass shows course and bearing needles and numeric value. The compass can rotate or can be set for always north up.
The speedometer shows speed and a numeric readout with unit.
Build and Run using Maven: "mvn package" Navigate to the "target" directory
- Run: java -cp classes:test-classes com.github.kkieffer.jcirculargauges.JCompassDemo
- Run: java -cp classes:test-classes com.github.kkieffer.jcirculargauges.JArtificialHorizonDemo
- Run: java -cp classes:test-classes com.github.kkieffer.jcirculargauges.JSpeedometerDemo
Only the Java JRE 1.8 is required. No other dependencies are needed.
Include in your project with maven
<dependency>
<groupId>com.github.kkieffer</groupId>
<artifactId>jCircularGauges</artifactId>
<version>2.0.1</version>
</dependency>
Demo classes are available in the test package
This project is licensed under the LGPL License - see the LICENSE.md file for details