public class SwtLed extends GralLed.GraphicImplAccess
Modifier and Type | Class and Description |
---|---|
private class |
SwtLed.SwtLedImpl |
Modifier and Type | Field and Description |
---|---|
(package private) Color |
borderColor |
(package private) Color |
innerColor |
(package private) SwtMng |
mng |
(package private) boolean |
round |
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. |
private SwtLed.SwtLedImpl |
widgSwt
Version and history
2011-12-03 chg now it is the implementation class for the new class
GralLed . |
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 |
---|
SwtLed(GralLed widgg,
SwtMng mng) |
SwtLed(java.lang.String name,
SwtMng mng) |
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.
|
void |
removeWidgetImplementation()
Removes the graphical widget in the graphic.
|
void |
setBoundsPixel(int x,
int y,
int dx,
int dy)
Set the bounds of the implementation widget.
|
private void |
setColors()
Called in the paint routine, corrects the colors for SWT depending on
GralWidget.DynamicData#backColor
and GralWidget.DynamicData#lineColor . |
boolean |
setFocusGThread()
Sets the focus to the widget.
|
void |
setVisibleGThread(boolean bVisible)
Sets the implementation widget(s) visible state.
|
void |
updateValuesForAction()
This operation should be called before any action is invoked in the user space.
|
GralColor |
XXXsetForegroundColor(GralColor color) |
xxxdyda
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 SwtLed.SwtLedImpl widgSwt
GralLed
.
It is the concept of specialized GralWidget
.
The ctor creates the swt Control.
The content before is the inner class SwtLed.SwtLedImpl
up to now.
private final SwtWidgetHelper wdgh
SwtMng
and implements some methods of GralWidgImplAccess_ifc
which are delegate from this.Color borderColor
Color innerColor
final SwtMng mng
boolean round
SwtLed(java.lang.String name, SwtMng mng)
private void setColors()
GralWidget.DynamicData#backColor
and GralWidget.DynamicData#lineColor
.
public GralRectangle getPixelPositionSize()
public void removeWidgetImplementation()
GralWidgImplAccess_ifc
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.public void redrawGthread()
GralWidgImplAccess_ifc
#repaintRequ
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 void setBoundsPixel(int x, int y, int dx, int dy)
GralWidgImplAccess_ifc
public void updateValuesForAction()
GralWidgImplAccess_ifc