public final class RadioIconFactory
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static RadioIconButton |
constructButton(java.awt.Image clicked,
java.awt.Image unclicked,
int width,
int height,
java.lang.String command,
long buttonDelay)
Construct a normal button
|
static RadioIconCloud |
constructCloud(int width,
int height,
int transparency,
int delay)
Constructs a dynamic cloudy filter
|
static RadioIconGif |
constructGif(java.io.File file,
int width,
int height)
Create a new GIF icon
|
static RadioIconImage |
constructImage(java.awt.Image image,
int width,
int height)
Creates a static image RadioIconImage
|
static RadioIconSwitch |
constructSwitch(java.awt.Image on,
java.awt.Image off,
int width,
int height,
java.lang.String commandOn,
java.lang.String commandOff)
Gets a new RadioIconSwitch
|
public static RadioIconSwitch constructSwitch(java.awt.Image on, java.awt.Image off, int width, int height, java.lang.String commandOn, java.lang.String commandOff)
on - The image when the switch is onoff - The image when the switch is offwidth - The width in pixels of the switchheight - The height in pixels of the switchcommandOn - A command that is ran when the switch is turned oncommandOff - A command that is ran when the switch is turned offpublic static RadioIconImage constructImage(java.awt.Image image, int width, int height)
image - The image to showwidth - The new widthheight - The new heightpublic static RadioIconButton constructButton(java.awt.Image clicked, java.awt.Image unclicked, int width, int height, java.lang.String command, long buttonDelay)
clicked - The clicked imageunclicked - The unclicked imagewidth - Width of the buttonheight - Height of the buttoncommand - Command that will be executed when pressedbuttonDelay - How long the button stays depressedpublic static RadioIconGif constructGif(java.io.File file, int width, int height)
file - The gif filewidth - Width of the gifheight - Height of the gifpublic static RadioIconCloud constructCloud(int width, int height, int transparency, int delay)
width - Width of the cloud effectheight - Height of the cloud effecttransparency - Transparency of the clouddelay - How fast it updates in milliseconds, do not make this too fast or the client will timeout