Skip to content
/ JGL Public

A natively implemented Java rendering engine

Notifications You must be signed in to change notification settings

YuelongLi/JGL

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JGL

A highly customizable package for you to build interactive data visualizations in Java

Components

  • ScaleLayout: an implementation of layout manager that takes care of all the sizing
  • Locator: Graphics coordinatization
  • DataPane2D: Function based high quality plotting
  • DataPane3D: Plotting of 3-dimensional surfaces and data
  • Dataset and its subclasses

Basic Usage

Code

import javax.swing.JFrame;
import ui.DataPane2D;
import utils.Function1V;

public class SimpleGrapher {
	public static void main(String args[]) {
		JFrame frame = new JFrame("grapher");
		frame.setSize(700, 500);
		DataPane2D dataPane = new DataPane2D();
		frame.add(dataPane);
		
		Function1V func = new Function1V((x)->Math.sin(x));
		dataPane.addDataset(func);
		frame.setVisible(true);
	}
}

Result

basic-usage

Examples

  • Multi-Variable Plotting

MultiVariable

  • Gradient descent visualization

GradientDescent

  • Double pendulum simulation

DoublePendulum

  • Functional plotting

AnalysisFrame

  • Data visualization

DataVis

Dependency

Miscelaneous algorithms from LDK library

About

A natively implemented Java rendering engine

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages