public class GralLed extends GralWidget
| Modifier and Type | Class and Description |
|---|---|
class |
GralLed.GraphicImplAccess |
GralWidget.ActionChangeSelect, GralWidget.ConfigData, GralWidget.DynamicData, GralWidget.ImplAccessGralWidgetBase.GralWidgComposite, GralWidgetBase.TimeOrderCreateImplWidgetGralWidget_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, bShouldInitialize, cfg, contextMenu, dateUser, dyda, htmlHelp, lastTimeSetVisible, redrawDelayMax, redrawtDelay, sCmd, sFormat, showWidgetInfo, sToolTip, sVersion, whatIs, XXXbuildMng_cdata, _wdgPos, bVisibleState, gralMng, name, pixSize| Constructor and Description |
|---|
GralLed(GralPos currPos,
java.lang.String sPosName) |
GralLed(GralPos currPos,
java.lang.String sPosName,
GralMng mng) |
GralLed(java.lang.String name) |
| 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.
|
clearShowParam, createImplWidget_Gthread, getActionChange, getActionChangeStrict, getActionDrag, getActionDrop, getActionFocused, getActionShow, getBackColor, getCfgElement, getCmd, getCmd, getContentIdent, getContentInfo, getContextMenu, getData, getDataIx, getDataPath, getDataPath, getFloatValue, getFocusedWidget, getFormat, getGralWidget, getHtmlHelp, getImplAccess, getImplWidget, getItsPanel, getLongValue, getName, getShowMethod, getShowParam, getsToolTip, getText, getValue, getVariable, getVariableFromContentInfo, isChanged, isEditable, isGraphicDisposed, isInFocus, isNotEditableOrShouldInitialize, isVisible, redraw, redraw, redraw, redraw1, redrawOnlyDynamics, refreshFromVariable, refreshFromVariable, removeImplWidget_Gthread, requestNewValueForVariable, setActionChange, setActionFocused, setActionMouse, setActionShow, setBackColor, setBackgroundColor, setBoundsPixel, setCfgElement, setCmd, setContentIdent, setContentInfo, setData, setDataIx, setDataPath, setDragEnable, setDropEnable, setEditable, setFocus, setFocus, setFocusedWidget, setForegroundColor, setFormat, setHtmlHelp, setLineColor, setLongValue, setMinMax, setPrimaryWidgetOfPanel, setText, setTextColor, setToolTip, setToPanel, setValue, setValue, setVariable, setVisible, specifyActionChange, specifyContextMenu, stop, toString, toString, XXXgetWidgetImplementation, XXXremoveWidgetImplementation, XXXrepaintGthread, XXXsetFocusGThreadcheckImplWidgetCreation, createImplWidget, gralMng, hasFocus, pos, remove, resizePostPreparation, setFocusedclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgralMng, pos, setFocusedpublic 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).public GralLed(GralPos currPos, java.lang.String sPosName)
name - gralMng - 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[])