eXept Software AG Logo

Smalltalk/X Webserver

Documentation of class 'AbstractBorder':

Home

everywhere
www.exept.de
for:
[back]

Class: AbstractBorder


Inheritance:

   Object
   |
   +--AbstractBorder
      |
      +--BeveledBorder
      |
      +--Border
      |
      +--SimpleBorder

Package:
stx:libview
Category:
Graphics-Support
Version:
rev: ? date: ? ?
user: ?
file: ? directory: libview
module: stx stc-classLibrary: libview
Author:
Claus Gittinger

Description:


Extracted from Border.
Common superclass for border-painters.
This will replace the mixture of window-system supported borders and manually
drawn 3D levels (which is ugly, but served me well for almost 20years now).


Class protocol:

instance creation
o  width: borderWidth
create a new instance of the receiver with a border of the given width
(and default color).

o  width: borderWidth color: aColor
create a new instance of the receiver with a border of the given width
and color.


Instance protocol:

accessing
o  color: aColor
set the width

o  level
get the 3D level

o  width
get the width

o  width: aNumber
set the width

o  width: aWidth color: aColor

displaying
o  displayOn: aGC forDisplayBox: aRectangle
display the borders represented by the receiver in the specified rectangle.
The gc is restored after the draw.

queries
o  allSidesEqual: aSmallInteger
true if all four sides have the same border width;
always true here - provided for compatibility

o  displayBoxFor: aRectangle
return a rectangle representing the overall display box of a component
bordered by the receiver, which has bounds of aRectangle.
That is, the argument outset by the receivers borders.

o  insetDisplayBoxFor: aRectangle
return a rectangle representing the display box of a component
bordered by the receiver in the outer bounds, aRectangle.
That is, the argument inset by the receivers borders.



ST/X 6.1.1; WebServer 1.620 at exept:8081; Thu, 17 May 2012 15:39:46 GMT