GralMng#get()
.
It is not necessary to have a aggregation to it.
The older idea was, have several GralMng for different implementations. Hence the interface.@Deprecated
public interface GralMng_ifc
GralMngBuild_ifc
.
This interface supports handling with all widgets in a GUI.
The widgets were selected by identifier or with their GralWidget
instance
whereby the implementation environment of a widget may be known. That implementation environment
is a implementor of this interface.Modifier and Type | Field and Description |
---|---|
static int |
cmdBackColor
Deprecated.
|
static int |
cmdClear
Deprecated.
|
static int |
cmdCloseWindow
Deprecated.
|
static int |
cmdColor
Deprecated.
|
static int |
cmdInsert
Deprecated.
|
static int |
cmdLineColor
Deprecated.
|
static int |
cmdRedraw
Deprecated.
|
static int |
cmdRemove
Deprecated.
|
static int |
cmdSelect
Deprecated.
|
static int |
cmdSet
Deprecated.
|
static int |
cmdSetWindowVisible
Deprecated.
|
static int |
cmdTextColor
Deprecated.
|
static int |
version
Deprecated.
The version history of this interface:
2012-08-20 Hartmut new:
getWidgetsPermanentlyUpdating() created but not used yet because
refreshCurvesFromVariable(VariableContainer_ifc) has the necessary functionality. |
Modifier and Type | Method and Description |
---|---|
void |
addText(java.lang.String widget,
java.lang.CharSequence text)
Deprecated.
Appends the text into a named widget.
|
boolean |
currThreadIsGraphic()
Deprecated.
Returns true if the current thread is the graphical thread.
|
int |
getColorValue(java.lang.String sName)
Deprecated.
Gets the value to the named color.
|
java.util.List<GralWidgetBase> |
getListCurrWidgets()
Deprecated.
|
java.lang.String |
getValue(java.lang.String sName)
Deprecated.
Gets the value from a widget.
|
java.lang.String |
getValueFromWidget(GralWidget widgetDescr)
Deprecated.
Gets the String value from a widget with given descriptor
Text field: The content written into, with all spaces.
|
java.util.concurrent.ConcurrentLinkedQueue<GralVisibleWidgets_ifc> |
getVisiblePanels()
Deprecated.
Gets the list of all panels which are visible yet and should be updated with values therefore.
|
GralWidgetBase |
getWidget(java.lang.String name)
Deprecated.
Searches a widget by name.
|
GralWidget |
getWidgetInFocus()
Deprecated.
|
java.util.List<GralWidget> |
getWidgetsInFocus()
Deprecated.
Returns a list of the last widgets in focus in there focus order.
|
GralVisibleWidgets_ifc |
getWidgetsPermanentlyUpdating()
Deprecated.
Gets a list of widgets which should be updated permanently because they store data in any time.
|
LogMessage |
log()
Deprecated.
|
void |
notifyFocus(GralWidget widgd)
Deprecated.
Notifies that this widget has the focus gotten.
|
GralGridProperties |
propertiesGui()
Deprecated.
|
void |
redrawWidget(java.lang.String sName)
Deprecated.
Forces the redrawing for all set samples.
|
void |
refreshCurvesFromVariable(VariableContainer_ifc container)
Deprecated.
refresh all curve views.
|
void |
resizeWidget(GralWidget widgd,
GralRectangle parentPix)
Deprecated.
Forces the resizing of the given widged.
|
void |
setBackColor(GralWidget widgetDescr,
int ix,
int colorValue)
Deprecated.
use {@link GralWidget#setBackColor(GralColor, int)
|
void |
setBackColor(java.lang.String name,
int ix,
int colorValue)
Deprecated.
Sets the color of background of the widget, if possible.
|
void |
setFocus(GralWidget widgd)
Deprecated.
Sets the focus to the designated widget.
|
void |
setLed(GralWidget widgetDescr,
int colorBorder,
int colorInner)
Deprecated.
|
void |
setLineColor(GralWidget widgetDescr,
int ix,
int colorValue)
Deprecated.
use {@link GralWidget#setLineColor(GralColor, int)
|
void |
setSampleCurveViewY(java.lang.String sName,
float[] values)
Deprecated.
Adds a sampling value set.
|
void |
setText(java.lang.String widget,
java.lang.CharSequence text)
Deprecated.
Sets the text into a named widget.
|
void |
setTextColor(GralWidget widgetDescr,
int ix,
int colorValue)
Deprecated.
use {@link GralWidget#setTextColor(GralColor)
|
void |
setValue(java.lang.String widget,
java.lang.Object visibleInfo,
java.lang.Object userData)
Deprecated.
Sets the text into a named widget.
|
void |
writeLog(int msgId,
java.lang.Exception exc)
Deprecated.
Writes a log message instead throwing an exception or writing on standard output.
|
boolean |
XXXsetWindowsVisible(GralWindow_ifc window,
GralPos atPos)
Deprecated.
|
static final int version
getWidgetsPermanentlyUpdating()
created but not used yet because
refreshCurvesFromVariable(VariableContainer_ifc)
has the necessary functionality.
#setInfoDelayed(GralWidgetChangeRequ, int)
cmdClear
used to clear a whole swt.Table, commonly using: clear a content of widget.
cmdInsert
etc now here.
#setInfo(GralWidget, int, int, Object)
as adequate method
to {@link #insertInfo(String, int, String) but without symbolic addressing of the widget.
It calls the internal method to insert an information in a queue for the graphical thread.
It is thread-safe.
static final int cmdInsert
static final int cmdSet
static final int cmdClear
static final int cmdBackColor
static final int cmdLineColor
static final int cmdTextColor
static final int cmdColor
static final int cmdRedraw
static final int cmdRemove
static final int cmdSelect
static final int cmdSetWindowVisible
static final int cmdCloseWindow
GralGridProperties propertiesGui()
LogMessage log()
GralWidgetBase getWidget(java.lang.String name)
name
- The name which is assigned on build.@Deprecated java.util.List<GralWidgetBase> getListCurrWidgets()
void setBackColor(java.lang.String name, int ix, int colorValue)
name
- The name of the widget, which was given by the add...()-OperationcolorValue
- blue, green and red in the bits 23..16, 15..8 and 7..0.
opaque in bits 31..24 if possible.void setText(java.lang.String widget, java.lang.CharSequence text)
widget
- text
- The text is not stored by reference, it can be changed after them.void setValue(java.lang.String widget, java.lang.Object visibleInfo, java.lang.Object userData)
widget
- text
- The text is not stored by reference, it can be changed after them.void addText(java.lang.String widget, java.lang.CharSequence text)
widget
- text
- The text is not stored by reference, it can be changed after them.@Deprecated void setBackColor(GralWidget widgetDescr, int ix, int colorValue)
name
- The name of the widget, which was given by the add...()-OperationcolorValue
- blue, green and red in the bits 23..16, 15..8 and 7..0.
opaque in bits 31..24 if possible.@Deprecated void setLineColor(GralWidget widgetDescr, int ix, int colorValue)
name
- The name of the widget, which was given by the add...()-OperationcolorValue
- blue, green and red in the bits 23..16, 15..8 and 7..0.
opaque in bits 31..24 if possible.@Deprecated void setTextColor(GralWidget widgetDescr, int ix, int colorValue)
name
- The name of the widget, which was given by the add...()-OperationcolorValue
- blue, green and red in the bits 23..16, 15..8 and 7..0.
opaque in bits 31..24 if possible.@Deprecated void setLed(GralWidget widgetDescr, int colorBorder, int colorInner)
GralLed.setColor(GralColor, GralColor)
.widgetDescr
- colorBorder
- colorInner
- void setSampleCurveViewY(java.lang.String sName, float[] values)
sName
- The registered namevalues
- The values.void redrawWidget(java.lang.String sName)
sName
- The name of the widget.void resizeWidget(GralWidget widgd, GralRectangle parentPix)
widgd
- the widget@Deprecated boolean XXXsetWindowsVisible(GralWindow_ifc window, GralPos atPos)
org.vishia.gral.ifc.GralMngBuild_ifc#createWindow(String, boolean)
in the build phase of the gui. It can be hidden because it is not necessary to show and operate with them.
In a adequate phase of operate it can be shown and focused.
GralPos#panel
. To get a position instance,
you can set a position invoking
GralMngBuild_ifc.selectPanel(String)
org.vishia.gral.ifc.GralMngBuild_ifc#setPosition(float, float, float, float, int, char)
GralMngBuild_ifc.getPositionInPanel()
.
GralPos.x
etc.
It is possible too to change the Panel which relates to the position. Then the grid managing instance
have to be known via the GralMngBuild_ifc
to select a panel.
The panels may be moved or resized. With the knowledge of the relative position of the window in respect to a panel
of the parent window, the window can be placed onto a proper position of the whole display.window
- the instance of the window wrapper.atPos
- If null then hide the window. If not null then show the window.
The position and size of the window is given related to any panel of any other window.int getColorValue(java.lang.String sName)
sName
- supported: red, green, blue, yellowjava.lang.String getValue(java.lang.String sName)
sName
- The name of the widget. The widget will be searched per name.java.lang.String getValueFromWidget(GralWidget widgetDescr)
widgetDescr
- The widget.void setFocus(GralWidget widgd)
widgd
- void notifyFocus(GralWidget widgd)
widgd
- The widget descriptorGralWidget getWidgetInFocus()
java.util.List<GralWidget> getWidgetsInFocus()
java.util.concurrent.ConcurrentLinkedQueue<GralVisibleWidgets_ifc> getVisiblePanels()
void refreshCurvesFromVariable(VariableContainer_ifc container)
GralVisibleWidgets_ifc getWidgetsPermanentlyUpdating()
boolean currThreadIsGraphic()
org.vishia.gral.base.GralGraphicThread#runGraphicThread()
.void writeLog(int msgId, java.lang.Exception exc)
msgId
- The ident number for dispatching and evaluation.exc
- The catched exception.