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.ImplAccess
GralWidget_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, 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, 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, setPrimaryWidgetOfPanel, setText, setTextColor, setToolTip, setValue, 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, getDataIx, getDataPath, setContentInfo, setDataIx, setDataPath, setLongValue, setText, setValue
getContentInfo, setToPanel
protected float[] fLevels
protected float maxRange
protected float minRange
protected java.lang.String[] sColorLevels
public static final int version
public GralValueBar(java.lang.String name)
public 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 setMinMax(float minValue, float maxValue)
GralWidget
setMinMax
in interface GralSetValue_ifc
setMinMax
in class GralWidget
public void setValue(float value)
setValue
in interface GralSetValue_ifc
setValue
in class GralWidget
value
- This routine may be overridden by some specialized widgets.GralWidget.setValue(float)