org.kde.koala
public class KLed extends QWidget
UNKNOWN: An LED widget.
Field Summary | |
---|---|
static int | Circular |
static int | Flat
Displays a flat, round or sunken LED.
|
static int | Off
Status of the light is on/off. |
static int | On |
static int | Raised |
static int | Rectangular
Shades of the lamp. |
static int | Sunken |
Constructor Summary | |
---|---|
protected | KLed(Class dummy) |
KLed(QWidget parent, String name)
Constructs a green, round LED widget which will initially
be turned on. | |
KLed(QWidget parent) | |
KLed() | |
KLed(QColor col, QWidget parent, String name)
Constructor with the ledcolor, the parent widget, and the name.
| |
KLed(QColor col, QWidget parent) | |
KLed(QColor col) | |
KLed(QColor col, int state, int look, int shape, QWidget parent, String name)
Constructor with the ledcolor, ledstate, ledlook,
the parent widget, and the name.
| |
KLed(QColor col, int state, int look, int shape, QWidget parent) | |
KLed(QColor col, int state, int look, int shape) |
Method Summary | |
---|---|
String | className() |
QColor | color()
Returns the color of the widget |
int | darkFactor()
Returns the factor to darken the LED. |
void | dispose() Delete the wrapped C++ instance ahead of finalize() |
protected int | ensureRoundLed()
Compute LED width |
protected void | finalize() Deletes the wrapped C++ instance |
boolean | isDisposed() Has the wrapped C++ instance been deleted? |
int | look()
Returns the look of the widget. |
QMetaObject | metaObject() |
QSize | minimumSizeHint() |
void | off()
Sets the state of the widget to Off.
|
void | on()
Sets the state of the widget to On.
|
protected boolean | paintCachedPixmap()
Paint the cached antialiased pixmap corresponding to the state if any |
protected void | paintEvent(QPaintEvent arg1) |
protected void | paintFlat()
Paints a circular, flat LED. |
protected void | paintRect()
Paints a rectangular, flat LED. |
protected void | paintRectFrame(boolean raised)
Paints a rectangular LED, either raised or
sunken, depending on its argument. |
protected void | paintRound()
Paints a circular, raised LED. |
protected void | paintSunken()
Paints a circular, sunken LED. |
void | setColor(QColor color)
Set the color of the widget.
|
void | setDarkFactor(int darkfactor)
Sets the factor to darken the LED in OFF state.
|
void | setLook(int look)
Sets the look of the widget.
|
void | setShape(int s)
Set the shape of the LED to s. |
void | setState(int state)
Sets the state of the widget to On or Off.
|
int | shape() |
QSize | sizeHint() |
int | state()
Returns the current state of the widget (on/off). |
void | toggle()
Toggles the state of the led from Off to On or vice versa.
|
UNKNOWN: LED look.
UNKNOWN: LED on/off.
UNKNOWN: LED shape.
UNKNOWN: Constructs a green, round LED widget which will initially be turned on.
Parameters: col Initial color of the LED. parent Will be handed over to QWidget. name Will be handed over to QWidget.
UNKNOWN: Constructor.
Parameters: col Initial color of the LED. state Sets the State. look Sets the Look. shape Sets the Shape (rectangular or circular) parent Will be handed over to QWidget. name Will be handed over to QWidget.
UNKNOWN: Constructor.
See Also: Color
UNKNOWN: Returns LED color.
See Also: KLed
UNKNOWN: Returns dark factor.
UNKNOWN: Compute LED width
See Also: Look
UNKNOWN: Returns LED look.
UNKNOWN: Sets the state of the widget to Off.
UNKNOWN: Sets the state of the widget to On.
Returns: true if the pixmap was painted, false if it hasn't been created yet
UNKNOWN: Paint the cached antialiased pixmap corresponding to the state if any
UNKNOWN: Paints a circular, flat LED.
UNKNOWN: Paints a rectangular, flat LED.
UNKNOWN: Paints a rectangular LED, either raised or sunken, depending on its argument.
UNKNOWN: Paints a circular, raised LED.
UNKNOWN: Paints a circular, sunken LED.
Parameters: color New color of the LED.
See Also: Color
UNKNOWN: Sets the LED color.
Parameters: darkfactor sets the factor to darken the LED.
See Also: org.kde.qt.QColor
UNKNOWN: sets the factor to darken the LED.
Parameters: look New look of the LED.
See Also: Look
UNKNOWN: Sets LED look.
s.
UNKNOWN: Set the shape of the LED to s.
Parameters: state The LED state: on or off.
UNKNOWN: Set LED state.
See Also: State
UNKNOWN: Returns LED state.
UNKNOWN: Toggles the state of the led from Off to On or vice versa.