"
COPYRIGHT (c) 1995 by Claus Gittinger
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.
"
Object subclass:#Layout
instanceVariableNames:''
classVariableNames:''
poolDictionaries:''
category:'Graphics-Geometry'
!
!Layout class methodsFor:'documentation'!
copyright
"
COPYRIGHT (c) 1995 by Claus Gittinger
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.
"
!
documentation
"
This is an abstract superclass for geometry controlling objects.
While old smalltalks used relative origin/extent/corner and absolute
origin/corner/extents, these mechanisms are now being removed from the
view itself into geometry controlling objects, which are given a superviews
size and are to return a components size upon request.
This allows more flexible geometry management, since any algorithm can
be implemented (if the existing ones are not sufficient, add you own subclass
and install it as layout-object in your view).
See more info & examples in concrete subclasses:
LayoutOrigin LayoutFrame AlignmentOrigin
Notice: this class was implemented using protocol information
from alpha testers - it may not be complete or compatible to
the corresponding ST-80 class. If you encounter any incompatibilities,
please forward a note to the ST/X team.
"
! !
!Layout class methodsFor:'instance creation'!
new
^ self basicNew initialize
! !
!Layout methodsFor:'initialization'!
initialize
^ self subclassResponsibility
! !
!Layout methodsFor:'queries'!
isLayout
^ true
!
rectangleRelativeTo:superRectangle preferred:prefRect
^ self subclassResponsibility
! !
!Layout class methodsFor:'documentation'!
version
^ '$Header: /cvs/stx/stx/libview2/Layout.st,v 1.9 1996-04-25 11:09:13 cg Exp $'
! !