--- a/LayoutOrigin.st Fri Aug 03 17:53:12 2012 +0200
+++ b/LayoutOrigin.st Fri Aug 03 17:53:52 2012 +0200
@@ -9,7 +9,6 @@
other person. No title to or ownership of the software is
hereby transferred.
"
-
"{ Package: 'stx:libview2' }"
Layout subclass:#LayoutOrigin
@@ -323,17 +322,27 @@
!LayoutOrigin methodsFor:'printing & storing'!
-displayString
+displayOn:aGCOrStream
"return a printed representation of the receiver for displaying"
- ^ (self class name) , '('
- , 'l: ' , leftFraction displayString
- , '+' , leftOffset displayString
- , ' t: ' , topFraction displayString
- , '+' , topOffset displayString
- , ')'
+ "/ what a kludge - Dolphin and Squeak mean: printOn: a stream;
+ "/ ST/X (and some old ST80's) mean: draw-yourself on a GC.
+ (aGCOrStream isStream) ifFalse:[
+ ^ super displayOn:aGCOrStream
+ ].
- "Modified: 20.9.1997 / 11:40:19 / cg"
+ aGCOrStream
+ nextPutAll:self class name;
+ nextPutAll:'(l: '.
+
+ leftFraction displayOn:aGCOrStream.
+ aGCOrStream nextPut:$+.
+ leftOffset displayOn:aGCOrStream.
+ aGCOrStream nextPutAll:' t: '.
+ topFraction displayOn:aGCOrStream.
+ aGCOrStream nextPut:$+.
+ topOffset displayOn:aGCOrStream.
+ aGCOrStream nextPut:$).
! !
!LayoutOrigin methodsFor:'queries'!
@@ -390,5 +399,5 @@
!LayoutOrigin class methodsFor:'documentation'!
version
- ^ '$Header: /cvs/stx/stx/libview2/LayoutOrigin.st,v 1.24 2006-07-03 16:10:12 stefan Exp $'
+ ^ '$Header: /cvs/stx/stx/libview2/LayoutOrigin.st,v 1.25 2012-08-03 15:53:52 stefan Exp $'
! !