Class Styler

java.lang.Object
org.jline.style.Styler

public class Styler extends Object
Style facade that provides static utility methods for working with styles.

The Styler class is the main entry point for the JLine style system. It provides access to the global StyleSource and factory methods for creating StyleResolvers, StyleFactorys, and StyleBundle proxies.

Typical usage patterns include:

 // Configure a global style source
 Styler.setSource(new MemoryStyleSource());

 // Create a style resolver for a specific group
 StyleResolver resolver = Styler.resolver("mygroup");

 // Create a style factory for a specific group
 StyleFactory factory = Styler.factory("mygroup");

 // Create a style bundle proxy
 MyStyles styles = Styler.bundle(MyStyles.class);
 
Since:
3.4
See Also: