public class SwtValueBar extends GralValueBar.GraphicImplAccess
Modifier and Type | Class and Description |
---|---|
class |
SwtValueBar.BarWidget |
Modifier and Type | Field and Description |
---|---|
(package private) org.eclipse.swt.graphics.Color |
black |
private org.eclipse.swt.graphics.Color[] |
colorBorder |
private SwtWidgetHelper |
wdgh
It contains the association to the swt widget (Control) and the
SwtMng
and implements some methods of GralWidgImpl_ifc which are delegate from this. |
protected SwtValueBar.BarWidget |
widgetSwt |
horizontal, ixColor, pix0line, pixLevel, pixvalue
chgBitsDerived, chgColorBack, chgColorLine, chgColorText, chgEditable, chgFloat, chgFocus, chgFont, chgIntg, chgInvisible, chgObjects, chgPos, chgText, chgVisible, chgVisibleInfo, pixBounds, wdgimpl, widgg
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.
|
protected void |
paintRoutine(SwtValueBar.BarWidget wdgs,
org.eclipse.swt.events.PaintEvent e) |
void |
removeWidgetImplementation()
Removes the graphical widget in the graphic.
|
void |
repaintGthread()
This method should be implemented in all Widget implementations of the adapter for the
underlying graphic system.
|
void |
setBorderAndColorsImpl(java.lang.String[] sColorLevels) |
void |
setBounds() |
void |
setBoundsPixel(int x,
int y,
int dx,
int dy) |
boolean |
setFocusGThread()
Sets the focus to the widget.
|
void |
setVisibleGThread(boolean bVisible)
Sets the implementation widget(s) visible state.
|
(package private) void |
stop() |
horizontal, ixColor, pix0line, pixvalue, setValue
acknChanged, actionShow, dyda, getActionChange, getChanged, gralWidgetFromImplData, setDragEnable, setDropEnable, setFocused, setTextChanged, setVisibleState, XXXfocusGained
private final SwtWidgetHelper wdgh
SwtMng
and implements some methods of GralWidgImpl_ifc
which are delegate from this.protected SwtValueBar.BarWidget widgetSwt
final org.eclipse.swt.graphics.Color black
private org.eclipse.swt.graphics.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 repaintGthread()
GralWidgImpl_ifc
#repaintRequ
public void setBorderAndColorsImpl(java.lang.String[] sColorLevels)
setBorderAndColorsImpl
in class GralValueBar.GraphicImplAccess
public java.lang.Object getWidgetImplementation()
GralWidgImpl_ifc
Component
.
GralWidget._wdgImpl
class
which should contain the references to that implementation widgets.public boolean setFocusGThread()
GralWidgImpl_ifc
GralMng_ifc#setFocus(GralWidget)
.public void setVisibleGThread(boolean bVisible)
GralWidgImpl_ifc
GralWidget.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 paintRoutine(SwtValueBar.BarWidget wdgs, org.eclipse.swt.events.PaintEvent e)
void stop()
public void setBoundsPixel(int x, int y, int dx, int dy)
public void removeWidgetImplementation()
GralWidgImpl_ifc
public GralRectangle getPixelPositionSize()