public class GralMng extends java.lang.Object implements GralMngBuild_ifc, GralMng_ifc
GralMng
is a common approach to work with graphical interface simply.
The inner class GralMng.ImplAccess
is implemented by the several graphic-system-supporting classes.
Modifier and Type | Class and Description |
---|---|
protected class |
GralMng.FileSelectInfo
This class is used for a selection field for file names and paths.
|
class |
GralMng.GralMngFocusListener
This standard Gral focus listener is the base class for the common implementation layer focus listener.
|
static class |
GralMng.ImplAccess
This class is used only for the implementation level of the graphic.
|
class |
GralMng.InternalPublic
This inner class is public only because the implementation uses it.
|
(package private) static class |
GralMng.PosThreadSafe |
Modifier and Type | Field and Description |
---|---|
GralMng.InternalPublic |
_impl
Implementation specific fields.
|
GralUserAction |
actionDesignEditField
Action to edit the properties of one widget in the graphic.
|
(package private) GralUserAction |
actionFileSelect |
GralUserAction |
actionHelp |
GralPanelActivated_ifc |
actionPanelActivate |
GralUserAction |
actionReadPanelCfg
Action to edit the properties of one widget in the graphic.
|
(package private) GralUserAction |
actionShowWidgetInfos |
protected GralMngApplAdapter_ifc |
applAdapter |
protected boolean |
bBelow
True if the next element should be placed below the last.
|
protected boolean |
bDesignerIsInitialized
Some actions may be processed by a user implementation.
|
boolean |
bDesignMode |
protected boolean |
bRigth
True if the next element should be placed below the last.
|
(package private) GralCfgBuilder |
cfgBuilder
This instance helps to create the Dialog Widget as part of the whole window.
|
private GralCfgData |
cfgData |
(package private) GralCfgWriter |
cfgWriter |
GralTabbedPanel |
currTabPanel
Any kind of TabPanel for this PanelManager TODO make protected
|
java.util.List<GralCurveView_ifc> |
curveContainer
Deprecated.
|
private java.util.Map<java.lang.String,java.lang.String> |
dataReplace
Map of replacements of paths to data.
|
protected GralCfgDesigner |
designer
The designer is an aggregated part of the PanelManager, but only created if necessary.
|
GralGraphicThread |
gralDevice
Base class for managing all panels and related windows.
|
GralMng.GralMngFocusListener |
gralFocusListener
This instance can be used if any other focus listener is necessary for any implementation widget.
|
GralMng.ImplAccess |
impl |
protected java.util.Map<java.lang.String,GralWidget> |
indexNameWidgets
Index of all input fields to access symbolic for all panels.
|
GralInfoBox |
infoBox
Three windows as sub window for html help, info and logging created if the primary window is created.
|
GralInfoBox |
infoHelp
Three windows as sub window for html help, info and logging created if the primary window is created.
|
GralInfoBox |
infoLog
Three windows as sub window for html help, info and logging created if the primary window is created.
|
private GralWidget_ifc |
lastClickedWidget
Last focused widget or last selected line in a table.
|
protected java.util.concurrent.ConcurrentLinkedQueue<GralVisibleWidgets_ifc> |
listVisiblePanels
List of all panels which may be visible yet.
|
(package private) java.util.Queue<GralWidget> |
listWidgetsPermanentUpdating |
LogMessage |
log
It is possible to write any message via this class to a logging system.
|
protected java.util.Map<java.lang.String,GralPanelContent> |
panels
Map of all panels.
|
private GralMng.PosThreadSafe |
posCurrent
The current position as helper if it is the same thread.
|
private java.util.Map<java.lang.Long,GralMng.PosThreadSafe> |
posThreadSafe |
GralGridProperties |
propertiesGui
Properties of this Dialog Window.
|
(package private) InspcReplAlias |
replacerAlias |
protected java.lang.String |
sCurrPanel |
private java.lang.String |
sHelpBase |
protected java.util.Map<java.lang.String,GralWidget> |
showFields
Index of all input fields to access symbolic.
|
private static GralMng |
singleton |
static java.lang.String |
sVersion
Version, history and license.
|
protected java.util.Map<java.lang.String,GralUserAction> |
userActions
Index of all user actions, which are able to use in Button etc.
|
protected GralUserAction |
userMainKeyAction |
private java.util.List<GralWidget> |
widgetsInFocus |
private GralWindow |
windPrimary
The one instance of the primary window created in the
org/vishia/ifc/GralFactory#createWindow(String, String, int) . |
protected GralPos |
XXXpos
Position of the next widget to add.
|
protected boolean |
XXXposUsed
False if the position is given newly.
|
propGridZoomedPanel, propZoomedPanel, version
cmdBackColor, cmdClear, cmdCloseWindow, cmdColor, cmdInsert, cmdLineColor, cmdRedraw, cmdRemove, cmdSelect, cmdSet, cmdSetWindowVisible, cmdTextColor, version
Modifier | Constructor and Description |
---|---|
private |
GralMng(LogMessage log) |
Modifier and Type | Method and Description |
---|---|
GralButton |
addButton(java.lang.String sName,
GralUserAction action,
java.lang.String sButtonText)
Adds a button
|
GralButton |
addButton(java.lang.String sName,
GralUserAction action,
java.lang.String sCmd,
java.lang.String sDataPath,
java.lang.String sButtonText)
Adds a button
|
GralButton |
addCheckButton(java.lang.String sName,
java.lang.String sButtonTextOn,
java.lang.String sButtonTextOff,
java.lang.String sButtonTextDisabled,
GralColor colorOn,
GralColor colorOff,
GralColor colorDisabled)
Adds a button which is switching on or off.
|
GralCurveView |
addCurveViewY(java.lang.String sName,
int nrofXvalues,
GralCurveView.CommonCurve common)
Adds a curve view for displaying values with ordinary x-coordinate.
|
GralTextField |
addFileSelectField(java.lang.String name,
java.util.List<java.lang.String> listRecentFiles,
java.lang.String startDirMask,
java.lang.String prompt,
java.lang.String promptStylePosition)
Adds a special text field to select a file.
|
void |
addFocusAction(GralWidget widgetInfo,
GralUserAction action,
java.lang.String sCmdEnter,
java.lang.String sCmdRelease)
Adds the given Focus action to the known widget.
|
GralWidget |
addFocusAction(java.lang.String sName,
GralUserAction action,
java.lang.String sCmdEnter,
java.lang.String sCmdRelease)
Adds the given Focus action to the named widget.
|
GralHtmlBox |
addHtmlBox(java.lang.String name)
Adds a box which presents html content.
|
java.lang.Object |
addImage(java.lang.String sName,
java.io.InputStream imageStream,
int height,
int width,
java.lang.String sCmd) |
void |
addInfo(java.lang.CharSequence info,
boolean show) |
GralLed |
addLed(java.lang.String sName,
java.lang.String sDataPath)
Adds a Led (round)
|
void |
addLine(GralColor color,
java.util.List<GralPoint> points)
Adds a line.
|
void |
addLine(int colorValue,
float xa,
float ya,
float xe,
float ye)
Deprecated.
|
GralWidget |
addSlider(java.lang.String sName,
GralUserAction action,
java.lang.String sShowMethod,
java.lang.String sDataPath) |
GralButton |
addSwitchButton(java.lang.String sName,
GralUserAction action,
java.lang.String sCmd,
java.lang.String sDataPath,
java.lang.String sButtonText,
java.lang.String sColor0,
java.lang.String sColor1)
Adds a button which saves its state, pressed or non-pressed.
|
GralButton |
addSwitchButton(java.lang.String sName,
java.lang.String sButtonTextOff,
java.lang.String sButtonTextOn,
GralColor colorOff,
GralColor colorOn)
Adds a button which is switching on or off.
|
GralTabbedPanel |
addTabbedPanel(java.lang.String namePanel,
GralPanelActivated_ifc user,
int properties)
Adds a panel for tabs as child of the current panel.
|
GralTable |
addTable(java.lang.String sName,
int height,
int[] columnWidths)
Deprecated.
|
GralWidget |
addText(java.lang.String text)
Adds a text to the current panel at given position with standard colors, left origin.
|
GralWidget |
addText(java.lang.String sText,
char size,
int color)
Deprecated.
|
void |
addText(java.lang.String name,
java.lang.CharSequence text)
Appends the text into a named widget.
|
GralWidget |
addText(java.lang.String sText,
int origin,
GralColor textColor,
GralColor backColor)
Adds a simple text at the current position.
|
GralTextBox |
addTextBox(java.lang.String name,
boolean editable,
java.lang.String prompt,
char promptStylePosition)
Adds a text box for showing or editing a text in multi lines.
|
GralTextField |
addTextField(java.lang.String name,
boolean editable,
java.lang.String prompt,
java.lang.String promptStylePosition)
Adds a text field for showing or editing a text value.
|
GralValueBar |
addValueBar(java.lang.String sName,
java.lang.String sDataPath) |
void |
buildCfg(GralCfgData data,
java.io.File fileCfg)
Sets the builder for content configuration.
|
GralRectangle |
calcWidgetPosAndSize(GralPos pos,
int widthParentPixel,
int heightParentPixel,
int widthWidgetNat,
int heightWidgetNat)
Calculates the pixel position and size with a given GralPos for the given size of display appearance.
|
protected void |
checkAdmissibility(boolean value) |
static void |
closeGral()
Must only invoke from the Main window close listener.
|
static boolean |
create(LogMessage log)
Creates the singleton instance of the GralMng.
|
GralPanelContent |
createCompositeBox(java.lang.String name)
Creates a box inside the current panel to hold some widgets.
|
protected GralMenu |
createContextMenu(GralWidget widg) |
GralFileDialog_ifc |
createFileDialog()
Creates a file or directory dialog.
|
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.
|
GralInfoBox |
createHtmlInfoBox(java.lang.String posString,
java.lang.String name,
java.lang.String title,
boolean onTop) |
void |
createHtmlInfoBoxes(MainCmd mainCmd)
This routine should be called in the initializing routine in the graphic thread one time.
|
void |
createImplWidget_Gthread(GralWidget widgg)
Not that this routine must not invoked before the
GralFactory.createWindow(GralWindow, char, int, int, int, int)
was not called. |
static void |
createMainWindow(GralFactory factory,
GralWindow window,
char sizeShow,
int left,
int top,
int xSize,
int ySize) |
protected GralMenu |
createMenuBar(GralWindow windg) |
GralInfoBox |
createTextInfoBox(java.lang.String name,
java.lang.String title) |
static GralMng |
createWindow(java.lang.String graphicBaseSystem)
Creates an nee Panel Manager in a new Window.
|
GralWindow |
createWindow(java.lang.String name,
java.lang.String title,
int windProps)
Deprecated.
|
boolean |
currThreadIsGraphic()
Returns true if the current thread is the graphical thread.
|
(package private) void |
deregisterPanel(GralPanelContent panel) |
void |
deregisterWidgetName(GralWidget widg) |
private GralWidget |
findWidget(java.lang.String name) |
static GralMng |
get()
Returns the singleton of the GralMng.
|
java.util.Map<java.lang.String,java.lang.String> |
getAllValues() |
GralMngApplAdapter_ifc |
getApplicationAdapter() |
GralColor |
getColor(java.lang.String sColorName)
Gets the named color.
|
int |
getColorValue(java.lang.String sColorName)
Gets the value to the named color.
|
GralPanelContent |
getCurrentPanel() |
GralWidget_ifc |
getLastClickedWidget()
Returns that widget which was clicked by mouse at last.
|
java.util.List<GralWidget> |
getListCurrWidgets()
Deprecated.
|
GralPanelContent |
getPanel(java.lang.String name) |
GralPos |
getPosCheckNext() |
GralPos |
getPositionInPanel()
Gets the current position in the panel to store anywhere other.
|
GralPos |
getPosOldPositioning()
Used for deprecated style, without independent GralWidget.
|
GralWindow |
getPrimaryWindow() |
GralUserAction |
getRegisteredUserAction(java.lang.String name) |
ReplaceAlias_ifc |
getReplacerAlias() |
java.util.Set<java.util.Map.Entry<java.lang.String,GralWidget>> |
getShowFields()
Returns a Set of all fields, which are created to show.
|
java.lang.String |
getValue(java.lang.String sName)
Gets the value from a widget.
|
java.lang.String |
getValueFromWidget(GralWidget widgd)
Returns null if the widget value can only be gotten platform-depending.
|
java.util.concurrent.ConcurrentLinkedQueue<GralVisibleWidgets_ifc> |
getVisiblePanels()
Gets the list of all panels which are visible yet and should be updated with values therefore.
|
GralWidget |
getWidget(java.lang.String name)
Searches a widget by name.
|
GralWidget |
getWidgetInFocus() |
java.util.List<GralWidget> |
getWidgetsInFocus()
Returns a list of the last widgets in focus in there focus order.
|
GralVisibleWidgets_ifc |
getWidgetsPermanentlyUpdating()
Gets a list of widgets which should be updated permanently because they store data in any time.
|
GralGraphicThread |
gralDevice() |
void |
initCfgDesigner() |
LogMessage |
log() |
void |
markWidgetForDesign(GralWidget widgg) |
void |
notifyFocus(GralWidget widgd)
Notifies that this widget has the focus gotten.
|
(package private) GralMng.PosThreadSafe |
pos() |
void |
pressedLeftMouseDownForDesign(GralWidget widgd,
GralRectangle xy)
It will be called only at the GUI-implementation level.
|
GralGridProperties |
propertiesGui() |
void |
redrawWidget(java.lang.String sName)
Forces the redrawing for all set samples.
|
void |
refreshCurvesFromVariable(VariableContainer_ifc container)
refresh all curve views.
|
void |
registerPanel(GralPanelContent panel)
Registers a panel to place the widgets.
|
void |
registerShowField(GralWidget widg) |
void |
registerUserAction(java.lang.String name,
GralUserAction action)
Registers all user actions, which are able to use in Button etc.
|
void |
registerWidget(GralWidget widgd)
Register all widgets, which are created in its own classes, not add here.
|
(package private) void |
registerWidget(java.lang.String name,
GralWidget widgd) |
void |
releaseLeftMouseForDesign(GralWidget widgd,
GralRectangle xy,
boolean bCopy)
It will be called only at the GUI-implementation level.
|
boolean |
remove(GralPanelContent compositeBox)
Removes a composite box from the graphic representation.
|
boolean |
remove(GralWidget widget) |
(package private) void |
removeWidget(java.lang.String name) |
void |
repaint()
Forces a newly paint of the GUI-container.
|
void |
repaintCurrentPanel()
Forces a newly paint of the current panel.
|
void |
resizeWidget(GralWidget widgd,
int xSizeParent,
int ySizeParent)
Forces the resizing of the given widged.
|
java.lang.String |
saveCfg(java.io.Writer dest)
Saves the given configuration.
|
void |
selectPanel(GralPanelContent panel)
Selects the given panel as current panel to build some content.
|
void |
selectPanel(java.lang.String sName)
selects a registered panel for the next add-operations.
|
void |
selectPrimaryWindow()
Selects the primary window as current panel to build some content.
|
void |
setApplicationAdapter(GralMngApplAdapter_ifc adapter) |
void |
setBackColor(GralWidget widg,
int ix,
int color)
Deprecated.
|
void |
setBackColor(java.lang.String name,
int ix,
int color)
Sets the background color of any widget.
|
void |
setDesignMode(boolean mode)
Sets or resets the design mode.
|
void |
setFinePosition(int line,
int yPosFrac,
int ye,
int yef,
int column,
int xPosFrac,
int xe,
int xef,
int origin,
char direction,
int border,
int borderFrac,
GralPos frame)
Same as
GralMngBuild_ifc.setPositionSize(int, int, int, int, char) , but the positions can be in a fine division. |
void |
setFirstlyThePrimaryWindow(GralWindow primaryWindow) |
void |
setFocus(GralWidget widgd)
Sets the focus to the designated widget.
|
void |
setHelpBase(java.lang.String path) |
void |
setHelpUrl(java.lang.String url) |
void |
setHtmlHelp(java.lang.String url) |
void |
setInfo(java.lang.CharSequence text) |
void |
setLastClickedWidget(GralWidget_ifc lastClickedWidgetInfo)
This method is called whenever the left mouse is pressed on a widget, whiches
|
void |
setLed(GralWidget widg,
int colorBorder,
int colorInner) |
void |
setLineColor(GralWidget widg,
int ix,
int color)
Deprecated.
|
GralUserAction |
setMainKeyAction(GralUserAction userMainKeyAction)
Sets the action for main keys.
|
void |
setNextPosition()
Deprecated.
|
void |
setNextPositionUnused()
Not for user: Checks whether the position is used, sets the next position then, markes the position as used.
|
void |
setPos(java.lang.String sPosition)
Sets the position with a given String, see
GralPos.setPosition(CharSequence, GralPos)
whereby the parent is the current position value. |
void |
setPosition(float line,
float lineEndOrSize,
float column,
float columnEndOrSize,
int origin,
char direction)
Sets the position.
|
void |
setPosition(float line,
float lineEndOrSize,
float column,
float columnEndOrSize,
int origin,
char direction,
float border)
Sets the position with fine position given as float value.
|
void |
setPosition(GralPos framePos,
float line,
float lineEndOrSize,
float column,
float columnEndOrSize,
int origin,
char direction)
Sets the position in relation to a given position.
|
void |
setPosition(GralPos framePos,
float line,
float lineEndOrSize,
float column,
float columnEndOrSize,
int origin,
char direction,
float border) |
void |
setPositionSize(int line,
int column,
int height,
int width,
char direction)
Sets the position and size for the next widget to add in the container.
|
void |
setPosPanel(GralPanelContent panel) |
void |
setProperties(GralGridProperties props) |
void |
setSampleCurveViewY(java.lang.String sName,
float[] values)
Adds a sampling value set.
|
(package private) void |
setSize(float height,
float width) |
void |
setSize(int height,
int ySizeFrac,
int width,
int xSizeFrac)
Sets the next position if the position is used, but change the size.
|
void |
setTabbedPanel(GralPanelContent tabbedPanel)
It is a special routine for tabbedPanel.
|
void |
setText(java.lang.String name,
java.lang.CharSequence text)
Sets the text into a named widget.
|
void |
setTextColor(GralWidget widg,
int ix,
int color)
Deprecated.
|
void |
setValue(java.lang.String widget,
java.lang.Object visibleInfo,
java.lang.Object userData)
Sets the text into a named widget.
|
void |
showInfo(java.lang.CharSequence text) |
(package private) void |
stop() |
(package private) GralUserAction |
userMainKeyAction()
package private
|
void |
writeLog(int msgId,
java.lang.Exception exc)
Writes a log message instead throwing an exception or writing on standard output.
|
void |
XXXpressedRightMouseDownForDesign(GralWidget widgd,
GralRectangle xy)
It will be called only at the GUI-implementation level.
|
boolean |
XXXsetWindowsVisible(GralWindow_ifc window,
GralPos atPos)
Sets a given and registered window visible at the given position and size or set it invisible.
|
public static final java.lang.String sVersion
notifyFocus(GralWidget)
: Only widgets with datapath. It is only for the inspector etc. TODO: Is there a list necessary? Store only the last widget in focus!
setPosPanel(GralPanelContent)
now invoked especially from ctor of GralPanelContent
and from ctor of GralPanelContent.ImplAccess
. If a new Panel was created with a given GralWidget.pos()
then that panel
is set as current one for the next widgets. Either the widgets are created before the implementation graphic with given position string,
then the panel should have a position string too to assigned them. Or the widgets are created with creation of the implementation graphic,
then a panel should be created in the same kind, and invoke setPosPanel(GralPanelContent)
in the ctor of its implementation.
The contract is unchanged: A created panel determines that all following widgets are created on that panel.
registerPanel(GralPanelContent)
is only be called in the ctor of GralPanelContent
because any panel is based on GralPanelContent.
The definition of the panel in the pos()
used for the next widgets are done now in the extra routine setPosPanel(GralPanelContent)
.
ReplaceAlias_ifc
now contains getReplacerAlias()
.
It is an extra class for a ReplacerAlias given independent of the graphic.
#createImplWidget_Gthread()
. It is a better name.
pos()
with a second thread: The MainWindow- GralPos.panel
was registered in another thread
and therefore unknown in the new pos()
for that thread. Solution: If the thread-specific GralPos will be created,
it should copy the data from the posCurrent
which is valid any case for valid initial data.
createHtmlInfoBoxes(MainCmd)
should be invoked in the graphic thread while initializing the application.
GralMng.GralMngFocusListener.focusLostGral(GralWidget)
now invokes the GralWidget#actionFocused
too.
The action should distinguish between focus gained and focus lost in its action routine. That should be added to the code. Done for all vishia sources.
registerUserAction(String, GralUserAction)
now knows possibility of usage the own name with "GralWidget
via
getPosCheckNext()
. That routine sets the current position in this class to GralMng.PosThreadSafe.posUsed
for further using to increment. That is correct.
The problem before was faulty old-concept usage of org.vishia.gral.swt.SwtMng#XXXsetPosAndSizeSwt
which invokes setNextPosition()
which increments the position too, therefore twice. The usage of that routine
is prevented for Swt implementation, TODO for awt yet now.
GralMng.GralMngFocusListener
: invokes repaint() because of maybe changed outfit on focus gained
registerWidget(GralWidget)
is obsolete now, it is empty yet.
Instead registerWidget(String, GralWidget)
by given name and removeWidget(String)
by name.
See description of registering on GralWidget.setToPanel(GralMngBuild_ifc)
.
selectPanel(GralPanelContent)
not only with String given
GralMng.ImplAccess
which accesses all private data of the GralMng.
createImplWidget_Gthread(GralWidget)
for all set to panel actions. That method handles all widget types.
actionFileSelect
with setText(...), now the file select field was filled.
getWidgetsPermanentlyUpdating()
created but not used yet because
refreshCurvesFromVariable(VariableContainer_ifc)
has the necessary functionality.
#widgetHelper
The widget helper is implemented in the graphic system
for example as SwtWidgetHelper
to do some widget specific things.
_impl
.GralMng.InternalPublic.gralKeyListener
addLine(GralColor, List)
to add in a GralCanvasStorage
.
#addDataReplace(Map)
, #replaceDataPathPrefix(String)
.
using alias in the GralWidget.setDataPath(String)
. The resolving of the alias is done
only if the datapath is used. * #calcWidgetPosAndSize(GralPos, int, int)
as abstract method.
addText(String)
now uses the background color GralGridProperties.colorBackground_
.
registerWidget(GralWidget)
: uses GralPanelContent.addWidget(GralWidget, boolean)
.
getValueFromWidget(GralWidget)
implementing here for non-platform depending values, especially GralTable.
setApplicationAdapter(GralMngApplAdapter_ifc)
to support context sensitive help by focusGained of widgets.
getLastClickedWidget()
to get the last clicked widget in any user routine.
The information about the widget can be used to capture widgets for any script.
registerPanel(GralPanelContent)
from the SWT implementation to this.
getPanel(String)
to get a registered panel by name.
actionDesignEditField
. It is the action which is called from menu now.
calcWidgetPosAndSize(GralPos, int, int, int, int)
: calculates dy and dx one pixel less.
GralPos
. This class contains only wrappers now.
GralWidgetChangeRequ
.
GralPos#setFinePosition(int, int, int, int, int, int, int, int, int, char, GralPos)
calculates from right or bottom with negative values.
private GralMng.PosThreadSafe posCurrent
private final java.util.Map<java.lang.Long,GralMng.PosThreadSafe> posThreadSafe
GralCfgBuilder cfgBuilder
GralCfgWriter cfgWriter
protected GralCfgDesigner designer
gralDevice
.private GralCfgData cfgData
public boolean bDesignMode
protected boolean bDesignerIsInitialized
public final GralGraphicThread gralDevice
public GralGridProperties propertiesGui
protected final java.util.Map<java.lang.String,GralWidget> indexNameWidgets
protected final java.util.Map<java.lang.String,GralWidget> showFields
private final java.util.List<GralWidget> widgetsInFocus
private GralWindow windPrimary
org/vishia/ifc/GralFactory#createWindow(String, String, int)
.public GralInfoBox infoHelp
public GralInfoBox infoBox
public GralInfoBox infoLog
private java.lang.String sHelpBase
protected final java.util.concurrent.ConcurrentLinkedQueue<GralVisibleWidgets_ifc> listVisiblePanels
java.util.Queue<GralWidget> listWidgetsPermanentUpdating
public final LogMessage log
protected GralMngApplAdapter_ifc applAdapter
@Deprecated public final java.util.List<GralCurveView_ifc> curveContainer
protected final GralPos XXXpos
protected boolean XXXposUsed
GralPos.setNextPosition()
.protected boolean bBelow
protected boolean bRigth
protected GralUserAction userMainKeyAction
InspcReplAlias replacerAlias
protected final java.util.Map<java.lang.String,GralPanelContent> panels
public GralTabbedPanel currTabPanel
protected java.lang.String sCurrPanel
private GralWidget_ifc lastClickedWidget
getLastClickedWidget()
protected final java.util.Map<java.lang.String,GralUserAction> userActions
registerUserAction(String, GralUserAction)
.private final java.util.Map<java.lang.String,java.lang.String> dataReplace
public GralMng.ImplAccess impl
public GralPanelActivated_ifc actionPanelActivate
GralUserAction actionShowWidgetInfos
GralUserAction actionFileSelect
public GralUserAction actionDesignEditField
public GralUserAction actionReadPanelCfg
public final GralUserAction actionHelp
public GralMng.GralMngFocusListener gralFocusListener
SwtMng.SwtMngFocusListener
.public final GralMng.InternalPublic _impl
private GralMng(LogMessage log)
public static GralMng createWindow(java.lang.String graphicBaseSystem)
graphicBaseSystem
- GralMng.PosThreadSafe pos()
public void setPos(java.lang.String sPosition) throws java.text.ParseException
GralPos.setPosition(CharSequence, GralPos)
whereby the parent is the current position value.sPosition
- java.text.ParseException
public void setPositionSize(int line, int column, int height, int width, char direction)
GralMngBuild_ifc
setPositionSize
in interface GralMngBuild_ifc
line
- y-Position in y-Units, count from top of the box.
It is either the top or bottom line of the widget, depending on height.
If < 0, then the previous position is valid furthermore.column
- x-Position in x-Units, count from left of the box.
If < 0, then the previous position is valid furthermore.width
- The number of columns. If <0, then the param column is the right column,
and column-length is the left column. If 0 then the last value of length is not changed.direction
- direction for a next widget, use 'r', 'l', 'u', 'd' for right, left, up, downpublic void setPosition(float line, float lineEndOrSize, float column, float columnEndOrSize, int origin, char direction)
GralMngBuild_ifc
setPosition
in interface GralMngBuild_ifc
line
- The line. Positive: from top, negative: from end.lineEndOrSize
- The position of end of widget. negative or 0: from end. 0: the end position of Panel.
see GralPos.same
etc.public void setPosition(float line, float lineEndOrSize, float column, float columnEndOrSize, int origin, char direction, float border)
GralMngBuild_ifc
GralPos
.setPosition
in interface GralMngBuild_ifc
line
- either position or combinded with GralPos.refer
etc.origin
- see GralMngBuild_ifc.setFinePosition(int, int, int, int, int, int, int, int, int, char, int, int, GralPos)
public void setPosition(GralPos framePos, float line, float lineEndOrSize, float column, float columnEndOrSize, int origin, char direction)
GralMngBuild_ifc
setPosition
in interface GralMngBuild_ifc
framePos
- The given frame.line
- The linepublic void setPosition(GralPos framePos, float line, float lineEndOrSize, float column, float columnEndOrSize, int origin, char direction, float border)
setPosition
in interface GralMngBuild_ifc
public void setFinePosition(int line, int yPosFrac, int ye, int yef, int column, int xPosFrac, int xe, int xef, int origin, char direction, int border, int borderFrac, GralPos frame)
GralMngBuild_ifc
GralMngBuild_ifc.setPositionSize(int, int, int, int, char)
, but the positions can be in a fine division.setFinePosition
in interface GralMngBuild_ifc
line
- The line.yPosFrac
- Number between 0..9 for fine positioning in the grid step.yef
- Number between 0..9 for fine positioning in the grid step.xPosFrac
- Number between 0..9 for fine positioning in the grid step.xef
- Number between 0..9 for fine positioning in the grid step.origin
- Origin of inner widgets or next widgets. Use:
1 4 7 2 5 8 3 6 9for the origin points. (origin-1) %3 is the horizontal origin, (origin-1 /3) is the vertical one. A value 0 let the origin unchanged from previous call.
direction
- Direction of the next position if that is not given than or GralPos.next
is given than.
A value other then r, l, u, d let the direction unchanged from previous call.public void setSize(int height, int ySizeFrac, int width, int xSizeFrac)
GralMngBuild_ifc
setSize
in interface GralMngBuild_ifc
void setSize(float height, float width)
@Deprecated public void setNextPosition()
#posUsed
. TODO remove in AwtMngpublic void setNextPositionUnused()
#posUsed
.public void registerShowField(GralWidget widg)
public GralPos getPositionInPanel()
GralMngBuild_ifc
pos()
is reused there. Therefore the implementation of the method
returns a cloned instance.getPositionInPanel
in interface GralMngBuild_ifc
pos()
.public GralPos getPosCheckNext()
public GralPos getPosOldPositioning()
@Deprecated public java.util.List<GralWidget> getListCurrWidgets()
GralMng_ifc
getListCurrWidgets
in interface GralMng_ifc
public static boolean create(LogMessage log)
get()
.log
- The first invocation determines the log output.public static GralMng get()
GralMng(LogMessage)
on start of application, before this routine is firstly called.public void setProperties(GralGridProperties props)
public void setFirstlyThePrimaryWindow(GralWindow primaryWindow)
public static void createMainWindow(GralFactory factory, GralWindow window, char sizeShow, int left, int top, int xSize, int ySize)
public void createHtmlInfoBoxes(MainCmd mainCmd)
mainCmd
- If given the help from mainCmd will be written into the Help box.public void createImplWidget_Gthread(GralWidget widgg)
GralFactory.createWindow(GralWindow, char, int, int, int, int)
was not called.createImplWidget_Gthread
in interface GralMngBuild_ifc
widgg
- The widget should be initialized already.GralMngBuild_ifc.createImplWidget_Gthread(org.vishia.gral.base.GralWidget)
public GralUserAction setMainKeyAction(GralUserAction userMainKeyAction)
GralMngBuild_ifc
GralUserAction.userActionGui(int, GralWidget, Object...)
is invoked on any key down event,
exclusive some graphic implementation specific keys. The user should return false in this method
if the key is not used and should not be blocked for widget specific key listeners.setMainKeyAction
in interface GralMngBuild_ifc
userMainKeyAction
- The user action to process main keys.GralUserAction userMainKeyAction()
public GralGridProperties propertiesGui()
propertiesGui
in interface GralMng_ifc
public GralGraphicThread gralDevice()
gralDevice
in interface GralMng_ifc
public LogMessage log()
log
in interface GralMng_ifc
public java.lang.String getValueFromWidget(GralWidget widgd)
SwtMng
.getValueFromWidget
in interface GralMng_ifc
widgd
- The widget.public void setApplicationAdapter(GralMngApplAdapter_ifc adapter)
public GralMngApplAdapter_ifc getApplicationAdapter()
public ReplaceAlias_ifc getReplacerAlias()
getReplacerAlias
in interface GralMngBuild_ifc
public void setHelpBase(java.lang.String path)
public void setHelpUrl(java.lang.String url)
public void setHtmlHelp(java.lang.String url)
public void showInfo(java.lang.CharSequence text)
public void setInfo(java.lang.CharSequence text)
public void addInfo(java.lang.CharSequence info, boolean show)
public void selectPanel(java.lang.String sName)
selectPanel
in interface GralMngBuild_ifc
public void selectPanel(GralPanelContent panel)
selectPanel
in interface GralMngBuild_ifc
public void selectPrimaryWindow()
selectPrimaryWindow
in interface GralMngBuild_ifc
public boolean currThreadIsGraphic()
GralMng_ifc
GralGraphicThread.run()
.currThreadIsGraphic
in interface GralMng_ifc
public GralWidget getWidget(java.lang.String name)
GralMng_ifc
getWidget
in interface GralMng_ifc
name
- The name which is assigned on build.public void buildCfg(GralCfgData data, java.io.File fileCfg)
GralMngBuild_ifc
buildCfg
in interface GralMngBuild_ifc
public void setDesignMode(boolean mode)
setDesignMode
in interface GralMngBuild_ifc
mode
- public java.lang.String saveCfg(java.io.Writer dest)
saveCfg
in interface GralMngBuild_ifc
dest
- public void setLastClickedWidget(GralWidget_ifc lastClickedWidgetInfo)
lastClickedWidgetInfo
- public GralWidget_ifc getLastClickedWidget()
GralWidget.setDataPath(String)
is initialized
with "widgetInfo" is not captured for this operation. It means, if any user action method uses
this method to get the last clicked widget, that widget itself have to be marked with
setDataPath("widgetInfo"); to prevent getting its own widget info.public void registerUserAction(java.lang.String name, GralUserAction action)
userAction=
designation in the configuration String.registerUserAction
in interface GralMngBuild_ifc
name
- if it contains "GralUserAction.name
.
You can give "action
- public GralUserAction getRegisteredUserAction(java.lang.String name)
getRegisteredUserAction
in interface GralMngBuild_ifc
void registerWidget(java.lang.String name, GralWidget widgd)
void removeWidget(java.lang.String name)
public void registerWidget(GralWidget widgd)
GralMngBuild_ifc
registerWidget
in interface GralMngBuild_ifc
public void deregisterWidgetName(GralWidget widg)
public void registerPanel(GralPanelContent panel)
pos()
for this thread.
The panel can be selected with its name calling the selectPanel(String)
-routineregisterPanel
in interface GralMngBuild_ifc
key
- Name of the panel.panel
- The panel.public void setPosPanel(GralPanelContent panel)
void deregisterPanel(GralPanelContent panel)
public java.util.Set<java.util.Map.Entry<java.lang.String,GralWidget>> getShowFields()
getShowFields
in interface GralMngBuild_ifc
public java.util.Map<java.lang.String,java.lang.String> getAllValues()
public java.lang.String getValue(java.lang.String sName)
GralMng_ifc
getValue
in interface GralMng_ifc
sName
- The name of the widget. The widget will be searched per name.public void setTabbedPanel(GralPanelContent tabbedPanel)
GralTabbedPanel.addGridPanel(String, String, int, int, int, int)
then the mng is set to the tabbed panel.tabbedPanel
- public GralPanelContent getPanel(java.lang.String name)
public GralWindow getPrimaryWindow()
public GralPanelContent getCurrentPanel()
protected void checkAdmissibility(boolean value)
private GralWidget findWidget(java.lang.String name)
public void setBackColor(java.lang.String name, int ix, int color)
setBackColor
in interface GralMng_ifc
name
- The name of the widget, which was given by the add...()-Operationident
- A identifying number. It meaning depends on the kind of widget.
0 means, insert on top. Integer.MAXVALUE means, insert after the last element (append).content
- The content to insert.public void setText(java.lang.String name, java.lang.CharSequence text)
GralMng_ifc
setText
in interface GralMng_ifc
text
- The text is not stored by reference, it can be changed after them.public void setValue(java.lang.String widget, java.lang.Object visibleInfo, java.lang.Object userData)
GralMng_ifc
setValue
in interface GralMng_ifc
public void addText(java.lang.String name, java.lang.CharSequence text)
GralMng_ifc
addText
in interface GralMng_ifc
text
- The text is not stored by reference, it can be changed after them.public GralWidget addText(java.lang.String sText, int origin, GralColor textColor, GralColor backColor)
GralMngBuild_ifc
addText
in interface GralMngBuild_ifc
origin
- Origin, use char 1..9 for 1 top-left, 2 top-middle, ... 5 middle, 9 bottom-right.public GralTextField addTextField(java.lang.String name, boolean editable, java.lang.String prompt, java.lang.String promptStylePosition)
addTextField
in interface GralMngBuild_ifc
sName
- The registering namewidth
- Number of grid units for lengtheditable
- true than edit-able, false to show contentprompt
- If not null, than a description label is shownpromptStylePosition
- Position and size of description label:
upper case letter: normal font, lower case letter: small font
'l' left, 't' top (above field)public GralTextBox addTextBox(java.lang.String name, boolean editable, java.lang.String prompt, char promptStylePosition)
addTextBox
in interface GralMngBuild_ifc
sName
- The registering namewidth
- Number of grid units for lengtheditable
- true than edit-able, false to show contentprompt
- If not null, than a description label is shownpromptStylePosition
- Position and size of description label:
upper case letter: normal font, lower case letter: small font
'l' left, 't' top (above field)public GralValueBar addValueBar(java.lang.String sName, java.lang.String sDataPath)
addValueBar
in interface GralMngBuild_ifc
public GralButton addButton(java.lang.String sName, GralUserAction action, java.lang.String sButtonText)
GralMngBuild_ifc
addButton
in interface GralMngBuild_ifc
sButtonText
- text in the buttonpublic GralButton addButton(java.lang.String sName, GralUserAction action, java.lang.String sCmd, java.lang.String sDataPath, java.lang.String sButtonText)
GralMngBuild_ifc
addButton
in interface GralMngBuild_ifc
sCmd
- The command string will be transfered to the action-methodsButtonText
- text in the buttonpublic GralButton addSwitchButton(java.lang.String sName, GralUserAction action, java.lang.String sCmd, java.lang.String sDataPath, java.lang.String sButtonText, java.lang.String sColor0, java.lang.String sColor1)
GralMngBuild_ifc
addSwitchButton
in interface GralMngBuild_ifc
public GralButton addSwitchButton(java.lang.String sName, java.lang.String sButtonTextOff, java.lang.String sButtonTextOn, GralColor colorOff, GralColor colorOn)
GralMngBuild_ifc
GralButton.isOn()
or GralWidget.getValue()
.addSwitchButton
in interface GralMngBuild_ifc
public GralButton addCheckButton(java.lang.String sName, java.lang.String sButtonTextOn, java.lang.String sButtonTextOff, java.lang.String sButtonTextDisabled, GralColor colorOn, GralColor colorOff, GralColor colorDisabled)
GralMngBuild_ifc
GralButton.isOn()
or GralWidget.getValue()
.addCheckButton
in interface GralMngBuild_ifc
public GralLed addLed(java.lang.String sName, java.lang.String sDataPath)
GralMngBuild_ifc
addLed
in interface GralMngBuild_ifc
@Deprecated public void setBackColor(GralWidget widg, int ix, int color)
GralMng_ifc
setBackColor
in interface GralMng_ifc
color
- blue, green and red in the bits 23..16, 15..8 and 7..0.
opaque in bits 31..24 if possible.@Deprecated public void setLineColor(GralWidget widg, int ix, int color)
GralMng_ifc
setLineColor
in interface GralMng_ifc
color
- blue, green and red in the bits 23..16, 15..8 and 7..0.
opaque in bits 31..24 if possible.@Deprecated public void setTextColor(GralWidget widg, int ix, int color)
GralMng_ifc
setTextColor
in interface GralMng_ifc
color
- blue, green and red in the bits 23..16, 15..8 and 7..0.
opaque in bits 31..24 if possible.@Deprecated public void addLine(int colorValue, float xa, float ya, float xe, float ye)
SwtCanvasStorePanel
. This class stores the line coordinates and conditions
and draws it as background if drawing is invoked.addLine
in interface GralMngBuild_ifc
colorValue
- The value for color, 0xffffff is white, 0xff0000 is red.xa
- start of line relative to current position in grid units.
The start is relative to the given position! Not absolute in window!ya
- start of line relative to current position in grid units.xe
- end of line relative to current position in grid units.ye
- end of line relative to current position in grid units.public void addLine(GralColor color, java.util.List<GralPoint> points)
GralMngBuild_ifc
SwtCanvasStorePanel
. This class stores the line coordinates and conditions
and draws it as background if drawing is invoked.addLine
in interface GralMngBuild_ifc
public void setLed(GralWidget widg, int colorBorder, int colorInner)
setLed
in interface GralMng_ifc
public java.util.concurrent.ConcurrentLinkedQueue<GralVisibleWidgets_ifc> getVisiblePanels()
GralMng_ifc
getVisiblePanels
in interface GralMng_ifc
public GralVisibleWidgets_ifc getWidgetsPermanentlyUpdating()
GralMng_ifc
getWidgetsPermanentlyUpdating
in interface GralMng_ifc
public void setFocus(GralWidget widgd)
GralMng_ifc
setFocus
in interface GralMng_ifc
public void notifyFocus(GralWidget widgd)
GralMng_ifc
notifyFocus
in interface GralMng_ifc
widgd
- The widget descriptorpublic GralWidget getWidgetInFocus()
getWidgetInFocus
in interface GralMng_ifc
public java.util.List<GralWidget> getWidgetsInFocus()
GralMng_ifc
getWidgetsInFocus
in interface GralMng_ifc
public int getColorValue(java.lang.String sColorName)
GralMngBuild_ifc
getColorValue
in interface GralMng_ifc
getColorValue
in interface GralMngBuild_ifc
sColorName
- supported: red, green, blue, yellowpublic GralColor getColor(java.lang.String sColorName)
GralMngBuild_ifc
getColor
in interface GralMngBuild_ifc
sColorName
- supported: red, green, blue, yellowpublic GralRectangle calcWidgetPosAndSize(GralPos pos, int widthParentPixel, int heightParentPixel, int widthWidgetNat, int heightWidgetNat)
pos
- Given positionwidthParentPixel
- width of the container. This value will be used if the position is given
from right with negative numbers.heightParentPixel
- height of the container. This value will be used if the position is given
from bottom with negative numbers.widthWidgetNat
- natural width of the component which will be positioning.
This value is used only if the pos parameter contains GralPos.useNatSize
for the xe-valueheightWidgetNat
- natural height of the component which will be positioning.
This value is used only if the pos parameter contains GralPos.useNatSize
for the ye-valuepublic GralTextField addFileSelectField(java.lang.String name, java.util.List<java.lang.String> listRecentFiles, java.lang.String startDirMask, java.lang.String prompt, java.lang.String promptStylePosition)
GralMngBuild_ifc
addFileSelectField
in interface GralMngBuild_ifc
name
- Name of the widgetlistRecentFiles
- maybe null, a list which stores and offers selected files.startDirMask
- The start dir and selection mask. Both are separated with a ':' character
in this string. See GralFileDialog_ifc
.
If the last or only one char is '/' then a directory should be selected.
For example "D:/MyDir:*.txt" shows only .txt-files to select in the dialog starting from d:/MyDir.prompt
- Prompt for the text field.public void pressedLeftMouseDownForDesign(GralWidget widgd, GralRectangle xy)
widgd
- xy
- public void releaseLeftMouseForDesign(GralWidget widgd, GralRectangle xy, boolean bCopy)
widgd
- xy
- public void markWidgetForDesign(GralWidget widgg)
public void XXXpressedRightMouseDownForDesign(GralWidget widgd, GralRectangle xy)
widgd
- xy
- public void initCfgDesigner()
public GralInfoBox createTextInfoBox(java.lang.String name, java.lang.String title)
createTextInfoBox
in interface GralMngBuild_ifc
public GralInfoBox createHtmlInfoBox(java.lang.String posString, java.lang.String name, java.lang.String title, boolean onTop)
createHtmlInfoBox
in interface GralMngBuild_ifc
public GralWidget addText(java.lang.String text)
addText(String, int, GralColor, GralColor)
,
addTextField(String, boolean, String, String)
addText
in interface GralMngBuild_ifc
text
- public void repaint()
GralMngBuild_ifc
repaint
in interface GralMngBuild_ifc
public void repaintCurrentPanel()
GralMngBuild_ifc
repaintCurrentPanel
in interface GralMngBuild_ifc
public void refreshCurvesFromVariable(VariableContainer_ifc container)
GralMng_ifc
refreshCurvesFromVariable
in interface GralMng_ifc
public boolean remove(GralWidget widget)
remove
in interface GralMngBuild_ifc
public void writeLog(int msgId, java.lang.Exception exc)
GralMng_ifc
writeLog
in interface GralMng_ifc
msgId
- The ident number for dispatching and evaluation.exc
- The catched exception.void stop()
protected GralMenu createContextMenu(GralWidget widg)
protected GralMenu createMenuBar(GralWindow windg)
public GralTabbedPanel addTabbedPanel(java.lang.String namePanel, GralPanelActivated_ifc user, int properties)
GralMngBuild_ifc
addTabbedPanel
in interface GralMngBuild_ifc
user
- If not null, then this user class will be notified when a tab is selected.
The user should update showed values.properties
- use or of constants GralMngBuild_ifc.propZoomedPanel
, GralMngBuild_ifc.propGridZoomedPanel
public GralWidget addSlider(java.lang.String sName, GralUserAction action, java.lang.String sShowMethod, java.lang.String sDataPath)
addSlider
in interface GralMngBuild_ifc
@Deprecated public GralTable addTable(java.lang.String sName, int height, int[] columnWidths)
GralMngBuild_ifc
GralWidget.setActionChange(GralUserAction)
with
GralTableLine_ifc
KeyCode
getRegisteredUserAction(String)
for "keyAction" is tried to get and then invoked with cmd = "key" and the key code in values[0].
This central keyAction may be used for application centralized keys without association to the table itself.addTable
in interface GralMngBuild_ifc
sName
- register name, used for GuiPanelMngWorkingIfc#insertInfo(String, int, String).
height
- The height in grid units for the appearancecolumnWidths
- Array with width of the columns.
Each column has a fix default width per construction.
It may or may not a fix widht, it may able to change by mouse actions,
adequate to the possibilities of the used graphic base system.@Deprecated public GralWidget addText(java.lang.String sText, char size, int color)
GralMngBuild_ifc
addText
in interface GralMngBuild_ifc
sText
- The textsize
- size, 'A' is small ...'E' is large.color
- The color as RGB-value in 3 Byte. 0xffffff is white, 0xff0000 is red.public java.lang.Object addImage(java.lang.String sName, java.io.InputStream imageStream, int height, int width, java.lang.String sCmd)
addImage
in interface GralMngBuild_ifc
public GralHtmlBox addHtmlBox(java.lang.String name)
GralMngBuild_ifc
addHtmlBox
in interface GralMngBuild_ifc
public GralCurveView addCurveViewY(java.lang.String sName, int nrofXvalues, GralCurveView.CommonCurve common)
GralMngBuild_ifc
addCurveViewY
in interface GralMngBuild_ifc
sName
- Its registered namenrofXvalues
- depth of the buffer for x-values. It should be 6..20 times of dx.public GralWidget addFocusAction(java.lang.String sName, GralUserAction action, java.lang.String sCmdEnter, java.lang.String sCmdRelease)
GralMngBuild_ifc
addFocusAction
in interface GralMngBuild_ifc
sName
- The name of the widget. It should be registered calling any add... method.public void addFocusAction(GralWidget widgetInfo, GralUserAction action, java.lang.String sCmdEnter, java.lang.String sCmdRelease)
GralMngBuild_ifc
addFocusAction
in interface GralMngBuild_ifc
public GralPanelContent createCompositeBox(java.lang.String name)
GralMngBuild_ifc
createCompositeBox
in interface GralMngBuild_ifc
public GralPanelContent createGridPanel(java.lang.String namePanel, GralColor backGround, int xG, int yG, int xS, int yS)
GralMngBuild_ifc
createGridPanel
in interface GralMngBuild_ifc
public boolean remove(GralPanelContent compositeBox)
GralMngBuild_ifc
remove
in interface GralMngBuild_ifc
public static void closeGral()
@Deprecated public GralWindow createWindow(java.lang.String name, java.lang.String title, int windProps)
GralMngBuild_ifc
GralWindow_setifc.setWindowVisible(boolean)
or
GralMng_ifc#setWindowsVisible(GralWindow_ifc, GralPos)
.
The position and size of the window is set with the adequate strategy like all other widget:
using GralMngBuild_ifc.setPositionSize(int, int, int, int, char)
.createWindow
in interface GralMngBuild_ifc
title
- Title of the window, may be null, then without title bar.windProps
- Or of the static variables GralWindow_ifc.windExclusive
etc.public GralFileDialog_ifc createFileDialog()
GralMngBuild_ifc
createFileDialog
in interface GralMngBuild_ifc
public void redrawWidget(java.lang.String sName)
GralMng_ifc
redrawWidget
in interface GralMng_ifc
sName
- The name of the widget.public void resizeWidget(GralWidget widgd, int xSizeParent, int ySizeParent)
GralMng_ifc
resizeWidget
in interface GralMng_ifc
widgd
- the widgetpublic boolean XXXsetWindowsVisible(GralWindow_ifc window, GralPos atPos)
GralMng_ifc
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)
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.XXXsetWindowsVisible
in interface GralMng_ifc
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.public void setSampleCurveViewY(java.lang.String sName, float[] values)
GralMng_ifc
setSampleCurveViewY
in interface GralMng_ifc
sName
- The registered namevalues
- The values.