public abstract static class GralMng.ImplAccess
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
GralMng |
gralMng |
protected char |
sizeCharProperties |
protected java.lang.Thread |
threadGuiDispatch
The thread which runs all graphical activities.
|
Constructor and Description |
---|
ImplAccess(GralMng mng) |
Modifier and Type | Method and Description |
---|---|
abstract GralCurveView |
addCurveViewY(java.lang.String sName,
int nrofXvalues,
GralCurveView.CommonCurve common) |
abstract void |
addFocusAction(GralWidget widgetInfo,
GralUserAction action,
java.lang.String sCmdEnter,
java.lang.String sCmdRelease) |
abstract GralWidget |
addFocusAction(java.lang.String sName,
GralUserAction action,
java.lang.String sCmdEnter,
java.lang.String sCmdRelease) |
abstract GralHtmlBox |
addHtmlBox(java.lang.String name) |
abstract java.lang.Object |
addImage(java.lang.String sName,
java.io.InputStream imageStream,
int height,
int width,
java.lang.String sCmd) |
abstract GralWidget |
addSlider(java.lang.String sName,
GralUserAction action,
java.lang.String sShowMethod,
java.lang.String sDataPath) |
abstract GralTable |
addTable(java.lang.String sName,
int height,
int[] columnWidths)
Deprecated.
|
abstract GralWidget |
addText(java.lang.String sText,
char size,
int color)
Deprecated.
|
abstract GralRectangle |
calcWidgetPosAndSize(GralPos pos,
int widthwidgetNat,
int heigthWidgetNat)
Calculates the bounds of a widget with a given pos independent of this
pos() . |
protected abstract void |
closeImplGraphic() |
protected abstract GralMenu |
createContextMenu(GralWidget widgg)
Creates the context menu for the given widget for right-mouse pressing.
|
abstract GralFileDialog_ifc |
createFileDialog() |
abstract void |
createImplWidget_Gthread(GralWidget widgg)
This operation creates the proper implementation widgets due to the underlying Graphic system.
|
protected abstract GralMenu |
createMenuBar(GralWindow windg)
Creates the menu bar for the given window.
|
protected abstract void |
createSubWindow(GralWindow windowGral)
Deprecated.
|
abstract GralWindow |
createWindow(java.lang.String name,
java.lang.String title,
int windProps)
Deprecated.
|
protected abstract boolean |
dispatchOsEvents()
Calls the dispatch routine of the implementation graphic.
|
abstract void |
finishInit() |
abstract java.lang.Object |
getColorImpl(GralColor color)
Gets the color of the graphic implementation (swt.Color, swing.TODO)
Either the implementation color instance is stored already in the GralColor,
or it will be created, stored in GralColor and returned here.
|
abstract java.lang.Object |
getCurrentPanel()
Deprecated.
|
protected GralPanel_ifc |
getPanel(java.lang.String name) |
abstract java.lang.String |
getValueFromWidget(GralWidget widgd)
Deprecated.
|
protected abstract void |
graphicThreadSleep()
Forces the graphic thread to sleep and wait for any events.
|
protected java.util.Map<java.lang.String,GralWindow> |
idxWindows() |
protected GralWidgetBase |
indexNameWidgets(java.lang.String name) |
protected abstract void |
initGraphic()
This method should be implemented by the graphical implementation layer.
|
void |
listVisiblePanels_add(GralVisibleWidgets_ifc panel) |
protected GralPos |
pos() |
protected abstract void |
redrawWidget(java.lang.String sName)
Forces the redrawing for all set samples.
|
abstract boolean |
remove(GralPanel_ifc compositeBox)
Creates an independent grid panel which is managed by this.
|
abstract void |
reportContent(java.lang.Appendable out)
Reports all existing Widgets on implementation level.
|
protected abstract GralRectangle |
resizeWidget(GralWidget widgd,
GralRectangle parentPix)
Forces the resizing of the given widged.
|
protected java.lang.String |
sCurrPanel() |
protected abstract void |
setSampleCurveViewY(java.lang.String sName,
float[] values)
Adds a sampling value set.
|
protected abstract boolean |
showContextMenuGthread(GralWidget widg)
Shows the context menu of any widget independent of the internal right-mouse invocation.
|
protected void |
startThread() |
protected GralUserAction |
userMainKeyAction() |
abstract void |
wakeup()
This method should be implemented by the graphical base.
|
protected abstract GralMenu |
XXXaddPopupMenu(java.lang.String sName) |
protected abstract boolean |
XXXsetWindowsVisible(GralWindow_ifc window,
GralPos atPos)
Deprecated.
|
public GralMng gralMng
protected char sizeCharProperties
protected final java.lang.Thread threadGuiDispatch
public ImplAccess(GralMng mng)
protected GralPos pos()
protected java.util.Map<java.lang.String,GralWindow> idxWindows()
protected GralPanel_ifc getPanel(java.lang.String name)
protected java.lang.String sCurrPanel()
public void listVisiblePanels_add(GralVisibleWidgets_ifc panel)
@Deprecated public abstract java.lang.Object getCurrentPanel()
SwtMng.getWidgetsPanel(GralWidget)
.protected GralWidgetBase indexNameWidgets(java.lang.String name)
protected GralUserAction userMainKeyAction()
public abstract void createImplWidget_Gthread(GralWidget widgg)
SwtMng
.widgg
- The given instantiated GralWidget but without implementation instacne yet.protected abstract GralMenu createContextMenu(GralWidget widgg)
GralWidget.getContextMenu()
whereby an existing
context menu is stored in the GralWidget.contextMenu
association.
The widget have to be set to panel already, an implementation widget have to be existing.
It means GralWidget#getWidgetImplementation()
should be return that instance
where the menu is to be added.
This method is package protected because it should only be called internally.widg
- The widgetpublic abstract boolean remove(GralPanel_ifc compositeBox)
namePanel
- backGround
- xG
- yG
- xS
- yS
- protected abstract GralMenu createMenuBar(GralWindow windg)
GralWindow.getMenuBar()
whereby an existing
menu bar is stored in the GralWindow.menuBarGral
association.windg
- The window@Deprecated public abstract GralWindow createWindow(java.lang.String name, java.lang.String title, int windProps)
@Deprecated protected abstract void createSubWindow(GralWindow windowGral) throws java.io.IOException
java.io.IOException
@Deprecated public abstract GralWidget addText(java.lang.String sText, char size, int color)
public abstract GralHtmlBox addHtmlBox(java.lang.String name)
public abstract java.lang.Object addImage(java.lang.String sName, java.io.InputStream imageStream, int height, int width, java.lang.String sCmd)
public abstract GralWidget addSlider(java.lang.String sName, GralUserAction action, java.lang.String sShowMethod, java.lang.String sDataPath)
public abstract GralCurveView addCurveViewY(java.lang.String sName, int nrofXvalues, GralCurveView.CommonCurve common)
public abstract GralWidget addFocusAction(java.lang.String sName, GralUserAction action, java.lang.String sCmdEnter, java.lang.String sCmdRelease)
public abstract void addFocusAction(GralWidget widgetInfo, GralUserAction action, java.lang.String sCmdEnter, java.lang.String sCmdRelease)
@Deprecated public abstract GralTable addTable(java.lang.String sName, int height, int[] columnWidths)
public abstract GralFileDialog_ifc createFileDialog()
protected abstract GralMenu XXXaddPopupMenu(java.lang.String sName)
public abstract GralRectangle calcWidgetPosAndSize(GralPos pos, int widthwidgetNat, int heigthWidgetNat)
pos()
.
This method is a part of the implementing GralMng because the GralPos is not implemented for
any underlying graphic system and the #propertiesGuiSwt
are used.
This method is not intent to use from an application, only for implementing methods of Gral.
Therefore it isn't a member of the GralWindowMng_ifc
and GralMngBuild_ifc
It is possible to tune the bounds after calculation, for example to enhance the width if a text
is larger then the intended position.pos
- The position.widthwidgetNat
- The natural size of the component.heigthWidgetNat
- The natural size of the component.@Deprecated public abstract java.lang.String getValueFromWidget(GralWidget widgd)
public abstract java.lang.Object getColorImpl(GralColor color)
color
- The Color.protected abstract void redrawWidget(java.lang.String sName)
sName
- The name of the widget.protected abstract GralRectangle resizeWidget(GralWidget widgd, GralRectangle parentPix)
widgd
- the widgetprotected abstract void setSampleCurveViewY(java.lang.String sName, float[] values)
sName
- The registered namevalues
- The values.protected abstract boolean showContextMenuGthread(GralWidget widg)
widg
- The widget.public abstract void reportContent(java.lang.Appendable out) throws java.io.IOException
GralMng.reportGralContent(Appendable)
for the Gral level.out
- any output, maybe especially System.out
or LogMessage
java.io.IOException
public abstract void finishInit()
protected void startThread()
protected abstract void initGraphic()
GralMng.runGraphicThread()
. See SwtGraphicThread
.protected abstract void closeImplGraphic()
protected abstract boolean dispatchOsEvents()
protected abstract void graphicThreadSleep()
wakeup()
is called or this routine returns if the operation system wakes up the graphic thread.public abstract void wakeup()
@Deprecated protected abstract 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.