public abstract static class GralMng.ImplAccess extends java.lang.Object
Constructor and Description |
---|
ImplAccess(GralMng mng,
GralGridProperties props) |
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 GralTabbedPanel |
addTabbedPanel(java.lang.String namePanel,
GralPanelActivated_ifc user,
int property) |
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 GralPanelContent |
createCompositeBox(java.lang.String name)
Creates a box inside the current panel to hold some widgets.
|
protected abstract GralMenu |
createContextMenu(GralWidget widgg)
Creates the context menu for the given widget for right-mouse pressing.
|
abstract GralFileDialog_ifc |
createFileDialog() |
protected abstract GralPanelContent |
createGridPanel(java.lang.String namePanel,
GralColor backGround,
int xG,
int yG,
int xS,
int yS)
Creates an independent grid panel which is managed by this.
|
abstract void |
createImplWidget_Gthread(GralWidget widgg) |
protected abstract GralMenu |
createMenuBar(GralWindow windg)
Creates the menu bar for the given window.
|
protected abstract void |
createSubWindow(GralWindow windowGral) |
abstract GralWindow |
createWindow(java.lang.String name,
java.lang.String title,
int windProps)
Deprecated.
|
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() |
abstract java.lang.String |
getValueFromWidget(GralWidget widgd)
Deprecated.
|
protected GralWidget |
indexNameWidgets(java.lang.String name) |
protected void |
listVisiblePanels_add(GralTabbedPanel panel) |
protected GralPos |
pos() |
protected abstract void |
redrawWidget(java.lang.String sName)
Forces the redrawing for all set samples.
|
abstract boolean |
remove(GralPanelContent compositeBox) |
protected abstract void |
resizeWidget(GralWidget widgd,
int xSizeParent,
int ySizeParent)
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 GralUserAction |
userMainKeyAction() |
protected abstract GralMenu |
XXXaddPopupMenu(java.lang.String sName) |
public ImplAccess(GralMng mng, GralGridProperties props)
public abstract GralCurveView addCurveViewY(java.lang.String sName, int nrofXvalues, GralCurveView.CommonCurve common)
public abstract void addFocusAction(GralWidget widgetInfo, GralUserAction action, java.lang.String sCmdEnter, java.lang.String sCmdRelease)
public abstract GralWidget addFocusAction(java.lang.String sName, GralUserAction action, java.lang.String sCmdEnter, java.lang.String sCmdRelease)
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 GralTabbedPanel addTabbedPanel(java.lang.String namePanel, GralPanelActivated_ifc user, int property)
@Deprecated public abstract GralTable addTable(java.lang.String sName, int height, int[] columnWidths)
@Deprecated public abstract GralWidget addText(java.lang.String sText, char size, int color)
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.protected abstract GralPanelContent createCompositeBox(java.lang.String name)
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 GralFileDialog_ifc createFileDialog()
protected abstract GralPanelContent createGridPanel(java.lang.String namePanel, GralColor backGround, int xG, int yG, int xS, int yS)
namePanel
- backGround
- xG
- yG
- xS
- yS
- public abstract void createImplWidget_Gthread(GralWidget widgg)
protected abstract GralMenu createMenuBar(GralWindow windg)
GralWindow.getMenuBar()
whereby an existing
menu bar is stored in the GralWindow.menuBarGral
association.windg
- The windowprotected abstract void createSubWindow(GralWindow windowGral)
@Deprecated public abstract GralWindow createWindow(java.lang.String name, java.lang.String title, int windProps)
public abstract java.lang.Object getColorImpl(GralColor color)
color
- The Color.public abstract java.lang.Object getCurrentPanel()
@Deprecated public abstract java.lang.String getValueFromWidget(GralWidget widgd)
protected GralWidget indexNameWidgets(java.lang.String name)
protected void listVisiblePanels_add(GralTabbedPanel panel)
protected abstract void redrawWidget(java.lang.String sName)
sName
- The name of the widget.public abstract boolean remove(GralPanelContent compositeBox)
protected abstract void resizeWidget(GralWidget widgd, int xSizeParent, int ySizeParent)
widgd
- the widgetprotected java.lang.String sCurrPanel()
protected abstract void setSampleCurveViewY(java.lang.String sName, float[] values)
sName
- The registered namevalues
- The values.protected abstract boolean showContextMenuGthread(GralWidget widg)
widg
- The widget.protected GralUserAction userMainKeyAction()
protected abstract GralMenu XXXaddPopupMenu(java.lang.String sName)