CharacterArray.st
changeset 2762 59c71fa02ba2
parent 2760 715d662449ea
child 2813 50ae4e415223
equal deleted inserted replaced
2761:2b8658219fd9 2762:59c71fa02ba2
  3059 
  3059 
  3060 displayOn:aGc x:x y:y
  3060 displayOn:aGc x:x y:y
  3061     "display the receiver in a graphicsContext - this method allows
  3061     "display the receiver in a graphicsContext - this method allows
  3062      strings to be used like DisplayObjects."
  3062      strings to be used like DisplayObjects."
  3063 
  3063 
  3064     ^ aGc displayString:self string x:x y:y.
  3064     self displayOn:aGc x:x y:y opaque:false
       
  3065 
       
  3066     "Modified: 11.5.1996 / 14:42:48 / cg"
       
  3067 !
       
  3068 
       
  3069 displayOn:aGC x:x y:y from:start to:stop
       
  3070     "display the receiver on a GC"
       
  3071 
       
  3072     "q&d hack"
       
  3073 
       
  3074     (self copyFrom:start to:stop) displayOn:aGC x:x y:y opaque:false
       
  3075 
       
  3076     "Modified: 12.5.1996 / 12:49:33 / cg"
       
  3077 !
       
  3078 
       
  3079 displayOn:aGc x:x y:y opaque:opq
       
  3080     "display the receiver in a graphicsContext - this method allows
       
  3081      strings to be used like DisplayObjects."
       
  3082 
       
  3083     |s|
       
  3084 
       
  3085     s := self string.
       
  3086     opq ifTrue:[
       
  3087         aGc displayOpaqueString:s x:x y:y.
       
  3088     ] ifFalse:[
       
  3089         aGc displayString:s x:x y:y.
       
  3090     ].
  3065 
  3091 
  3066     "Modified: 11.5.1996 / 14:42:48 / cg"
  3092     "Modified: 11.5.1996 / 14:42:48 / cg"
  3067 !
  3093 !
  3068 
  3094 
  3069 displayOpaqueOn:aGc x:x y:y
  3095 displayOpaqueOn:aGc x:x y:y
  3070     "display the receiver in a graphicsContext - this method allows
  3096     "display the receiver in a graphicsContext - this method allows
  3071      strings to be used like DisplayObjects."
  3097      strings to be used like DisplayObjects."
  3072 
  3098 
  3073     ^ aGc displayOpaqueString:self string x:x y:y.
  3099     self displayOn:aGc x:x y:y opaque:true
  3074 
  3100 
  3075     "Modified: 11.5.1996 / 14:42:48 / cg"
  3101     "Modified: 11.5.1996 / 14:42:48 / cg"
  3076     "Created: 12.5.1996 / 12:28:40 / cg"
  3102     "Created: 12.5.1996 / 12:28:40 / cg"
       
  3103 !
       
  3104 
       
  3105 displayOpaqueOn:aGC x:x y:y from:start to:stop
       
  3106     "display the receiver on a GC"
       
  3107 
       
  3108     "q&d hack"
       
  3109 
       
  3110     (self copyFrom:start to:stop) displayOn:aGC x:x y:y opaque:true
       
  3111 
       
  3112     "Created: 12.5.1996 / 12:29:37 / cg"
       
  3113     "Modified: 12.5.1996 / 12:49:19 / cg"
  3077 ! !
  3114 ! !
  3078 
  3115 
  3079 !CharacterArray methodsFor:'emphasis'!
  3116 !CharacterArray methodsFor:'emphasis'!
  3080 
  3117 
  3081 emphasis
  3118 emphasis
  4950 ! !
  4987 ! !
  4951 
  4988 
  4952 !CharacterArray class methodsFor:'documentation'!
  4989 !CharacterArray class methodsFor:'documentation'!
  4953 
  4990 
  4954 version
  4991 version
  4955     ^ '$Header: /cvs/stx/stx/libbasic/CharacterArray.st,v 1.133 1997-07-16 11:56:53 cg Exp $'
  4992     ^ '$Header: /cvs/stx/stx/libbasic/CharacterArray.st,v 1.134 1997-07-22 07:50:42 ca Exp $'
  4956 ! !
  4993 ! !
  4957 CharacterArray initialize!
  4994 CharacterArray initialize!