public class GralValueBar extends GralWidget implements GralSetValue_ifc
| Modifier and Type | Class and Description |
|---|---|
static class |
GralValueBar.ColorValues |
class |
GralValueBar.GraphicImplAccess |
GralWidget.ActionChangeSelect, GralWidget.ConfigData, GralWidget.DynamicData, GralWidget.ImplAccessGralWidget_ifc.ActionChange, GralWidget_ifc.ActionChangeWhen| Modifier and Type | Field and Description |
|---|---|
protected float[] |
fLevels |
protected float |
maxRange |
protected float |
minRange |
protected java.lang.String[] |
sColorLevels |
static int |
version
Version, history and license.
|
_wdgImpl, bEditable, bHasFocus, bShouldInitialize, buildMng, bVisibleState, cfg, contextMenu, dateUser, dyda, htmlHelp, itsMng, lastTimeSetVisible, name, repaintDelay, repaintDelayMax, sCmd, sFormat, sToolTip, sVersion, whatIs| Constructor and Description |
|---|
GralValueBar(java.lang.String name) |
| Modifier and Type | Method and Description |
|---|---|
void |
setBorderAndColors(java.lang.String[] sParam)
Associates values to level and color.
|
void |
setMinMax(float minValue,
float maxValue)
Sets the border of the value range for showing.
|
void |
setValue(float value)
Sets the bar and its color.
|
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, setPanelMng, setPrimaryWidgetOfPanel, setText, setTextColor, setToolTip, setToPanel, setValue, setValue, setValue, setVisible, setVisibleState, setVisibleStateWidget, specifyActionChange, specifyContextMenu, stop, toString, XXXgetPixelPositionSize, XXXgetWidgetImplementation, XXXremoveWidgetImplementation, XXXrepaintGthread, XXXsetFocusGThread, XXXsetVisibleGThreadclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetContentInfo, getDataIx, getDataPath, setContentInfo, setDataIx, setDataPath, setLongValue, setText, setValuepublic static final int version
protected float minRange
protected float maxRange
protected float[] fLevels
protected java.lang.String[] sColorLevels
public GralValueBar(java.lang.String name)
public void setMinMax(float minValue, float maxValue)
GralWidgetsetMinMax in interface GralSetValue_ifcsetMinMax in class GralWidgetpublic void setBorderAndColors(java.lang.String[] sParam)
String param = "-100,red,0,green,100,orange,200";
String[] sParam = param.tokenize(",");sParam - Even number of Strings.public void setValue(float value)
setValue in interface GralSetValue_ifcsetValue in class GralWidgetvalue - This routine may be overridden by some specialized widgets.GralWidget.setValue(float)