public class GralLed extends GralWidget
| Modifier and Type | Class and Description |
|---|---|
class |
GralLed.GraphicImplAccess |
GralWidget.ActionChangeSelect, GralWidget.ConfigData, GralWidget.DynamicData, GralWidget.ImplAccessGralWidget_ifc.ActionChange, GralWidget_ifc.ActionChangeWhen| Modifier and Type | Field and Description |
|---|---|
private GralColor[] |
colorBorderSelectable
Some given colors which can be selected by value calling
setValue(Object[])
or setValue(float). |
private GralColor[] |
colorInnerSelectable
Some given colors which can be selected by value calling
setValue(Object[])
or setValue(float). |
static int |
version
Version and history
2016-11-22 bugfix:
setValue(Object[]) with negative input causes an exception. |
_wdgImpl, bEditable, bHasFocus, bShouldInitialize, buildMng, bVisibleState, cfg, contextMenu, dateUser, dyda, htmlHelp, itsMng, lastTimeSetVisible, name, repaintDelay, repaintDelayMax, sCmd, sFormat, sToolTip, sVersion, whatIs| Modifier | Constructor and Description |
|---|---|
|
GralLed(java.lang.String name) |
protected |
GralLed(java.lang.String name,
GralMng mng)
Deprecated.
use
GralLed(String) |
| Modifier and Type | Method and Description |
|---|---|
void |
setColor(GralColor colorBorder,
GralColor colorInner)
Sets the LED's color.
|
void |
setValue(float value)
Sets the color both inner and border with the given value
using the
colorInnerSelectable |
void |
setValue(java.lang.Object[] values)
This method is invoked if more as one variable is assigned to the widget.
|
chgPos, clearShowParam, createImplWidget_Gthread, getActionChange, getActionChangeStrict, getActionDrag, getActionDrop, getActionFocused, getActionShow, getBackColor, getCfgElement, getCmd, getCmd, getContentIdent, getContentInfo, getContextMenu, getData, getDataIx, getDataPath, getDataPath, getFloatValue, getFormat, getGralWidget, getHtmlHelp, getImpl, getItsPanel, getLongValue, getName, getShowMethod, getShowParam, getsToolTip, getText, getValue, getVariable, getVariableFromContentInfo, gralMng, isChanged, isEditable, isGraphicDisposed, isInFocus, isNotEditableOrShouldInitialize, isVisible, pos, refreshFromVariable, refreshFromVariable, registerWidget, remove, repaint, repaint, requestNewValueForVariable, setActionChange, setActionFocused, setActionMouse, setActionShow, setBackColor, setBackgroundColor, setBoundsPixel, setCfgElement, setCmd, setContentIdent, setContentInfo, setData, setDataIx, setDataPath, setDragEnable, setDropEnable, setEditable, setFocus, setFocus, setForegroundColor, setFormat, setHtmlHelp, setLineColor, setLongValue, setMinMax, setPanelMng, setPrimaryWidgetOfPanel, setText, setTextColor, setToolTip, setToPanel, setValue, setValue, setVisible, setVisibleState, setVisibleStateWidget, specifyActionChange, specifyContextMenu, stop, toString, XXXgetPixelPositionSize, XXXgetWidgetImplementation, XXXremoveWidgetImplementation, XXXrepaintGthread, XXXsetFocusGThread, XXXsetVisibleGThreadpublic static final int version
setValue(Object[]) with negative input causes an exception. Now a 3. color magenta was shown to see that failure.
#colorBorder, colorBorderSelectable, setValue(Object[])
GralWidget.
private final GralColor[] colorBorderSelectable
setValue(Object[])
or setValue(float).private final GralColor[] colorInnerSelectable
setValue(Object[])
or setValue(float).protected GralLed(java.lang.String name, GralMng mng)
GralLed(String)name - mng - public GralLed(java.lang.String name)
public void setColor(GralColor colorBorder, GralColor colorInner)
setValue(Object[]) is independent from this method.colorBorder - assign to GralWidget.setLineColor(GralColor, int) or GralWidget.DynamicData.lineColor.colorInner - assign to GralWidget.setBackColor(GralColor, int) GralWidget.DynamicData.backColor.public void setValue(float value)
colorInnerSelectablesetValue in interface GralSetValue_ifcsetValue in class GralWidgetvalue - This routine may be overridden by some specialized widgets.GralWidget.setValue(float)public void setValue(java.lang.Object[] values)
setValue in interface GralSetValue_ifcsetValue in class GralWidgetvalues - This routine may be overridden by some specialized widgets.GralWidget.setValue(java.lang.Object[])