eXept Software AG Logo

Smalltalk/X Webserver

Documentation of class 'Layout':

Home

Documentation
www.exept.de
Everywhere
for:
[back]

Class: Layout


Inheritance:

   Object
   |
   +--Layout
      |
      +--LayoutOrigin

Package:
stx:libview2
Category:
Graphics-Geometry
Version:
rev: 1.23 date: 2021/01/20 14:37:35
user: cg
file: Layout.st directory: libview2
module: stx stc-classLibrary: libview2

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 superview's
size and are to return a component's 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.

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.

Class protocol:

instance creation
o  new
return a new initialized instance

queries
o  isAbstract
Return if this class is an abstract class.
True is returned here for myself only; false for subclasses.
Abstract subclasses must redefine this again.


Instance protocol:

computing
o  rectangleRelativeTo: superRectangle preferred: prefRectHolder
compute the rectangle represented by the receiver,
given the superView's rectangle and the view's preferredExtent.
Must be implemented by concrete subclasses.

** This method must be redefined in concrete classes (subclassResponsibility) **

converting
o  asLayout
return the receiver

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

** This method must be redefined in concrete classes (subclassResponsibility) **

queries
o  isAlignmentOrigin
return true, if this is an alignmentOrigin

o  isLayout
return true, if the receiver 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



ST/X 7.7.0.0; WebServer 1.702 at 20f6060372b9.unknown:8081; Mon, 14 Oct 2024 01:02:29 GMT