public class SwtLed extends GralLed.GraphicImplAccess
| Modifier and Type | Class and Description |
|---|---|
private class |
SwtLed.SwtLedImpl |
| Modifier and Type | Field and Description |
|---|---|
(package private) org.eclipse.swt.graphics.Color |
borderColor |
(package private) org.eclipse.swt.graphics.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 GralWidgImpl_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. |
chgBitsDerived, chgColorBack, chgColorLine, chgColorText, chgEditable, chgFloat, chgFocus, chgFont, chgIntg, chgInvisible, chgObjects, chgPos, chgText, chgVisible, chgVisibleInfo, pixBounds, wdgimpl, widgg| 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 |
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 |
setBoundsPixel(int x,
int y,
int dx,
int dy) |
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.
|
GralColor |
XXXsetForegroundColor(GralColor color) |
dydaacknChanged, actionShow, getActionChange, getChanged, gralWidgetFromImplData, setDragEnable, setDropEnable, setFocused, setTextChanged, setVisibleState, XXXfocusGainedprivate 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 GralWidgImpl_ifc which are delegate from this.org.eclipse.swt.graphics.Color borderColor
org.eclipse.swt.graphics.Color innerColor
boolean round
private void setColors()
GralWidget.DynamicData#backColor
and GralWidget.DynamicData#lineColor.
public GralRectangle getPixelPositionSize()
public void removeWidgetImplementation()
GralWidgImpl_ifcpublic boolean setFocusGThread()
GralWidgImpl_ifcGralMng_ifc#setFocus(GralWidget).public void setVisibleGThread(boolean bVisible)
GralWidgImpl_ifcGralWidget.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 repaintGthread()
GralWidgImpl_ifc#repaintRequpublic java.lang.Object getWidgetImplementation()
GralWidgImpl_ifcComponent.
GralWidget._wdgImpl class
which should contain the references to that implementation widgets.public void setBoundsPixel(int x, int y, int dx, int dy)
public GralColor XXXsetForegroundColor(GralColor color)