Synthia
Generic and flexible data structure generator
examples.util.Utilities Class Reference

Detailed Description

Object providing a few utility methods to simplify the examples in this project.

Definition at line 30 of file Utilities.java.

Static Public Member Functions

static void print (PrintStream ps, Object o)
 Prints an object to a print stream. More...
 
static void println (PrintStream ps, Object o)
 Calls print(PrintStream, Object) and appends a new line. More...
 
static String colorGradient (float fraction)
 Creates a simple 5-color gradient. More...
 

Member Function Documentation

◆ colorGradient()

static String examples.util.Utilities.colorGradient ( float  fraction)
static

Creates a simple 5-color gradient.

Parameters
xA fraction between 0 and 1
Returns
A color associated to the fraction, represented as an RGB color in hexadecimal.

Definition at line 123 of file Utilities.java.

◆ print()

static void examples.util.Utilities.print ( PrintStream  ps,
Object  o 
)
static

Prints an object to a print stream.

Parameters
psThe print stream to print to
oThe object

Definition at line 37 of file Utilities.java.

◆ println()

static void examples.util.Utilities.println ( PrintStream  ps,
Object  o 
)
static

Calls print(PrintStream, Object) and appends a new line.

Parameters
psThe print stream to print to
oThe object

Definition at line 111 of file Utilities.java.


The documentation for this class was generated from the following file: