eXept Software AG Logo

Smalltalk/X Webserver

Documentation of class 'SimpleBorder':

Home

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

Class: SimpleBorder


Inheritance:

   Object
   |
   +--AbstractBorder
      |
      +--SimpleBorder
         |
         +--MacFlatButtonBorder
         |
         +--RoundedBorder

Package:
stx:libview
Category:
Graphics-Support
Version:
rev: 1.11 date: 2023/11/27 19:34:21
user: cg
file: SimpleBorder.st directory: libview
module: stx stc-classLibrary: libview

Description:


a simple border, where all four sides are drawn in the same solid color

copyright

COPYRIGHT (c) 1997 by Claus Gittinger COPYRIGHT (c) 2009 by eXept Software AG 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.

Instance protocol:

accessing
o  color
the color of the border

o  color: aColor
set the color of the border

displaying
o  displayOn: aGC forDisplayBox: aRectangle
View new
border:(SimpleBorder width:2 color:Color red);
open.


Examples:


    |v1 v2 b|

    v1 := View new extent:100@100.
    v2 := View origin:10@10 corner:90@20 in:v1.
    v2 border:(SimpleBorder new color:Color red).
    v1 openAndWaitUntilVisible.
    |v1 v2 b|

    v1 := View new extent:100@100.
    v2 := View origin:10@10 corner:90@20 in:v1.
    v2 viewBackground:Color yellow.
    v1 openAndWaitUntilVisible.
    v2 border:(b := SimpleBorder new color:Color red).
    Delay waitForSeconds:1.
    b color:Color blue.
    Delay waitForSeconds:1.
    b width:3.
    Delay waitForSeconds:1.
    v2 extent:50@80.
    v2 invalidate.



ST/X 7.7.0.0; WebServer 1.702 at 20f6060372b9.unknown:8081; Sun, 22 Dec 2024 03:09:06 GMT