eXept Software AG Logo

Smalltalk/X Webserver

Documentation of class 'Layout':

Home

everywhere
www.exept.de
for:
[back]

Class: Layout


Inheritance:

   Object
   |
   +--Layout
      |
      +--LayoutOrigin

Package:
stx:libview2
Category:
Graphics-Geometry
Version:
rev: 1.18 date: 2007/03/27 09:20:25
user: cg
file: Layout.st directory: libview2
module: stx stc-classLibrary: libview2
Author:
Claus Gittinger

Description:


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).

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 
    describing the incompatibility verbal (i.e. no code) to the ST/X team.


Related information:

    View
    LayoutOrigin
    LayoutFrame
    AlignmentOrigin

Class protocol:

instance creation
o  new
return a new initialized instance


Instance protocol:

converting
o  asLayout
return the receiver

initialization
o  initialize
setup the instance - to be redefined by concrete subclasses

** This method raises an error - it must be redefined in concrete classes **

queries
o  isAlignmentOrigin
return true, if this is an alignmentOrigin

o  isLayout
return true, if the recevier is a layout object.
Always return true here.

o  isLayoutFrame
return true, if this is a layoutFrame

o  isLayoutOrigin
return true, if this is a layoutOrigin

o  rectangleRelativeTo: superRectangle preferred: prefRectHolder
compute the rectangle represented by the receiver,
given the superViews rectangle and the views preferredExtent.
Must be implemented by concrete subclasses.

** This method raises an error - it must be redefined in concrete classes **



ST/X 6.1.1; WebServer 1.620 at exept:8081; Mon, 21 May 2012 18:25:52 GMT