rero.gui.background
public class BackgroundUtil extends Object
Field Summary | |
---|---|
static int | BG_DEFAULT |
static int | BG_IMAGE |
static int | BG_SOLID |
static int | BG_TRANSPARENT |
static int | STYLE_CENTER |
static int | STYLE_FILL |
static int | STYLE_STRETCHED |
static int | STYLE_TILE |
Method Summary | |
---|---|
static void | drawBackground(Component source, Graphics g, BackgroundProperties bgConfig) |
static void | drawImageCentered(Component source, Graphics g, BackgroundProperties properties) |
static void | drawImageFill(Component source, Graphics g, BackgroundProperties properties) draws the image to fill the specified component, hardware scaling is pretty damned fast but we still cache the scaled image anyways just to be safe |
static void | drawImageStretched(Component source, Graphics g, BackgroundProperties properties) |
static void | drawImageTiled(Component source, Graphics g, BackgroundProperties properties) |
static void | drawSafeBackground(Component source, Graphics g, BackgroundProperties bgProperties) |
static void | drawTintedTransparency(Component source, Graphics g, BackgroundProperties bgProperties) |
static Image | getManagedImage(Component source, String file, float tint, Color solid) gets a managed image with the specified alpha tinting and all that jazz |