public class SwtValueBar extends GralValueBar.GraphicImplAccess
Modifier and Type | Class and Description |
---|---|
private class |
SwtValueBar.SwtBarCanvas |
Modifier and Type | Field and Description |
---|---|
(package private) Color |
black |
private Color[] |
colorBorder |
private SwtWidgetHelper |
wdgh
It contains the association to the swt widget (Control) and the
SwtMng
and implements some methods of GralWidgImplAccess_ifc which are delegate from this. |
protected SwtValueBar.SwtBarCanvas |
widgetSwt |
horizontal, ixColor, pix0line, pixLevel, pixvalue
bRedrawOnlyDynamics, chgBitsDerived, chgColorBack, chgColorLine, chgColorText, chgCurrTab, chgEditable, chgFloat, chgFocus, chgFont, chgIntg, chgInvisible, chgObjects, chgPos, chgText, chgVisible, chgVisibleInfo, mngImpl, pixBounds, wdgimpl, widgg
version
Constructor and Description |
---|
SwtValueBar(GralValueBar widgg,
SwtMng mng)
Creates a value bar.
|
Modifier and Type | Method and Description |
---|---|
GralRectangle |
getPixelPositionSize() |
java.lang.Object |
getWidgetImplementation()
Returns the implementation class of the widget.
|
void |
redrawGthread()
This method should be implemented in all Widget implementations of the adapter for the
underlying graphic system.
|
protected void |
redrawRoutine(SwtValueBar.SwtBarCanvas wdgs,
PaintEvent e) |
void |
removeWidgetImplementation()
Removes the graphical widget in the graphic.
|
void |
setBorderAndColorsImpl(java.lang.String[] sColorLevels) |
void |
setBounds() |
void |
setBoundsPixel(int x,
int y,
int dx,
int dy)
Set the bounds of the implementation widget.
|
boolean |
setFocusGThread()
Sets the focus to the widget.
|
void |
setVisibleGThread(boolean bVisible)
Sets the implementation widget(s) visible state.
|
(package private) void |
stop() |
void |
updateValuesForAction()
This operation should be called before any action is invoked in the user space.
|
horizontal, ixColor, pix0line, pixvalue, setValue
acknChanged, actionShow, dyda, getActionChange, getChanged, gralMng, gralWidgetFromImplData, redrawOnlyDynamics, setDragEnable, setDropEnable, setPosBounds, setTextChanged, setVisibleState, XXXfocusGained
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
setPosBounds
private final SwtWidgetHelper wdgh
SwtMng
and implements some methods of GralWidgImplAccess_ifc
which are delegate from this.protected SwtValueBar.SwtBarCanvas widgetSwt
final Color black
private Color[] colorBorder
public SwtValueBar(GralValueBar widgg, SwtMng mng)
mng
- The Gui-panel-manager contains information about the graphic frame and properties.size
- The size of text in button, use 'A' or 'B' for small - boldpublic void setBounds()
public void redrawGthread()
GralWidgImplAccess_ifc
#repaintRequ
public void setBorderAndColorsImpl(java.lang.String[] sColorLevels)
setBorderAndColorsImpl
in class GralValueBar.GraphicImplAccess
public java.lang.Object getWidgetImplementation()
GralWidgImplAccess_ifc
Component
.
GralWidget._wdgImpl
class
which should contain the references to that implementation widgets.getWidgetImplementation
in interface GralWidgImplAccess_ifc
getWidgetImplementation
in class GralWidget.ImplAccess
public boolean setFocusGThread()
GralWidgImplAccess_ifc
GralMng_ifc#setFocus(GralWidget)
.public void setVisibleGThread(boolean bVisible)
GralWidgImplAccess_ifc
GralWidgetBase.bVisibleState
too. Therewith it is able to quest GralWidget.isVisible()
in any thread.bVisible
- true then the widget should be visible, false it is set to invisible.protected void redrawRoutine(SwtValueBar.SwtBarCanvas wdgs, PaintEvent e)
void stop()
public void setBoundsPixel(int x, int y, int dx, int dy)
GralWidgImplAccess_ifc
public void removeWidgetImplementation()
GralWidgImplAccess_ifc
public GralRectangle getPixelPositionSize()
public void updateValuesForAction()
GralWidgImplAccess_ifc