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.ImplAccessGralWidgetBase.GralWidgComposite, GralWidgetBase.TimeOrderCreateImplWidgetGralWidget_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, 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 |
|---|
GralValueBar(GralPos currPos,
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.
|
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, setPrimaryWidgetOfPanel, setText, setTextColor, setToolTip, setToPanel, setValue, 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, waitgetContentInfo, getDataIx, getDataPath, setContentInfo, setDataIx, setDataPath, setLongValue, setText, setValuegralMng, pos, setFocusedpublic static final int version
protected float minRange
protected float maxRange
protected float[] fLevels
protected java.lang.String[] sColorLevels
public GralValueBar(GralPos currPos, 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)