public final class LogImages
extends java.lang.Object
To support a consistent application style the log viewer does not have it's own image resources. Instead the application is required to register the necessary images prior to the first log viewer display using this registry class.
| Constructor and Description |
|---|
LogImages() |
| Modifier and Type | Method and Description |
|---|---|
static javafx.scene.image.Image |
getImage(java.util.logging.Level level)
Get the largest image registered for a specific level.
|
static javafx.scene.image.Image |
getImage(java.util.logging.Level level,
double space)
Get the registered image for a specific level and space requirement.
|
static java.util.List<javafx.scene.image.Image> |
getImages(java.util.logging.Level level)
Get all images registered for a specific level.
|
static void |
registerImage(java.util.logging.Level level,
javafx.scene.image.Image image)
Register a level image.
|
public static void registerImage(java.util.logging.Level level,
javafx.scene.image.Image image)
level - The level to register the image for.image - The image to register.public static java.util.List<javafx.scene.image.Image> getImages(java.util.logging.Level level)
The resulting list ordered largest to smallest according to their image's space.
level - The level to get the images for.public static javafx.scene.image.Image getImage(java.util.logging.Level level)
level - The level to get the image for.null if no image has been registered
yet.public static javafx.scene.image.Image getImage(java.util.logging.Level level,
double space)
level - The level to get the image for.space - The space requirement to match.null if no image has been registered
yet.