1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412
|
<html><head><TITLE>TextShape</TITLE></head>
<body>
<H2><A HREF ="#DOC.DOCU" > <IMG BORDER=0 SRC=down.gif></A> class TextShape : public <!2><A HREF="Shape.html#DOC.296.1">Shape</A> </H2><BLOCKQUOTE>
text shape class that displays a character string.
</BLOCKQUOTE>
<hr>
<h2> Inheritance:</h2>
<APPLET CODE="ClassGraph.class" WIDTH=600 HEIGHT=95>
<param name=classes value="CThing,MThing.html,CShape,MShape.html,CTextShape,MTextShape.html">
<param name=before value="M,M,M">
<param name=after value="Md_SP,Md_,M">
<param name=indent value="0,1,2">
<param name=arrowdir value="down">
</APPLET>
<hr>
<DL>
<TABLE>
<DT><h3>Public Methods</h3><DD><TR><TD VALIGN=top><A HREF="#DOC.383.1"> <IMG BORDER=0 SRC=icon1.gif></A> </TD><TD><B>TextShape</B> (<!1><A HREF="ShapeView.html">ShapeView</A> *v, <!1><A HREF="Grafport.html">Grafport</A> *g, <!2><A HREF="Shape.html#DOC.296.1">Shape</A> *<!2><A HREF="TextShape.html#DOC.383.47">parent</A>)<br>
<I></I>
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.383.2"> <IMG BORDER=0 SRC=icon1.gif></A> </TD><TD><B>TextShape</B> (const <!2><A HREF="TextShape.html#DOC.383.1">TextShape</A> &t)<br>
<I></I>
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.383.3"> <IMG BORDER=0 SRC=icon1.gif></A> <!2><A HREF="Shape.html#DOC.296.1">Shape</A>* </TD><TD><B>Clone</B> ()<br>
<I></I>
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.383.4"> <IMG BORDER=0 SRC=icon1.gif></A> void </TD><TD><B>Draw</B> ()<br>
<I></I>
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.383.5"> <IMG BORDER=0 SRC=icon1.gif></A> void </TD><TD><B>Undraw</B> ()<br>
<I></I>
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.383.6"> <IMG BORDER=0 SRC=icon1.gif></A> void </TD><TD><B>DrawDuplicate</B> ()<br>
<I> no duplicate asteriks are possible for text shapes.</I>
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.383.7"> <IMG BORDER=0 SRC=icon1.gif></A> void </TD><TD><B>SetParent</B> (<!2><A HREF="Shape.html#DOC.296.1">Shape</A> *shape)<br>
<I></I>
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.383.8"> <IMG BORDER=0 SRC=icon1.gif></A> <!2><A HREF="Shape.html#DOC.296.1">Shape</A>* </TD><TD><B>GetParent</B> () const <br>
<I></I>
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.383.9"> <IMG BORDER=0 SRC=icon1.gif></A> void </TD><TD><B>SetString</B> (const <!1><A HREF="string.html">string</A> *s)<br>
<I> set text and recalculate the sizes.</I>
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.383.10"> <IMG BORDER=0 SRC=icon1.gif></A> const <!1><A HREF="string.html">string</A>* </TD><TD><B>GetString</B> () const <br>
<I></I>
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.383.11"> <IMG BORDER=0 SRC=icon1.gif></A> <!2><A HREF="TextShape.html#DOC.383.1">TextShape</A>* </TD><TD><B>ChooseTextShape</B> (int, int)<br>
<I></I>
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.383.12"> <IMG BORDER=0 SRC=icon1.gif></A> <!2><A HREF="TextShape.html#DOC.383.1">TextShape</A>* </TD><TD><B>HitTextShape</B> (int x, int y)<br>
<I></I>
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.383.13"> <IMG BORDER=0 SRC=icon1.gif></A> bool </TD><TD><B>InTextArea</B> (int x, int y)<br>
<I></I>
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.383.14"> <IMG BORDER=0 SRC=icon1.gif></A> bool </TD><TD><B>IsTextShape</B> () const <br>
<I></I>
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.383.15"> <IMG BORDER=0 SRC=icon1.gif></A> bool </TD><TD><B>IsEmpty</B> () const <br>
<I></I>
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.383.16"> <IMG BORDER=0 SRC=icon1.gif></A> void </TD><TD><B>SetEmpty</B> ()<br>
<I></I>
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.383.17"> <IMG BORDER=0 SRC=icon1.gif></A> void </TD><TD><B>DrawOutLine</B> (const <!1><A HREF="Point.html">Point</A> *center)<br>
<I> draws a dotted rectangle around the textshape.</I>
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.383.18"> <IMG BORDER=0 SRC=icon1.gif></A> void </TD><TD><B>SetPosition</B> (const <!1><A HREF="Point.html">Point</A> *p, bool snap=False)<br>
<I> set textshape at position (not using grid !).</I>
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.383.19"> <IMG BORDER=0 SRC=icon1.gif></A> bool </TD><TD><B>ContainsPt</B> (int x, int y)<br>
<I> returns if (x,y) is in textshape (not empty string).</I>
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.383.20"> <IMG BORDER=0 SRC=icon1.gif></A> void </TD><TD><B>TextBox</B> (int &wd, int &ht)<br>
<I> return text width and height (depends on font).</I>
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.383.21"> <IMG BORDER=0 SRC=icon1.gif></A> void </TD><TD><B>UpdateAlignment</B> (<!2><A HREF="TextAlign.html#DOC.374.1">TextAlign::Type</A> newtype)<br>
<I></I>
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.383.22"> <IMG BORDER=0 SRC=icon1.gif></A> void </TD><TD><B>SetAlignment</B> (<!2><A HREF="TextAlign.html#DOC.374.1">TextAlign::Type</A> newtype)<br>
<I></I>
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.383.23"> <IMG BORDER=0 SRC=icon1.gif></A> <!2><A HREF="TextAlign.html#DOC.374.1">TextAlign::Type</A> </TD><TD><B>GetAlignment</B> () const <br>
<I></I>
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.383.24"> <IMG BORDER=0 SRC=icon1.gif></A> <!1><A HREF="XFont.html">XFont</A>* </TD><TD><B>GetFont</B> () const <br>
<I></I>
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.383.25"> <IMG BORDER=0 SRC=icon1.gif></A> void </TD><TD><B>SetFont</B> (<!1><A HREF="XFont.html">XFont</A> *ft)<br>
<I></I>
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.383.26"> <IMG BORDER=0 SRC=icon1.gif></A> void </TD><TD><B>UpdateFont</B> (<!1><A HREF="XFont.html">XFont</A> *ft)<br>
<I></I>
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.383.27"> <IMG BORDER=0 SRC=icon1.gif></A> int </TD><TD><B>GetFontHeight</B> () const <br>
<I></I>
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.383.28"> <IMG BORDER=0 SRC=icon1.gif></A> int </TD><TD><B>GetStringHeight</B> () const <br>
<I></I>
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.383.29"> <IMG BORDER=0 SRC=icon1.gif></A> int </TD><TD><B>GetStringWidth</B> () const <br>
<I></I>
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.383.30"> <IMG BORDER=0 SRC=icon1.gif></A> bool </TD><TD><B>IsWellPositioned</B> () const <br>
<I> if wellPositioned = false then current position isn't preferred. </I>
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.383.31"> <IMG BORDER=0 SRC=icon1.gif></A> void </TD><TD><B>SetWellPositioned</B> (bool b)<br>
<I> !wellPositioned indicates parent should recalculate child position.</I>
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.383.32"> <IMG BORDER=0 SRC=icon1.gif></A> const <!1><A HREF="string.html">string</A>* </TD><TD><B>GetDescription</B> () const <br>
<I> returns a string which describes the kind of text shape.</I>
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.383.33"> <IMG BORDER=0 SRC=icon1.gif></A> void </TD><TD><B>SetDescription</B> (const <!1><A HREF="string.html">string</A> *s)<br>
<I></I>
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.383.34"> <IMG BORDER=0 SRC=icon1.gif></A> void </TD><TD><B>SetDescription</B> (const char *s)<br>
<I></I>
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.383.35"> <IMG BORDER=0 SRC=icon1.gif></A> bool </TD><TD><B>IsOneLine</B> () const <br>
<I> </I>
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.383.36"> <IMG BORDER=0 SRC=icon1.gif></A> void </TD><TD><B>SetOneLine</B> (bool o)<br>
<I></I>
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.383.37"> <IMG BORDER=0 SRC=icon1.gif></A> bool </TD><TD><B>IsUnderlined</B> () const <br>
<I> </I>
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.383.38"> <IMG BORDER=0 SRC=icon1.gif></A> void </TD><TD><B>SetUnderlined</B> (bool b)<br>
<I></I>
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.383.39"> <IMG BORDER=0 SRC=icon1.gif></A> void </TD><TD><B>UpdateUnderlined</B> (bool b)<br>
<I></I>
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.383.40"> <IMG BORDER=0 SRC=icon1.gif></A> bool </TD><TD><B>HasTextShape</B> (<!2><A HREF="TextShape.html#DOC.383.1">TextShape</A> *t) const <br>
<I> return if it has t as one of the text shapes.</I>
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.383.41"> <IMG BORDER=0 SRC=icon1.gif></A> bool </TD><TD><B>HasString</B> (const <!1><A HREF="string.html">string</A> *s, bool sens, bool sub) const <br>
<I> textshape contains s as string. </I>
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.383.42"> <IMG BORDER=0 SRC=icon1.gif></A> int </TD><TD><B>ReplaceString</B> (const <!1><A HREF="string.html">string</A> *s1, const <!1><A HREF="string.html">string</A> *s2, bool sens, bool sub)<br>
<I> replace occurrences of s1 by s2 (if allowed by Update).</I>
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.383.43"> <IMG BORDER=0 SRC=icon1.gif></A> bool </TD><TD><B>HasString</B> (const <!1><A HREF="string.html">string</A> *s, bool caseSens, bool substring, <!1><A HREF="List.html">List</A><<!2><A HREF="TextShape.html#DOC.383.1">TextShape</A> *> *list)<br>
<I> puts itself into list when text contains s</I>
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.383.44"> <IMG BORDER=0 SRC=icon1.gif></A> int </TD><TD><B>GetSequence</B> () const <br>
<I></I>
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.383.45"> <IMG BORDER=0 SRC=icon1.gif></A> void </TD><TD><B>SetSequence</B> (int n)<br>
<I></I>
</TD></TR></TABLE></DL>
<hr><H3>Inherited from <A HREF="Shape.html">Shape:</A></h3>
<DL>
<DL>
<DT><h3>Public Fields</h3><DD><DT><IMG SRC=icon2.gif> static const int <B>MIN_HEIGHT</B>
<DT><IMG SRC=icon2.gif> static const int <B>MIN_WIDTH</B>
<DT><IMG SRC=icon2.gif> static const int <B>HANDLE_WIDTH</B>
</DL><DL>
<DT><h3>Public Methods</h3><DD><DT><IMG SRC=icon2.gif> bool <B>IsShape</B>() const
<DT><IMG SRC=icon2.gif> virtual void <B>UpdatePosition</B>(const <!1><A HREF="Point.html">Point</A> *<!2><A HREF="Shape.html#DOC.296.90">position</A>, bool snap=True)
<DT><IMG SRC=icon2.gif> virtual void <B>UpdateSize</B>(int w, int h)
<DT><IMG SRC=icon2.gif> virtual void <B>UpdateMove</B>(const <!1><A HREF="Point.html">Point</A> *delta)
<DT><IMG SRC=icon2.gif> virtual void <B>UpdateSelect</B>(bool s)
<DT><IMG SRC=icon2.gif> virtual void <B>UpdateFirstSelect</B>(bool s)
<DT><IMG SRC=icon2.gif> virtual void <B>UpdateColor</B>(<!1><A HREF="string.html">string</A> *<!2><A HREF="Shape.html#DOC.296.97">color</A>)
<DT><IMG SRC=icon2.gif> virtual void <B>SetSelect</B>(bool s)
<DT><IMG SRC=icon2.gif> virtual void <B>SetFirstSelect</B>(bool s)
<DT><IMG SRC=icon2.gif> bool <B>IsFirstSelected</B>() const
<DT><IMG SRC=icon2.gif> void <B>SetVisible</B>(bool s)
<DT><IMG SRC=icon2.gif> void <B>SetSubject</B>(<!1><A HREF="Subject.html">Subject</A> *s)
<DT><IMG SRC=icon2.gif> virtual void <B>SetView</B>(<!1><A HREF="ShapeView.html">ShapeView</A> *v)
<DT><IMG SRC=icon2.gif> <!1><A HREF="Subject.html">Subject</A>* <B>GetSubject</B>() const
<DT><IMG SRC=icon2.gif> <!1><A HREF="ShapeView.html">ShapeView</A>* <B>GetView</B>() const
<DT><IMG SRC=icon2.gif> virtual void <B>SetGrafport</B>(<!1><A HREF="Grafport.html">Grafport</A> *g)
<DT><IMG SRC=icon2.gif> void <B>SetColor</B>(const <!1><A HREF="string.html">string</A> *c)
<DT><IMG SRC=icon2.gif> const <!1><A HREF="string.html">string</A>* <B>GetColor</B>() const
<DT><IMG SRC=icon2.gif> virtual void <B>Move</B>(const <!1><A HREF="Point.html">Point</A> *delta)
<DT><IMG SRC=icon2.gif> virtual void <B>AdjustSize</B>()
<DT><IMG SRC=icon2.gif> virtual <!1><A HREF="Point.html">Point</A> <B>GiveSnp</B>(<!1><A HREF="Point.html">Point</A>) const
<DT><IMG SRC=icon2.gif> virtual <!1><A HREF="Point.html">Point</A> <B>GiveSnp</B>(<!1><A HREF="Point.html">Point</A>, int, int, int &)
<DT><IMG SRC=icon2.gif> virtual <!1><A HREF="Point.html">Point</A> <B>GiveOrthoSnp</B>(<!1><A HREF="Point.html">Point</A> to) const
<DT><IMG SRC=icon2.gif> void <B>SetHandles</B>(int n)
<DT><IMG SRC=icon2.gif> virtual int <B>HitHandles</B>(int x, int y)
<DT><IMG SRC=icon2.gif> const <!1><A HREF="Point.html">Point</A>* <B>GetPosition</B>() const
<DT><IMG SRC=icon2.gif> const <!1><A HREF="Point.html">Point</A>* <B>GetTopLeft</B>() const
<DT><IMG SRC=icon2.gif> bool <B>IsSelected</B>() const
<DT><IMG SRC=icon2.gif> bool <B>IsVisible</B>() const
<DT><IMG SRC=icon2.gif> bool <B>IsDuplicate</B>() const
<DT><IMG SRC=icon2.gif> int <B>GetWidth</B>() const
<DT><IMG SRC=icon2.gif> int <B>GetHeight</B>() const
<DT><IMG SRC=icon2.gif> void <B>UndrawDuplicate</B>()
<DT><IMG SRC=icon2.gif> void <B>SetDuplicate</B>(bool b)
<DT><IMG SRC=icon2.gif> void <B>UpdateDuplicate</B>(bool b)
<DT><IMG SRC=icon2.gif> virtual bool <B>IsLine</B>() const
<DT><IMG SRC=icon2.gif> virtual int <B>GetLeftMost</B>() const
<DT><IMG SRC=icon2.gif> virtual int <B>GetTopMost</B>() const
<DT><IMG SRC=icon2.gif> virtual int <B>GetRightMost</B>() const
<DT><IMG SRC=icon2.gif> virtual int <B>GetBottomMost</B>() const
<DT><IMG SRC=icon2.gif> void <B>WriteMembers</B>(<!1><A HREF="OutputFile.html">OutputFile</A> *ofile)
<DT><IMG SRC=icon2.gif> bool <B>ReadMembers</B>(<!1><A HREF="InputFile.html">InputFile</A> *f, double format)
<DT><IMG SRC=icon2.gif> virtual bool <B>SetAssocSubject</B>(<!1><A HREF="AssocList.html">AssocList</A> *)
<DT><IMG SRC=icon2.gif> bool <B>SetAssocView</B>(<!1><A HREF="AssocList.html">AssocList</A> *)
<DT><IMG SRC=icon2.gif> bool <B>CheckReferences</B>()
<DT><IMG SRC=icon2.gif> virtual void <B>SetTextShape</B>()
<DT><IMG SRC=icon2.gif> virtual bool <B>HasNameString</B>(const <!1><A HREF="string.html">string</A> *, bool, bool) const
<DT><IMG SRC=icon2.gif> virtual void <B>MoveRaw</B>(const <!1><A HREF="Point.html">Point</A> *delta)
</DL><DL>
<DT><h3>Protected Fields</h3><DD><DT><IMG SRC=icon2.gif> static const int <B>MIN_HANDLES</B>
</DL><DL>
<DT><h3>Protected Methods</h3><DD><DT><IMG SRC=icon2.gif> <!1><A HREF="Grafport.html">Grafport</A>* <B>GetGrafport</B>() const
<DT><IMG SRC=icon2.gif> virtual void <B>SetDrawAttributes</B>()
<DT><IMG SRC=icon2.gif> void <B>SetOutlineAttributes</B>()
<DT><IMG SRC=icon2.gif> virtual void <B>SetSize</B>(int w, int h)
<DT><IMG SRC=icon2.gif> virtual void <B>SnapTopleft</B>()
<DT><IMG SRC=icon2.gif> virtual void <B>SnapPosition</B>()
<DT><IMG SRC=icon2.gif> void <B>SetWidth</B>(int w)
<DT><IMG SRC=icon2.gif> void <B>SetHeight</B>(int h)
<DT><IMG SRC=icon2.gif> void <B>SetNrHandles</B>(int n)
<DT><IMG SRC=icon2.gif> <!1><A HREF="DiagramViewer.html">DiagramViewer</A>* <B>GetViewer</B>() const
<DT><IMG SRC=icon2.gif> void <B>PositiveCoord</B>(const <!1><A HREF="Point.html">Point</A>*)
<DT><IMG SRC=icon2.gif> virtual void <B>DrawSelect</B>()
<DT><IMG SRC=icon2.gif> virtual void <B>DrawGraySelect</B>()
<DT><IMG SRC=icon2.gif> virtual void <B>UndrawSelect</B>()
<DT><IMG SRC=icon2.gif> virtual void <B>UndrawGraySelect</B>()
<DT><IMG SRC=icon2.gif> void <B>SetTopLeft</B>(const <!1><A HREF="Point.html">Point</A> *topLeft)
<DT><IMG SRC=icon2.gif> virtual void <B>SetPositionHandles</B>()
<DT><IMG SRC=icon2.gif> void <B>ForcePosition</B>(const <!1><A HREF="Point.html">Point</A> *<!2><A HREF="Shape.html#DOC.296.90">position</A>)
</DL></DL>
<hr><H3>Inherited from <A HREF = "Thing.html"> Thing:</A></h3>
<DL>
<DL>
<DT><h3>Public Classes</h3><DD><DT><IMG SRC=icon2.gif> enum <B>AssocType</B>
</DL><DL>
<DT><h3>Public Methods</h3><DD><DT><IMG SRC=icon2.gif> unsigned long <B>GetId</B>()
<DT><IMG SRC=icon2.gif> void <B>SetId</B>(unsigned long val)
<DT><IMG SRC=icon2.gif> virtual bool <B>IsSubject</B>() const
<DT><IMG SRC=icon2.gif> virtual bool <B>IsView</B>() const
<DT><IMG SRC=icon2.gif> virtual int <B>GetClassType</B>() const
<DT><IMG SRC=icon2.gif> void <B>Write</B>(<!1><A HREF="OutputFile.html">OutputFile</A> *ofile)
<DT><IMG SRC=icon2.gif> virtual bool <B>SetReferences</B>(<!1><A HREF="AssocList.html">AssocList</A> *)
</DL></DL>
<A NAME="DOC.DOCU">
<hr>
<h2> Documentation </h2>
<BLOCKQUOTE>
text shape class that displays a character string.
</BLOCKQUOTE>
<DL>
<A NAME="TextShape">
<A NAME ="DOC.383.1">
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> TextShape(<!1><A HREF="ShapeView.html">ShapeView</A> *v, <!1><A HREF="Grafport.html">Grafport</A> *g, <!2><A HREF="Shape.html#DOC.296.1">Shape</A> *<!2><A HREF="TextShape.html#DOC.383.47">parent</A>)</B></TT>
<DL></DL><P>
<A NAME="TextShape">
<A NAME ="DOC.383.2">
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> TextShape(const <!2><A HREF="TextShape.html#DOC.383.1">TextShape</A> &t)</B></TT>
<DL></DL><P>
<A NAME="Clone">
<A NAME ="DOC.383.3">
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> <!2><A HREF="Shape.html#DOC.296.1">Shape</A>* Clone()</B></TT>
<DL></DL><P>
<A NAME="Draw">
<A NAME ="DOC.383.4">
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> void Draw()</B></TT>
<DL></DL><P>
<A NAME="Undraw">
<A NAME ="DOC.383.5">
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> void Undraw()</B></TT>
<DL></DL><P>
<A NAME="DrawDuplicate">
<A NAME ="DOC.383.6">
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> void DrawDuplicate()</B></TT>
<DD> no duplicate asteriks are possible for text shapes.
<DL></DL><P>
<A NAME="SetParent">
<A NAME ="DOC.383.7">
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> void SetParent(<!2><A HREF="Shape.html#DOC.296.1">Shape</A> *shape)</B></TT>
<DL></DL><P>
<A NAME="GetParent">
<A NAME ="DOC.383.8">
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> <!2><A HREF="Shape.html#DOC.296.1">Shape</A>* GetParent() const </B></TT>
<DL></DL><P>
<A NAME="SetString">
<A NAME ="DOC.383.9">
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> void SetString(const <!1><A HREF="string.html">string</A> *s)</B></TT>
<DD> set text and recalculate the sizes.
<DL></DL><P>
<A NAME="GetString">
<A NAME ="DOC.383.10">
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> const <!1><A HREF="string.html">string</A>* GetString() const </B></TT>
<DL></DL><P>
<A NAME="ChooseTextShape">
<A NAME ="DOC.383.11">
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> <!2><A HREF="TextShape.html#DOC.383.1">TextShape</A>* ChooseTextShape(int, int)</B></TT>
<DL></DL><P>
<A NAME="HitTextShape">
<A NAME ="DOC.383.12">
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> <!2><A HREF="TextShape.html#DOC.383.1">TextShape</A>* HitTextShape(int x, int y)</B></TT>
<DL></DL><P>
<A NAME="InTextArea">
<A NAME ="DOC.383.13">
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> bool InTextArea(int x, int y)</B></TT>
<DL></DL><P>
<A NAME="IsTextShape">
<A NAME ="DOC.383.14">
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> bool IsTextShape() const </B></TT>
<DL></DL><P>
<A NAME="IsEmpty">
<A NAME ="DOC.383.15">
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> bool IsEmpty() const </B></TT>
<DL></DL><P>
<A NAME="SetEmpty">
<A NAME ="DOC.383.16">
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> void SetEmpty()</B></TT>
<DL></DL><P>
<A NAME="DrawOutLine">
<A NAME ="DOC.383.17">
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> void DrawOutLine(const <!1><A HREF="Point.html">Point</A> *center)</B></TT>
<DD> draws a dotted rectangle around the textshape.
<DL></DL><P>
<A NAME="SetPosition">
<A NAME ="DOC.383.18">
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> void SetPosition(const <!1><A HREF="Point.html">Point</A> *p, bool snap=False)</B></TT>
<DD> set textshape at position (not using grid !).
<DL></DL><P>
<A NAME="ContainsPt">
<A NAME ="DOC.383.19">
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> bool ContainsPt(int x, int y)</B></TT>
<DD> returns if (x,y) is in textshape (not empty string).
<DL></DL><P>
<A NAME="TextBox">
<A NAME ="DOC.383.20">
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> void TextBox(int &wd, int &ht)</B></TT>
<DD> return text width and height (depends on font).
<DL></DL><P>
<A NAME="UpdateAlignment">
<A NAME ="DOC.383.21">
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> void UpdateAlignment(<!2><A HREF="TextAlign.html#DOC.374.1">TextAlign::Type</A> newtype)</B></TT>
<DL></DL><P>
<A NAME="SetAlignment">
<A NAME ="DOC.383.22">
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> void SetAlignment(<!2><A HREF="TextAlign.html#DOC.374.1">TextAlign::Type</A> newtype)</B></TT>
<DL></DL><P>
<A NAME="GetAlignment">
<A NAME ="DOC.383.23">
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> <!2><A HREF="TextAlign.html#DOC.374.1">TextAlign::Type</A> GetAlignment() const </B></TT>
<DL></DL><P>
<A NAME="GetFont">
<A NAME ="DOC.383.24">
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> <!1><A HREF="XFont.html">XFont</A>* GetFont() const </B></TT>
<DL></DL><P>
<A NAME="SetFont">
<A NAME ="DOC.383.25">
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> void SetFont(<!1><A HREF="XFont.html">XFont</A> *ft)</B></TT>
<DL></DL><P>
<A NAME="UpdateFont">
<A NAME ="DOC.383.26">
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> void UpdateFont(<!1><A HREF="XFont.html">XFont</A> *ft)</B></TT>
<DL></DL><P>
<A NAME="GetFontHeight">
<A NAME ="DOC.383.27">
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> int GetFontHeight() const </B></TT>
<DL></DL><P>
<A NAME="GetStringHeight">
<A NAME ="DOC.383.28">
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> int GetStringHeight() const </B></TT>
<DL></DL><P>
<A NAME="GetStringWidth">
<A NAME ="DOC.383.29">
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> int GetStringWidth() const </B></TT>
<DL></DL><P>
<A NAME="IsWellPositioned">
<A NAME ="DOC.383.30">
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> bool IsWellPositioned() const </B></TT>
<DD> if wellPositioned = false then current position isn't preferred.
<DL></DL><P>
<A NAME="SetWellPositioned">
<A NAME ="DOC.383.31">
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> void SetWellPositioned(bool b)</B></TT>
<DD> !wellPositioned indicates parent should recalculate child position.
<DL></DL><P>
<A NAME="GetDescription">
<A NAME ="DOC.383.32">
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> const <!1><A HREF="string.html">string</A>* GetDescription() const </B></TT>
<DD> returns a string which describes the kind of text shape.
<DL></DL><P>
<A NAME="SetDescription">
<A NAME ="DOC.383.33">
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> void SetDescription(const <!1><A HREF="string.html">string</A> *s)</B></TT>
<DL></DL><P>
<A NAME="SetDescription">
<A NAME ="DOC.383.34">
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> void SetDescription(const char *s)</B></TT>
<DL></DL><P>
<A NAME="IsOneLine">
<A NAME ="DOC.383.35">
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> bool IsOneLine() const </B></TT>
<DD>
<DL></DL><P>
<A NAME="SetOneLine">
<A NAME ="DOC.383.36">
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> void SetOneLine(bool o)</B></TT>
<DL></DL><P>
<A NAME="IsUnderlined">
<A NAME ="DOC.383.37">
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> bool IsUnderlined() const </B></TT>
<DD>
<DL></DL><P>
<A NAME="SetUnderlined">
<A NAME ="DOC.383.38">
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> void SetUnderlined(bool b)</B></TT>
<DL></DL><P>
<A NAME="UpdateUnderlined">
<A NAME ="DOC.383.39">
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> void UpdateUnderlined(bool b)</B></TT>
<DL></DL><P>
<A NAME="HasTextShape">
<A NAME ="DOC.383.40">
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> bool HasTextShape(<!2><A HREF="TextShape.html#DOC.383.1">TextShape</A> *t) const </B></TT>
<DD> return if it has t as one of the text shapes.
<DL></DL><P>
<A NAME="HasString">
<A NAME ="DOC.383.41">
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> bool HasString(const <!1><A HREF="string.html">string</A> *s, bool sens, bool sub) const </B></TT>
<DD> textshape contains s as string.
<DL></DL><P>
<A NAME="ReplaceString">
<A NAME ="DOC.383.42">
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> int ReplaceString(const <!1><A HREF="string.html">string</A> *s1, const <!1><A HREF="string.html">string</A> *s2, bool sens, bool sub)</B></TT>
<DD> replace occurrences of s1 by s2 (if allowed by Update).
<DL></DL><P>
<A NAME="HasString">
<A NAME ="DOC.383.43">
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> bool HasString(const <!1><A HREF="string.html">string</A> *s, bool caseSens, bool substring, <!1><A HREF="List.html">List</A><<!2><A HREF="TextShape.html#DOC.383.1">TextShape</A> *> *list)</B></TT>
<DD> puts itself into list when text contains s
<DL></DL><P>
<A NAME="GetSequence">
<A NAME ="DOC.383.44">
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> int GetSequence() const </B></TT>
<DL></DL><P>
<A NAME="SetSequence">
<A NAME ="DOC.383.45">
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> void SetSequence(int n)</B></TT>
<DL></DL><P></DL>
<hr>
<DL><DT><B>This class has no child classes.</B></DL>
<DL></DL><P><I><A HREF="aindex.html"> alphabetic index</A></I> <I><A HREF="HIER.html"> hierarchy of classes</A></I><P><hr>
<A HREF="http://www.zib.de/Visual/software/doc++/index.html"><IMG BORDER=0 ALIGN=RIGHT SRC=logo.gif></A>
<P Align=Center><I>this page has been generated automatically by doc++</I>
<P Align=Center><I>(c)opyright by <A HREF="http://www.zib.de/zoeckler/"> Malte Zöckler</A>, <A HREF="mailto:wunderling@zib.de"> Roland Wunderling </A><br>contact: <A HREF="mailto:doc++@zib.de"> doc++@zib.de</a></I>
</BODY>
|