SimpleBorder.st
author Claus Gittinger <cg@exept.de>
Fri, 23 Oct 2009 17:23:52 +0200
changeset 5393 429ab467ebbd
parent 5375 0fd570afede6
child 5410 03d42dd62a01
permissions -rw-r--r--
category

"
 COPYRIGHT (c) 1997 by eXept Software AG
 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.
"
"{ Package: 'stx:libview' }"

AbstractBorder subclass:#SimpleBorder
	instanceVariableNames:'color width'
	classVariableNames:''
	poolDictionaries:''
	category:'Graphics-Support'
!

!SimpleBorder class methodsFor:'documentation'!

copyright
"
 COPYRIGHT (c) 1997 by eXept Software AG
 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.
"
!

documentation
"
    extracted from Border.

    [author:]
        Claus Gittinger
"
! !

!SimpleBorder methodsFor:'accessing'!

bottom
    ^ width
!

bottomColor
    ^ color
!

left
    ^ width
!

leftColor
    ^ color
!

right
    ^ width
!

rightColor
    ^ color
!

setBorderColor:newColor
    "set all four colors"

    color := newColor
!

setBorderWidth:newBorderWidth
    "set all four widths"

    width := newBorderWidth
!

top
    ^ width
!

topColor
    ^ color
! !

!SimpleBorder methodsFor:'queries'!

allSidesEqual:aSmallInteger
    ^ width == aSmallInteger
! !

!SimpleBorder class methodsFor:'documentation'!

version_CVS
    ^ '$Header: /cvs/stx/stx/libview/SimpleBorder.st,v 1.2 2009-10-23 15:23:52 cg Exp $'
! !