|
Class: GridBagConstraints
Object
|
+--GridBagConstraints
- Package:
- stx:libwidg2
- Category:
- Views-Support
- Version:
- rev:
1.4
date: 2006/03/13 15:55:25
- user: cg
- file: GridBagConstraints.st directory: libwidg2
- module: stx stc-classLibrary: libwidg2
- Author:
- Andreas Vogel
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.
GridBagLayoutView
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.
|