Adds a component to the Panel; overriden so that any attempts to add
further components simply replace the old work area, and so that
the abstract separator child created by the DlogTemplateLayout does
not cause infinite recursion when laying the Panel out.
Is the component currently armed? This is the case if the user has
pressed the mouse button over the component, but has not yet released
it, and the pointer is over the component.
If the attachment type is kAttachComponent or kAttachOppositeComponent
then this specifies the component to whose position this component's
is relative for the bottom attachment.
A BulletinBoardLayout is a very simple layout manager; it simply leaves
its children where it finds them, unless they overlap and the
/allowOverlap/ member is set to false, in which is stops them from
overlapping.
Add a set of constraints to one of the children in the layout;
if the child has not yet been added, throw the constraints away
(as the child must have been added to the container before we
can safely add it here.
The DlogTemplateLayout class is an AWT layout manager class which knows
how to lay out its children in a manner mimicking the Motif
Dialog Template as produced by setting the dialogType resource on a
XmMessageBox to XmDIALOG_TEMPLATE.
The real constructor, in a separate method so that the constructor
can be overridden with something which wraps up the input objects
with some Comparable type or similar.
A routine to draw a 3D rectangle using the object's shadow
colours and thickness; pass in the bounding box of the whole
object, and the component on which to draw.
A routine to draw a 3D rectangle using the object's shadow
colours and thickness; pass in the bounding box of the whole
object, and the component on which to draw.
A routine to draw a 3D rectangle using the object's shadow
colours and thickness; pass in the bounding box of the whole
object, and the component on which to draw.
A routine to draw a 3D rectangle using the object's shadow
colours and thickness; pass in the bounding box of the whole
object, and the component on which to draw.
The DrawingAreaLayout is a very simple layout manager - it leaves all
child components where they want to be (that is, it doesn't move them),
unless their position would put them inside the margin space.
Get accessor for the 'adjust last' flag, which determines whether the
last column (row if horizontal) is resized in width (height) to take
advantage of any extra space remaining when the other columns (rows)
have been laid out
What is the multiple's value? (The multiple is the amount (in terms
of the maximum and minimum values) that the scale will move its thumb
when a non-thumb place in the scale is clicked.)
Because the multiple, if it has never been set, is dynamically
calculated, all access to it should be through this method - even
from inside this class.
What is the multiple's value? (The multiple is the amount (in terms
of the maximum and minimum values) that the scale will move its thumb
when a non-thumb place in the scale is clicked.)
Because the multiple, if it has never been set, is dynamically
calculated, all access to it should be through this method - even
from inside this class.
Utility method to get the workarea; also ensures that the title
component actually *is* a child of the given container and removes
the title if it is not.
Method to guess the preferred size of the form; when
calculating the preferred size we use this for a first guess,
then try to get something better through successive
approximation.
The IconDlogTemplateLayout class is an AWT layout manager class which
knows how to lay out its children in a manner mimicking the Motif
Dialog Template as produced by setting the dialogType resource on a
XmMessageBox to anything other than XmDIALOG_TEMPLATE or XmDIALOG_MESSAGE.
Constant to specify that a component is attached a particular
fraction of the distance across the parent component on a particular
side, calculated slightly differently to the kAttachPosition
attachment.
Constant to specify that the title Component should be placed so that
top shadow line of the frame comes up to the baseline of the text in
the title (not implemented)
Constant to specify that the title Component should be in the center of
the frame or that it should be placed so that the top shadow line of the
frame comes halfway up
If the attachment type is kAttachComponent or kAttachOppositeComponent
then this specifies the component to whose position this component's
is relative for the left attachment.
The minimum spacing in pixels between the top of the parent Container
and the top of the child component nearest the top when the
Container is its preferred size
The minimum spacing in pixels between the left of the parent Container
and the rightmost side of the rightmost child component when the
Container is its preferred size
A PanedWindowLayout splits itself vertically, with each of its children
taking up the whole width of the parent container, and a portion of
its height.
The position of the child within the PanedWindowLayout - a child is
moved to this position when its constraints are set, so if another
child already occupies this position, it is 'shifted up' a position,
as are all children in 'higher' positions.
If the attachment type is kAttachComponent or kAttachOppositeComponent
then this specifies the component to whose position this component's
is relative for the right attachment.
This layout manager is the base class for both types of RowColumn emulation;
the tightly-packed one, TightPackedRCLayout, and the column-packed one,
ColumnPackedRCLayout.
As we don't let scale widgets have children, to get the normal Motif
behaviour, you should put the scale in the East or South section of a
BorderLayout, and puts its children in a Container in the Center.
The XmSelectionBox and derived widgets have an unusual kind of layout
behaviour; all components resize to fill the full width of the container,
and one designated component (the list box, in most cases) takes up any
extra vertical space.
A SelectionPanel mimics the Motif XmSelectionBox widget; the setup where
XmNdialogType is set to XmDIALOG_COMMAND is not handled; to get this
sort of component, create a CommandPanel.
Set accessor for the 'adjust last' flag, which determines whether the
last column (row if horizontal) is resized in width (height) to take
advantage of any extra space remaining when the other columns (rows)
have been laid out
An accessor method to allow the specification of the point in the
clip window where the work area is placed if it is smaller than the
clip window; if the value is invalid the change is ignored.
Sets the X offset; newX must be in the range 0..100, where 0 means
that the child's LHS is at the LHS of the clipping window, and 100
means that the child's RHS is at the RHS of the clipping window
Sets the Y offset; newY must be in the range 0..100, where 0 means
that the child's top is at the top of the clipping window, and 100
means that the child's bottom is at the bottom of the clipping window
A Sorter knows how to sort an array of objects which implement the
Comparable interface; it should be constructed with the list, and
then the elements should be read out using the normal Enumeration
interface.
If the attachment type is kAttachComponent or kAttachOppositeComponent
then this specifies the component to whose position this component's
is relative for the top attachment.
A method to add a component to the list of components which did not
have an explicit size set when they were added; called from
layoutContainer() and preferred/minimumLayoutSize().