Subversion-Projekte lars-tiefland.php_share

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
1 lars 1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
2
<HTML>
3
<HEAD>
4
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=iso-iso-8859-1">
5
<LINK REL="Start" HREF="index.html">
6
<LINK REL="Contents" HREF="toc.html">
7
<LINK REL="Prev" HREF="474AddingadditionalfontstoJpGraph.html">
8
<LINK REL="Next" HREF="48SpecifyingcolorsinJpGraph.html">
9
<STYLE TYPE="text/css"><!--
10
BODY { font-family: serif }
11
H1 { font-family: sans-serif }
12
H2 { font-family: sans-serif }
13
H3 { font-family: sans-serif }
14
H4 { font-family: sans-serif }
15
H5 { font-family: sans-serif }
16
H6 { font-family: sans-serif }
17
SUB { font-size: smaller }
18
SUP { font-size: smaller }
19
PRE { font-family: monospace }
20
A { text-decoration: none }
21
--></STYLE>
22
</HEAD>
23
<BODY>
24
<A HREF="toc.html">Contents</A>
25
<A HREF="474AddingadditionalfontstoJpGraph.html">Previous</A>
26
<A HREF="48SpecifyingcolorsinJpGraph.html">Next</A>
27
<HR NOSHADE>
28
<H3><A NAME="4_7_5">4.7.5 Understanding text alignment in JpGraph</A></H3>
29
<P> For everyday use of JpGraph understanding of the alignment of text
30
 strings in not necessary. However, if you like to add arbitrary strings
31
 to the graph (with Graph::AddText()) or when working directly on a
32
 canvas it will help understand this.</P>
33
<P> Text is added to a graph with the creation of a <A href="../ref/Text.html#_C_TEXT">
34
Text()</A> object. And the alignment is specified with <A href="../ref/Text.html#_TEXT_ALIGN">
35
Text::Align()</A> Text alignment might actually be a misguiding name.
36
 What you specify is rather the anchor point for the text, i.e. when you
37
 specify that a text should be positioned at position<I> (x,y)</I> how
38
 is that coordinate to be interpretated.</P>
39
<P> The image below shows a text string aligned in the 9 possible
40
 combinations. In the image the red crosses indicate what coordinate
41
 that text string was positioned at. The alignment used for each of the
42
 cases is shown below.<DIV class="example">
43
<BR> <A href="exframes/frame_textalignex1.html" target="blank"><IMG border="0"
44
HEIGHT="494"  src="img/textalignex1.png" WIDTH="480"></A>
45
<BR><B>Figure 2:</B> Specifying alignment (anchor-point) for text
46
 strings <A href="exframes/frame_textalignex1.html" target="blank">[src]</A>
47
&nbsp;
48
<P></P>
49
</DIV></P>
50
<P></P>
51
<P></P>
52
<HR NOSHADE>
53
<A HREF="toc.html">Contents</A>
54
<A HREF="474AddingadditionalfontstoJpGraph.html">Previous</A>
55
<A HREF="48SpecifyingcolorsinJpGraph.html">Next</A>
56
</BODY>
57
</HTML>