public class Util
extends java.lang.Object
Constructor and Description |
---|
Util() |
Modifier and Type | Method and Description |
---|---|
static javax.swing.JPanel |
createIcon(State state,
java.lang.String detailText)
Given a blaubot state, creates a Swing panel containing the state's icon.
|
static java.awt.image.BufferedImage |
getImageForState(State state)
Retrieves an image associated with this state.
|
public static java.awt.image.BufferedImage getImageForState(State state)
state
- the statepublic static javax.swing.JPanel createIcon(State state, java.lang.String detailText)
state
- the statedetailText
- a detail text like a uniqueDeviceId or anything related to describe this instance