|
Class: GridBagConstraints
Object
|
+--GridBagConstraints
- Package:
- stx:libwidg2
- Category:
- Views-Support
- Version:
- rev:
1.5
date: 2021/01/20 14:40:21
- user: cg
- file: GridBagConstraints.st directory: libwidg2
- module: stx stc-classLibrary: libwidg2
The GridBagConstraints class holds the constraints for each child under control of the layouter
GridBagLayoutView. In addition to just be a placeholder for the constraints and some
temporary information during the layout process, the GridBagConstraints class also supports
the decoding and encoding its instance information from and into a literal array. This is
necessary in order to be used as a winSpec element.
For the valid values of each public instance variable see the documentation of the GridBagLayoutView.
copyrightCOPYRIGHT (c) 1998 by Andreas Vogel
COPYRIGHT (c) 1998 by eXept Software AG
All Rights Reserved
This software is furnished under a license and may be used
only in accordance with the terms of that license and with the
inclusion of the above copyright notice. This software may not
be provided or otherwise made available to, or used by, any
other person. No title to or ownership of the software is
hereby transferred.
instance creation
-
new
-
Create an initialized instance of myself.
accessing
-
anchor
-
-
anchor: something
-
-
fill
-
-
fill: something
-
-
gridHeight
-
-
gridHeight: something
-
set the value of the instance variable 'gridHeight'
-
gridWidth
-
-
gridWidth: something
-
set the value of the instance variable 'gridWidth'
-
gridX
-
-
gridX: something
-
set the value of the instance variable 'gridX'
-
gridY
-
-
gridY: something
-
set the value of the instance variable 'gridY'
-
insets
-
-
insets: something
-
-
ipadX
-
-
ipadX: something
-
-
ipadY
-
-
ipadY: something
-
-
minHeight
-
-
minHeight: something
-
-
minWidth
-
-
minWidth: something
-
-
tempHeight
-
-
tempHeight: something
-
-
tempWidth
-
-
tempWidth: something
-
-
tempX
-
-
tempX: something
-
-
tempY
-
-
tempY: something
-
-
weightX
-
-
weightX: something
-
-
weightY
-
-
weightY: something
-
converting
-
fromLiteralArrayEncoding: encoding
-
Read my values from an encoding. The encoding is supposed to be of the form:
(GridBagConstraints
insets: (Insets left: 1 right: 1 top: 1 bottom: 1)
gridX: 1 gridY: 1 gridWidth: 1 gridHeight: 1
weightX: 1.0 weightY: 1.0 ipadX: 1 ipadY: 1 anchor: #CENTER fill: #BOTH
)
This is the reverse to literalArrayEncoding.
Usage example(s):
GridBagConstraints new fromLiteralArrayEncoding:#(GridBagConstraints
insets: #(Insets 96 97 98 99)
gridX: 101
)
#(#GridBagConstraints anchor: #CENTER fill: #BOTH) decodeAsLiteralArray
|
-
fromLiteralArrayEncodingOld: encoding
-
Read my values from an encoding. This is the reverse to literalArrayEncoding.
-
literalArrayEncoding
-
Encode myself as an array, from which a copy of the receiver can be
reconstructed with #decodeAsLiteralArray.
Usage example(s):
GridBagConstraints new literalArrayEncoding
|
-
literalArrayEncodingOld
-
Encode myself as an array, from which a copy of the receiver can be
reconstructed with #decodeAsLiteralArray.
The encoding is:
(GridBagConstraints
#( Insets left right top bottom )
gridX gridY gridWidth gridHeight weightX weightY ipadX ipadY anchor fill
)
initialization
-
initialize
-
Set all non-temporary instance variables to default values.
Warning: no application should depend on this default settings and should always initilize
the constraints themselves.
|