public class GralLed extends GralWidget
Modifier and Type | Class and Description |
---|---|
class |
GralLed.GraphicImplAccess |
GralWidget.ActionChangeSelect, GralWidget.ConfigData, GralWidget.DynamicData, GralWidget.ImplAccess
GralWidget_ifc.ActionChange, GralWidget_ifc.ActionChangeWhen
Modifier and Type | Field and Description |
---|---|
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, name, repaintDelay, repaintDelayMax, sCmd, sFormat, sToolTip, sVersion, whatIs
Constructor and Description |
---|
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.
|
chgPos, clearShowParam, createImplWidget_Gthread, getActionChange, getActionChangeStrict, getActionDrag, getActionDrop, getActionFocused, getActionShow, getBackColor, getCfgElement, getCmd, getCmd, getContentIdent, 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, remove, repaint, repaint, requestNewValueForVariable, setActionChange, setActionFocused, setActionMouse, setActionShow, setBackColor, setBackgroundColor, setBoundsPixel, setCfgElement, setCmd, setContentIdent, setData, setDataIx, setDataPath, setDragEnable, setDropEnable, setEditable, setFocus, setFocus, setForegroundColor, setFormat, setHtmlHelp, setLineColor, setLongValue, setMinMax, setPrimaryWidgetOfPanel, setText, setTextColor, setToolTip, setValue, setValue, setVisible, setVisibleState, setVisibleStateWidget, specifyActionChange, specifyContextMenu, toString, XXXgetPixelPositionSize, XXXgetWidgetImplementation, XXXremoveWidgetImplementation, XXXrepaintGthread, XXXsetFocusGThread, XXXsetVisibleGThread
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getContentInfo, setToPanel
getContentInfo, setContentInfo
public 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
.
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)
colorInnerSelectable
setValue
in interface GralSetValue_ifc
setValue
in class GralWidget
value
- This routine may be overridden by some specialized widgets.GralWidget.setValue(float)
public void setValue(java.lang.Object[] values)
setValue
in interface GralSetValue_ifc
setValue
in class GralWidget
values
- This routine may be overridden by some specialized widgets.GralWidget.setValue(java.lang.Object[])