Skip to content

Collection of Swing Gauges that extend JComponent. Includes Artificial Horizon and Compass

License

Notifications You must be signed in to change notification settings

kkieffer/jCircularGauges

Repository files navigation

JCircularGauges

A collection of circular gauges. Each one extends a Swing JComponent.

Gauge Types

Read the header comments in each class for details on how to use and customize.
Gauge colors, units, and ranges can be customized.

Artificial Horizon

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.

Compass

The compass shows course and bearing needles and numeric value. The compass can rotate or can be set for always north up.

Speedometer

The speedometer shows speed and a numeric readout with unit.

Getting Started

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.

Artifact

Include in your project with maven

<dependency>
  <groupId>com.github.kkieffer</groupId>
  <artifactId>jCircularGauges</artifactId>
  <version>2.0.1</version>
</dependency>

Demo

Demo classes are available in the test package Demo Screenshot Demo Screenshot Demo Screenshot

License

This project is licensed under the LGPL License - see the LICENSE.md file for details