13 const char *symbol1[] =
14 {
"A",
"B",
"C",
"D",
"E",
"F",
"G",
"H",
"I",
"J",
"K",
"L",
"M",
"N",
15 "O",
"P",
"Q",
"R",
"S",
"T",
"U",
"V",
"W",
"X",
"Y",
"Z",
16 "0",
"1",
"2",
"3",
"4",
"5",
"6",
"7",
"8",
"9",
17 ".",
",",
"+",
"-",
"*",
"/",
"=",
"(",
")",
"{",
"}",
"END"};
19 const char *symbol2[] =
20 {
"a",
"b",
"c",
"d",
"e",
"f",
"g",
"h",
"i",
"j",
"k",
"l",
"m",
"n",
21 "o",
"p",
"q",
"r",
"s",
"t",
"u",
"v",
"w",
"x",
"y",
"z",
22 ":",
";",
"@",
"\\",
"_",
"|",
"%",
23 "@'",
"<",
">",
"[",
"]",
"\42",
"@\43",
"@\136",
24 "@\77",
"@\41",
"@&",
"$",
"@\176",
" ",
"END"};
26 const char *symbol3[] =
27 {
"\241",
"\242",
"\243",
"\244",
"\245",
"\246",
"\247",
"\250",
28 "\251",
"\252",
"\253",
"\254",
"\255",
"\256",
"\257",
"\260",
29 "\261",
"\262",
"\263",
"\264",
"\265",
"\266",
"\267",
"\270",
30 "\271",
"\272",
"\273",
"\274",
"\275",
"\276",
"\277",
"\300",
31 "\301",
"\302",
"\303",
"\304",
"\305",
"\306",
"\307",
"\310",
32 "\311",
"\312",
"\313",
"\314",
"\315",
"\316",
"\317",
"END"};
34 const char *symbol4[] =
35 {
"\321",
"\322",
"\323",
"\324",
"\325",
"\326",
"\327",
"\330",
36 "\331",
"\332",
"\333",
"\334",
"\335",
"\336",
"\337",
"\340",
37 "\341",
"\342",
"\343",
"\344",
"\345",
"\346",
"\347",
"\340",
38 "\351",
"\352",
"\353",
"\354",
"\355",
"\356",
"\357",
"\360",
39 "\361",
"\362",
"\363",
"\364",
"\365",
"\366",
"\367",
"\370",
40 "\371",
"\372",
"\373",
"\374",
"\375",
"\376",
"\377",
"END"};
42 const char *symbol5[] =
43 {
"\177",
"\200",
"\201",
"\202",
"\203",
"\204",
"\205",
"\206",
44 "\207",
"\210",
"\211",
"\212",
"\213",
"\214",
"\215",
"\216",
45 "\217",
"\220",
"\221",
"\222",
"\223",
"\224",
"\225",
"\226",
46 "\227",
"\230",
"\231",
"\232",
"\233",
"\234",
"\235",
"\236",
52 Int_t h = w*yrange/xrange;
55 c1->
Range(0,0,xrange,yrange);
62 table(0.5,0.5*xrange-0.5,yrange,t,symbol1,0);
63 table(0.5*xrange+0.5,xrange-0.5,yrange,t,symbol2,0);
69 "Input characters are standard keyboard characters");
72 c1->
Print(
"pstable1.ps");
75 c2->
Range(0,0,xrange,yrange);
77 table(0.5,0.5*xrange-0.5,yrange,t,symbol3,1);
78 table(0.5*xrange+0.5,xrange-0.5,yrange,t,symbol4,1);
80 "Input characters using backslash and octal numbers");
83 c2->
Print(
"pstable2.ps");
86 c3->
Range(0,0,xrange,yrange);
88 table(0.5,0.5*xrange-0.5,yrange,t,symbol5,1);
90 "Input characters using backslash and octal numbers");
93 c3->
Print(
"pstable3.ps");
96 const char **symbol,
Bool_t octal)
100 for (i=0;i<1000;i++) {
101 if (!strcmp(symbol[i],
"END"))
break;
107 Float_t dy = (y2 - 1 -y1)/(n+1);
120 line->
DrawLine(x1+ dx,y1,x1+ dx,y2);
121 line->
DrawLine(x1+2*dx,y1,x1+2*dx,y2);
122 line->
DrawLine(x1+3*dx,y1,x1+3*dx,y2);
123 line->
DrawLine(x1+4*dx,y1,x1+4*dx,y2);
131 tit->
DrawText(xc3,y2-0.6,
"Special");
136 unsigned char value = *symbol[i];
137 sprintf(text,
"@\\ %3o",value);
139 strcpy(text,symbol[i]);
142 sprintf(text,
"%s",symbol[i]);
144 sprintf(text,
"`%s",symbol[i]);
146 sprintf(text,
"'%s",symbol[i]);
148 sprintf(text,
"~%s",symbol[i]);
virtual TLine * DrawLine(Double_t x1, Double_t y1, Double_t x2, Double_t y2)
Draw this line with new coordinates.
virtual void Print(const char *filename="") const
Save Pad contents in a file in one of various formats.
virtual void SetTextFont(Font_t tfont=62)
Base class for several text objects.
virtual void SetTextAlign(Short_t align=11)
virtual void Range(Double_t x1, Double_t y1, Double_t x2, Double_t y2)
Set world coordinate system for the pad.
static const double x1[5]
virtual TText * DrawText(Double_t x, Double_t y, const char *text)
Draw this text with new coordinates.
virtual void SetTextSize(Float_t tsize=1)
virtual void Update()
Update canvas pad buffers.
void Modified(Bool_t flag=1)