File: node22.html

package info (click to toggle)
viewmol 2.3-5
  • links: PTS
  • area: main
  • in suites: woody
  • size: 9,424 kB
  • ctags: 2,239
  • sloc: ansic: 29,098; sh: 909; makefile: 513; python: 238
file content (82 lines) | stat: -rw-r--r-- 3,387 bytes parent folder | download
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
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<!--****************************************************************************
*                                                                              *
*                                   Viewmol                                    *
*                                                                              *
*                            N O D E 2 2 . H T M L                             *
*                                                                              *
*                  Copyright (c) Joerg-R. Hill, December 2000                  *
*                                                                              *
********************************************************************************
*-->
<!--Converted with LaTeX2HTML 99.2beta8 (1.46)
original version by:  Nikos Drakos, CBLU, University of Leeds
* revised and updated by:  Marcus Hennecke, Ross Moore, Herb Swan
* with significant contributions from:
  Jens Lippmann, Marek Rouchal, Martin Wilck and others -->
<HTML>
<HEAD>
<TITLE>The label module</TITLE>
<META NAME="description" CONTENT="The label module">
<META NAME="keywords" CONTENT="viewmol">
<META NAME="resource-type" CONTENT="document">
<META NAME="distribution" CONTENT="global">

<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="LaTeX2HTML v99.2beta8">
<META HTTP-EQUIV="Content-Style-Type" CONTENT="text/css">

<LINK REL="STYLESHEET" HREF="viewmol.css">

</HEAD>

<BODY LANG="EN" BGCOLOR="#FFFFFF">

<H2><A NAME="SECTION00095000000000000000">
The <TT>label</TT> module</A>
</H2>
<dl><dt><b><a name='l2h-30'><tt class='function'>label</tt></a></b> (<big>[</big><var>mode</var><big>]</big>)
<dd>
Creates a new label. <var>mode</var> is an optional integer denoting whether the
label is editable by the user, movable by the user, or both. In the first
case <var>mode</var> has to be set to the integer constant <TT>EDITABLE</TT>, in the
second case to the integer constant <TT>MOVABLE</TT>, and in the last case to
<TT>EDITABLE | MOVABLE</TT>. The integer constants are defined in the <TT>label</TT>
module. The default mode is editable and movable.
</dl>

<P>
<dl><dt><b><a name='l2h-31'><tt class='function'>translate</tt></a></b> (<var>x, y, z</var>)
<dd>
Sets the position of a label. <var>x</var>, <var>y</var>, and <var>z</var> are integers specifying
the coordinates of the label in pixels. The z coordinate has no effect.
</dl>

<P>
<dl><dt><b><a name='l2h-32'><tt class='function'>text</tt></a></b> (<big>[</big><var>text</var><big>]</big>)
<dd>
Sets or returns the text of an label. If present <var>text</var> has to be a string.
The maximum number of characters for a label is limited to 255.
</dl>

<P>
<dl><dt><b><a name='l2h-33'><tt class='function'>setColor</tt></a></b> (<var>red, green, blue, alpha</var>)
<dd>
Sets the red, green, blue, and alpha components of a label's color. <var>red</var>,
<var>green</var>, <var>blue</var>, and <var>alpha</var> have to be floats between 0.0 and 1.0.
The default color for a label is black.
</dl>

<P>
<dl><dt><b><a name='l2h-34'><tt class='function'>delete</tt></a></b> ()
<dd>
Deletes a label.
</dl>

<P>
<BR><HR>
<ADDRESS>
<A HREF="mailto:joehill@users.sourceforge.net"><I>Jrg-Rdiger Hill</I></A><BR>Sun Dec 10 17:38:35 MET 2000
</ADDRESS>
</BODY>
</HTML>