~ubuntu-branches/ubuntu/intrepid/tcm/intrepid

« back to all changes in this revision

Viewing changes to doc/sourcecode/TextShape.html

  • Committer: Bazaar Package Importer
  • Author(s): Otavio Salvador
  • Date: 2003-07-03 20:08:21 UTC
  • Revision ID: james.westby@ubuntu.com-20030703200821-se4xtqx25e5miczi
Tags: upstream-2.20
ImportĀ upstreamĀ versionĀ 2.20

Show diffs side-by-side

added added

removed removed

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