Package org.coordinatekit.crf.cli
Interface Banner.Product
- Enclosing class:
Banner
public static interface Banner.Product
A tool's product identity: the wordmark art in two sizes plus the accent color its name is
painted in. Public so a launcher in any package can build one; the implementation is a private
record, and
fromResources(java.lang.Class<?>, java.lang.String, java.lang.String, int, int, int) is the factory.-
Method Summary
Modifier and TypeMethodDescriptionintThe blue component of the accent color, 0-255.intThe green component of the accent color, 0-255.intThe red component of the accent color, 0-255.bigArt()The large wordmark art, one string per row.static Banner.ProductfromResources(Class<?> anchor, String bigResource, String smallResource, int accentRed, int accentGreen, int accentBlue) Loads a product from two classpath art resources.smallArt()The small wordmark art, one string per row.
-
Method Details
-
fromResources
static Banner.Product fromResources(Class<?> anchor, String bigResource, String smallResource, int accentRed, int accentGreen, int accentBlue) Loads a product from two classpath art resources.- Parameters:
anchor- the class whose package the resource names resolve againstbigResource- the resource name of the large wordmark art, relative toanchorsmallResource- the resource name of the small wordmark art, relative toanchoraccentRed- the red component of the accent color, 0-255accentGreen- the green component of the accent color, 0-255accentBlue- the blue component of the accent color, 0-255- Returns:
- the product backed by the loaded art
-
accentBlue
int accentBlue()The blue component of the accent color, 0-255.- Returns:
- the blue component of the accent color
-
accentGreen
int accentGreen()The green component of the accent color, 0-255.- Returns:
- the green component of the accent color
-
accentRed
int accentRed()The red component of the accent color, 0-255.- Returns:
- the red component of the accent color
-
bigArt
The large wordmark art, one string per row.- Returns:
- the large wordmark art
-
smallArt
The small wordmark art, one string per row.- Returns:
- the small wordmark art
-