public class GralArea9Panel extends GralPanelContent
GralPanelContent
, with up to 9 areas for other panels or widgets.
+=======+===============+===========+ | A1 | A2 | A3 | +-------+---------------+-----------+ | B1 | B2 | B3 | | | | | +-------+---------------+-----------+ | C1 | C2 | C3 | | | | | +=======+===============+===========+The areas can be combined for one widget (usual a
GralTextBox
or a sub panel) for example in the form:
+=======+===========================+ | | | | tree | edit area, | | view | tables, etc | | | | +-------+---------------------------+ | output console text | | | +=======+===============+===========+The separation lines between the areas are movable with mouse.
GralPos
for contents should be set with "@area9,A1A2"
for example for the tree view area.
or alternatively (here for the edit area) via pos.setPositionSize(0, 1, 2, 2, 'r', pos)
with numeric values 0..2 for the areas.GralPanelContent.Data, GralPanelContent.ImplAccess
GralWidget.ActionChangeSelect, GralWidget.ConfigData, GralWidget.DynamicData
GralWidgetBase.GralWidgComposite, GralWidgetBase.TimeOrderCreateImplWidget
GralWidget_ifc.ActionChange, GralWidget_ifc.ActionChangeWhen
Modifier and Type | Field and Description |
---|---|
static int |
version
Version, history and license.
|
private short[] |
xMaxGralSize
requested maximal size of each window area in GralPos units.
|
private short[] |
xMinGralSize
requested minimal size of each window area in GralPos units.
|
protected short[] |
xpFrameArea
Position of the FrameArea borders in percent
|
private short[] |
yMaxGralSize
requested maximal size of each window area in GralPos units.
|
private short[] |
yMinGralSize
requested minimal size of each window area in GralPos units.
|
protected short[] |
ypFrameArea
Position of the FrameArea borders in percent
|
_panel
_wdgImpl, bEditable, bShouldInitialize, cfg, contextMenu, dateUser, dyda, htmlHelp, lastTimeSetVisible, redrawDelayMax, redrawtDelay, sCmd, sFormat, showWidgetInfo, sToolTip, sVersion, whatIs, XXXbuildMng
_cdata, _wdgPos, bVisibleState, gralMng, name, pixSize
sVersion
Constructor and Description |
---|
GralArea9Panel(GralPos refPos,
java.lang.String posName) |
Modifier and Type | Method and Description |
---|---|
protected GralRectangle |
convertArea(java.lang.String area)
Converts a string given are designation to indices.
|
void |
setFrameAreaBorders(int x1p,
int x2p,
int xRange,
int y1p,
int y2p,
int yRange)
Sets the divisions of the frame.
|
void |
setMinMaxSizeArea(java.lang.String sArea,
int yMinUnit,
int yMaxUnit,
int xMinUnit,
int xMaxUnit)
Sets a Component into a defined area.
|
protected void |
validateFrameAreas()
Set the bounds of all areas.
|
void |
XXXaddFrameArea(java.lang.String sArea,
GralWidget component) |
addTabPanel, canvas, getCreateCanvas, getFocusedWidget, getPanelWidget, getTextFrom, getWidget, getWidgetImplementation, getWidgetList, getWidgetsToResize, getWidgetsVisible, isTabbed, remove, removeWidget, removeWidget, reportAllContent, setFocusedWidget, setGrid, setPanelVisible, setTextIn, setToTabbedPanel, toString, widgetList, XXXsetFocusGThread
clearShowParam, createImplWidget_Gthread, getActionChange, getActionChangeStrict, getActionDrag, getActionDrop, getActionFocused, getActionShow, getBackColor, getCfgElement, getCmd, getCmd, getContentIdent, getContentInfo, getContextMenu, getData, getDataIx, getDataPath, getDataPath, getFloatValue, getFormat, getGralWidget, getHtmlHelp, getImplAccess, getImplWidget, getItsPanel, getLongValue, getName, getShowMethod, getShowParam, getsToolTip, getText, getValue, getVariable, getVariableFromContentInfo, isChanged, isEditable, isGraphicDisposed, isInFocus, isNotEditableOrShouldInitialize, isVisible, redraw, redraw, redraw, redraw1, redrawOnlyDynamics, refreshFromVariable, refreshFromVariable, removeImplWidget_Gthread, requestNewValueForVariable, setActionChange, setActionFocused, setActionMouse, setActionShow, setBackColor, setBackgroundColor, setBoundsPixel, setCfgElement, setCmd, setContentIdent, setContentInfo, setData, setDataIx, setDataPath, setDragEnable, setDropEnable, setEditable, setFocus, setFocus, setForegroundColor, setFormat, setHtmlHelp, setLineColor, setLongValue, setMinMax, setPrimaryWidgetOfPanel, setText, setTextColor, setToolTip, setToPanel, setValue, setValue, setValue, setValue, setVariable, setVisible, specifyActionChange, specifyContextMenu, stop, toString, XXXgetWidgetImplementation, XXXremoveWidgetImplementation, XXXrepaintGthread
checkImplWidgetCreation, createImplWidget, gralMng, hasFocus, pos, resizePostPreparation, setFocused
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
pos
getActionChange, getBackColor, getCmd, getContentIdent, getContentInfo, getData, getDataPath, getImplWidget, isChanged, isEditable, isGraphicDisposed, isNotEditableOrShouldInitialize, redraw, redraw, refreshFromVariable, refreshFromVariable, setBackColor, setBackgroundColor, setBoundsPixel, setCmd, setContentIdent, setData, setDataPath, setEditable, setFocus, setForegroundColor, setHtmlHelp, setLineColor, setText, setTextColor
getImplAccess, getName, gralMng, isInFocus, isVisible, setFocus, setFocused, setVisible
public static final int version
org.vishia.gral.area9.GralArea9MainCmd
.
The last one should be removed in future. org.vishia.mainCmd.MainCmd
which was one of the first ideas in my Java programming.
protected short[] xpFrameArea
protected short[] ypFrameArea
private final short[] xMinGralSize
private final short[] yMinGralSize
private final short[] xMaxGralSize
private final short[] yMaxGralSize
public GralArea9Panel(GralPos refPos, java.lang.String posName)
public void setFrameAreaBorders(int x1p, int x2p, int xRange, int y1p, int y2p, int yRange)
+=======+===============+===========+ | A1 | B1 | C1 | +-------+---------------+-----------+ | A1 | B2 | C2 | | | | | +-------+---------------+-----------+ | A3 | B3 | C3 | | | | | +=======+===============+===========+
x1p
- percent from left for first vertical divide line.x2p
- percent from left for second vertical divide line.y1p
- percent from left for first horizontal divide line.y2p
- percent from left for first horizontal divide line.public void XXXaddFrameArea(java.lang.String sArea, GralWidget component)
public void setMinMaxSizeArea(java.lang.String sArea, int yMinUnit, int yMaxUnit, int xMinUnit, int xMaxUnit) throws java.lang.IndexOutOfBoundsException
#setFrameAreaBorders(int, int, int, int)
.
It should be called only in the GUI-Thread.xArea
- 1 to 3 for left, middle, rightyArea
- 1 to 3 for top, middle, bottomdxArea
- 1 to 3 for 1 field to 3 fields to right.dyArea
- 1 to 3 for 1 field to 3 field to bottomcomponent
- The component.java.lang.IndexOutOfBoundsException
- if the arguments are false or the area is occupied already.protected void validateFrameAreas()
GralWindow.getPixelPositionSize()
to get the size of working area of the whole windowprotected GralRectangle convertArea(java.lang.String area)
area
- A, B , C for column, 1, 2, 3 for row.
Write "A1" or "1A" for a one-area rectangle, or "A1C2" or also "1A2C" for a comprehensive area.