KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > poi > ddf > EscherProperties


1
2 /* ====================================================================
3    Copyright 2002-2004 Apache Software Foundation
4
5    Licensed under the Apache License, Version 2.0 (the "License");
6    you may not use this file except in compliance with the License.
7    You may obtain a copy of the License at
8
9        http://www.apache.org/licenses/LICENSE-2.0
10
11    Unless required by applicable law or agreed to in writing, software
12    distributed under the License is distributed on an "AS IS" BASIS,
13    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14    See the License for the specific language governing permissions and
15    limitations under the License.
16 ==================================================================== */

17         
18 package org.apache.poi.ddf;
19
20 import java.util.HashMap JavaDoc;
21 import java.util.Map JavaDoc;
22
23 /**
24  * Provides a list of all known escher properties including the description and
25  * type.
26  *
27  * @author Glen Stampoultzis (glens at apache.org)
28  */

29 public class EscherProperties
30 {
31
32     // Property constants
33
public static final short TRANSFORM__ROTATION = 4;
34     public static final short PROTECTION__LOCKROTATION = 119;
35     public static final short PROTECTION__LOCKASPECTRATIO = 120;
36     public static final short PROTECTION__LOCKPOSITION = 121;
37     public static final short PROTECTION__LOCKAGAINSTSELECT = 122;
38     public static final short PROTECTION__LOCKCROPPING = 123;
39     public static final short PROTECTION__LOCKVERTICES = 124;
40     public static final short PROTECTION__LOCKTEXT = 125;
41     public static final short PROTECTION__LOCKADJUSTHANDLES = 126;
42     public static final short PROTECTION__LOCKAGAINSTGROUPING = 127;
43     public static final short TEXT__TEXTID = 128;
44     public static final short TEXT__TEXTLEFT = 129;
45     public static final short TEXT__TEXTTOP = 130;
46     public static final short TEXT__TEXTRIGHT = 131;
47     public static final short TEXT__TEXTBOTTOM = 132;
48     public static final short TEXT__WRAPTEXT = 133;
49     public static final short TEXT__SCALETEXT = 134;
50     public static final short TEXT__ANCHORTEXT = 135;
51     public static final short TEXT__TEXTFLOW = 136;
52     public static final short TEXT__FONTROTATION = 137;
53     public static final short TEXT__IDOFNEXTSHAPE = 138;
54     public static final short TEXT__BIDIR = 139;
55     public static final short TEXT__SINGLECLICKSELECTS = 187;
56     public static final short TEXT__USEHOSTMARGINS = 188;
57     public static final short TEXT__ROTATETEXTWITHSHAPE = 189;
58     public static final short TEXT__SIZESHAPETOFITTEXT = 190;
59     public static final short TEXT__SIZE_TEXT_TO_FIT_SHAPE = 191 ;
60     public static final short GEOTEXT__UNICODE = 192;
61     public static final short GEOTEXT__RTFTEXT = 193;
62     public static final short GEOTEXT__ALIGNMENTONCURVE = 194;
63     public static final short GEOTEXT__DEFAULTPOINTSIZE = 195;
64     public static final short GEOTEXT__TEXTSPACING = 196;
65     public static final short GEOTEXT__FONTFAMILYNAME = 197;
66     public static final short GEOTEXT__REVERSEROWORDER = 240;
67     public static final short GEOTEXT__HASTEXTEFFECT = 241;
68     public static final short GEOTEXT__ROTATECHARACTERS = 242;
69     public static final short GEOTEXT__KERNCHARACTERS = 243;
70     public static final short GEOTEXT__TIGHTORTRACK = 244;
71     public static final short GEOTEXT__STRETCHTOFITSHAPE = 245;
72     public static final short GEOTEXT__CHARBOUNDINGBOX = 246;
73     public static final short GEOTEXT__SCALETEXTONPATH = 247;
74     public static final short GEOTEXT__STRETCHCHARHEIGHT = 248;
75     public static final short GEOTEXT__NOMEASUREALONGPATH = 249;
76     public static final short GEOTEXT__BOLDFONT = 250;
77     public static final short GEOTEXT__ITALICFONT = 251;
78     public static final short GEOTEXT__UNDERLINEFONT = 252;
79     public static final short GEOTEXT__SHADOWFONT = 253;
80     public static final short GEOTEXT__SMALLCAPSFONT = 254;
81     public static final short GEOTEXT__STRIKETHROUGHFONT = 255;
82     public static final short BLIP__CROPFROMTOP = 256;
83     public static final short BLIP__CROPFROMBOTTOM = 257;
84     public static final short BLIP__CROPFROMLEFT = 258;
85     public static final short BLIP__CROPFROMRIGHT = 259;
86     public static final short BLIP__BLIPTODISPLAY = 260;
87     public static final short BLIP__BLIPFILENAME = 261;
88     public static final short BLIP__BLIPFLAGS = 262;
89     public static final short BLIP__TRANSPARENTCOLOR = 263;
90     public static final short BLIP__CONTRASTSETTING = 264;
91     public static final short BLIP__BRIGHTNESSSETTING = 265;
92     public static final short BLIP__GAMMA = 266;
93     public static final short BLIP__PICTUREID = 267;
94     public static final short BLIP__DOUBLEMOD = 268;
95     public static final short BLIP__PICTUREFILLMOD = 269;
96     public static final short BLIP__PICTURELINE = 270;
97     public static final short BLIP__PRINTBLIP = 271;
98     public static final short BLIP__PRINTBLIPFILENAME = 272;
99     public static final short BLIP__PRINTFLAGS = 273;
100     public static final short BLIP__NOHITTESTPICTURE = 316;
101     public static final short BLIP__PICTUREGRAY = 317;
102     public static final short BLIP__PICTUREBILEVEL = 318;
103     public static final short BLIP__PICTUREACTIVE = 319;
104     public static final short GEOMETRY__LEFT = 320;
105     public static final short GEOMETRY__TOP = 321;
106     public static final short GEOMETRY__RIGHT = 322;
107     public static final short GEOMETRY__BOTTOM = 323;
108     public static final short GEOMETRY__SHAPEPATH = 324;
109     public static final short GEOMETRY__VERTICES = 325;
110     public static final short GEOMETRY__SEGMENTINFO = 326;
111     public static final short GEOMETRY__ADJUSTVALUE = 327;
112     public static final short GEOMETRY__ADJUST2VALUE = 328;
113     public static final short GEOMETRY__ADJUST3VALUE = 329;
114     public static final short GEOMETRY__ADJUST4VALUE = 330;
115     public static final short GEOMETRY__ADJUST5VALUE = 331;
116     public static final short GEOMETRY__ADJUST6VALUE = 332;
117     public static final short GEOMETRY__ADJUST7VALUE = 333;
118     public static final short GEOMETRY__ADJUST8VALUE = 334;
119     public static final short GEOMETRY__ADJUST9VALUE = 335;
120     public static final short GEOMETRY__ADJUST10VALUE = 336;
121     public static final short GEOMETRY__SHADOWok = 378;
122     public static final short GEOMETRY__3DOK = 379;
123     public static final short GEOMETRY__LINEOK = 380;
124     public static final short GEOMETRY__GEOTEXTOK = 381;
125     public static final short GEOMETRY__FILLSHADESHAPEOK = 382;
126     public static final short GEOMETRY__FILLOK = 383;
127     public static final short FILL__FILLTYPE = 384;
128     public static final short FILL__FILLCOLOR = 385 ;
129     public static final short FILL__FILLOPACITY = 386;
130     public static final short FILL__FILLBACKCOLOR = 387;
131     public static final short FILL__BACKOPACITY = 388;
132     public static final short FILL__CRMOD = 389;
133     public static final short FILL__PATTERNTEXTURE = 390;
134     public static final short FILL__BLIPFILENAME = 391;
135     public static final short FILL__BLIPFLAGS = 392;
136     public static final short FILL__WIDTH = 393;
137     public static final short FILL__HEIGHT = 394;
138     public static final short FILL__ANGLE = 395;
139     public static final short FILL__FOCUS = 396;
140     public static final short FILL__TOLEFT = 397;
141     public static final short FILL__TOTOP = 398;
142     public static final short FILL__TORIGHT = 399;
143     public static final short FILL__TOBOTTOM = 400;
144     public static final short FILL__RECTLEFT = 401;
145     public static final short FILL__RECTTOP = 402;
146     public static final short FILL__RECTRIGHT = 403;
147     public static final short FILL__RECTBOTTOM = 404;
148     public static final short FILL__DZTYPE = 405;
149     public static final short FILL__SHADEPRESET = 406;
150     public static final short FILL__SHADECOLORS = 407;
151     public static final short FILL__ORIGINX = 408;
152     public static final short FILL__ORIGINY = 409;
153     public static final short FILL__SHAPEORIGINX = 410;
154     public static final short FILL__SHAPEORIGINY = 411;
155     public static final short FILL__SHADETYPE = 412;
156     public static final short FILL__FILLED = 443;
157     public static final short FILL__HITTESTFILL = 444;
158     public static final short FILL__SHAPE = 445;
159     public static final short FILL__USERECT = 446;
160     public static final short FILL__NOFILLHITTEST = 447;
161     public static final short LINESTYLE__COLOR = 448 ;
162     public static final short LINESTYLE__OPACITY = 449;
163     public static final short LINESTYLE__BACKCOLOR = 450;
164     public static final short LINESTYLE__CRMOD = 451;
165     public static final short LINESTYLE__LINETYPE = 452;
166     public static final short LINESTYLE__FILLBLIP = 453;
167     public static final short LINESTYLE__FILLBLIPNAME = 454;
168     public static final short LINESTYLE__FILLBLIPFLAGS = 455;
169     public static final short LINESTYLE__FILLWIDTH = 456;
170     public static final short LINESTYLE__FILLHEIGHT = 457;
171     public static final short LINESTYLE__FILLDZTYPE = 458;
172     public static final short LINESTYLE__LINEWIDTH = 459;
173     public static final short LINESTYLE__LINEMITERLIMIT = 460;
174     public static final short LINESTYLE__LINESTYLE = 461;
175     public static final short LINESTYLE__LINEDASHING = 462;
176     public static final short LINESTYLE__LINEDASHSTYLE = 463;
177     public static final short LINESTYLE__LINESTARTARROWHEAD = 464;
178     public static final short LINESTYLE__LINEENDARROWHEAD = 465;
179     public static final short LINESTYLE__LINESTARTARROWWIDTH = 466;
180     public static final short LINESTYLE__LINEESTARTARROWLENGTH = 467;
181     public static final short LINESTYLE__LINEENDARROWWIDTH = 468;
182     public static final short LINESTYLE__LINEENDARROWLENGTH = 469;
183     public static final short LINESTYLE__LINEJOINSTYLE = 470;
184     public static final short LINESTYLE__LINEENDCAPSTYLE = 471;
185     public static final short LINESTYLE__ARROWHEADSOK = 507;
186     public static final short LINESTYLE__ANYLINE = 508;
187     public static final short LINESTYLE__HITLINETEST = 509;
188     public static final short LINESTYLE__LINEFILLSHAPE = 510;
189     public static final short LINESTYLE__NOLINEDRAWDASH = 511;
190     public static final short SHADOWSTYLE__TYPE = 512;
191     public static final short SHADOWSTYLE__COLOR = 513;
192     public static final short SHADOWSTYLE__HIGHLIGHT = 514;
193     public static final short SHADOWSTYLE__CRMOD = 515;
194     public static final short SHADOWSTYLE__OPACITY = 516;
195     public static final short SHADOWSTYLE__OFFSETX = 517;
196     public static final short SHADOWSTYLE__OFFSETY = 518;
197     public static final short SHADOWSTYLE__SECONDOFFSETX = 519;
198     public static final short SHADOWSTYLE__SECONDOFFSETY = 520;
199     public static final short SHADOWSTYLE__SCALEXTOX = 521;
200     public static final short SHADOWSTYLE__SCALEYTOX = 522;
201     public static final short SHADOWSTYLE__SCALEXTOY = 523;
202     public static final short SHADOWSTYLE__SCALEYTOY = 524;
203     public static final short SHADOWSTYLE__PERSPECTIVEX = 525;
204     public static final short SHADOWSTYLE__PERSPECTIVEY = 526;
205     public static final short SHADOWSTYLE__WEIGHT = 527;
206     public static final short SHADOWSTYLE__ORIGINX = 528;
207     public static final short SHADOWSTYLE__ORIGINY = 529;
208     public static final short SHADOWSTYLE__SHADOW = 574;
209     public static final short SHADOWSTYLE__SHADOWOBSURED = 575;
210     public static final short PERSPECTIVE__TYPE = 576;
211     public static final short PERSPECTIVE__OFFSETX = 577;
212     public static final short PERSPECTIVE__OFFSETY = 578;
213     public static final short PERSPECTIVE__SCALEXTOX = 579;
214     public static final short PERSPECTIVE__SCALEYTOX = 580;
215     public static final short PERSPECTIVE__SCALEXTOY = 581;
216     public static final short PERSPECTIVE__SCALEYTOY = 582;
217     public static final short PERSPECTIVE__PERSPECTIVEX = 583;
218     public static final short PERSPECTIVE__PERSPECTIVEY = 584;
219     public static final short PERSPECTIVE__WEIGHT = 585;
220     public static final short PERSPECTIVE__ORIGINX = 586;
221     public static final short PERSPECTIVE__ORIGINY = 587;
222     public static final short PERSPECTIVE__PERSPECTIVEON = 639;
223     public static final short THREED__SPECULARAMOUNT = 640;
224     public static final short THREED__DIFFUSEAMOUNT = 661;
225     public static final short THREED__SHININESS = 662;
226     public static final short THREED__EDGETHICKNESS = 663;
227     public static final short THREED__EXTRUDEFORWARD = 664;
228     public static final short THREED__EXTRUDEBACKWARD = 665;
229     public static final short THREED__EXTRUDEPLANE = 666;
230     public static final short THREED__EXTRUSIONCOLOR = 667;
231     public static final short THREED__CRMOD = 648;
232     public static final short THREED__3DEFFECT = 700;
233     public static final short THREED__METALLIC = 701;
234     public static final short THREED__USEEXTRUSIONCOLOR = 702;
235     public static final short THREED__LIGHTFACE = 703;
236     public static final short THREEDSTYLE__YROTATIONANGLE = 704;
237     public static final short THREEDSTYLE__XROTATIONANGLE = 705;
238     public static final short THREEDSTYLE__ROTATIONAXISX = 706;
239     public static final short THREEDSTYLE__ROTATIONAXISY = 707;
240     public static final short THREEDSTYLE__ROTATIONAXISZ = 708;
241     public static final short THREEDSTYLE__ROTATIONANGLE = 709;
242     public static final short THREEDSTYLE__ROTATIONCENTERX = 710;
243     public static final short THREEDSTYLE__ROTATIONCENTERY = 711;
244     public static final short THREEDSTYLE__ROTATIONCENTERZ = 712;
245     public static final short THREEDSTYLE__RENDERMODE = 713;
246     public static final short THREEDSTYLE__TOLERANCE = 714;
247     public static final short THREEDSTYLE__XVIEWPOINT = 715;
248     public static final short THREEDSTYLE__YVIEWPOINT = 716;
249     public static final short THREEDSTYLE__ZVIEWPOINT = 717;
250     public static final short THREEDSTYLE__ORIGINX = 718;
251     public static final short THREEDSTYLE__ORIGINY = 719;
252     public static final short THREEDSTYLE__SKEWANGLE = 720;
253     public static final short THREEDSTYLE__SKEWAMOUNT = 721;
254     public static final short THREEDSTYLE__AMBIENTINTENSITY = 722;
255     public static final short THREEDSTYLE__KEYX = 723;
256     public static final short THREEDSTYLE__KEYY = 724;
257     public static final short THREEDSTYLE__KEYZ = 725;
258     public static final short THREEDSTYLE__KEYINTENSITY = 726;
259     public static final short THREEDSTYLE__FILLX = 727;
260     public static final short THREEDSTYLE__FILLY = 728;
261     public static final short THREEDSTYLE__FILLZ = 729;
262     public static final short THREEDSTYLE__FILLINTENSITY = 730;
263     public static final short THREEDSTYLE__CONSTRAINROTATION = 763;
264     public static final short THREEDSTYLE__ROTATIONCENTERAUTO = 764;
265     public static final short THREEDSTYLE__PARALLEL = 765;
266     public static final short THREEDSTYLE__KEYHARSH = 766;
267     public static final short THREEDSTYLE__FILLHARSH = 767;
268     public static final short SHAPE__MASTER = 769;
269     public static final short SHAPE__CONNECTORSTYLE = 771;
270     public static final short SHAPE__BLACKANDWHITESETTINGS = 772;
271     public static final short SHAPE__WMODEPUREBW = 773;
272     public static final short SHAPE__WMODEBW = 774;
273     public static final short SHAPE__OLEICON = 826;
274     public static final short SHAPE__PREFERRELATIVERESIZE = 827;
275     public static final short SHAPE__LOCKSHAPETYPE = 828;
276     public static final short SHAPE__DELETEATTACHEDOBJECT = 830;
277     public static final short SHAPE__BACKGROUNDSHAPE = 831;
278     public static final short CALLOUT__CALLOUTTYPE = 832;
279     public static final short CALLOUT__XYCALLOUTGAP = 833;
280     public static final short CALLOUT__CALLOUTANGLE = 834;
281     public static final short CALLOUT__CALLOUTDROPTYPE = 835;
282     public static final short CALLOUT__CALLOUTDROPSPECIFIED = 836;
283     public static final short CALLOUT__CALLOUTLENGTHSPECIFIED = 837;
284     public static final short CALLOUT__ISCALLOUT = 889;
285     public static final short CALLOUT__CALLOUTACCENTBAR = 890;
286     public static final short CALLOUT__CALLOUTTEXTBORDER = 891;
287     public static final short CALLOUT__CALLOUTMINUSX = 892;
288     public static final short CALLOUT__CALLOUTMINUSY = 893;
289     public static final short CALLOUT__DROPAUTO = 894;
290     public static final short CALLOUT__LENGTHSPECIFIED = 895;
291     public static final short GROUPSHAPE__SHAPENAME = 896;
292     public static final short GROUPSHAPE__DESCRIPTION = 897;
293     public static final short GROUPSHAPE__HYPERLINK = 898;
294     public static final short GROUPSHAPE__WRAPPOLYGONVERTICES = 899;
295     public static final short GROUPSHAPE__WRAPDISTLEFT = 900;
296     public static final short GROUPSHAPE__WRAPDISTTOP = 901;
297     public static final short GROUPSHAPE__WRAPDISTRIGHT = 902;
298     public static final short GROUPSHAPE__WRAPDISTBOTTOM = 903;
299     public static final short GROUPSHAPE__REGROUPID = 904;
300     public static final short GROUPSHAPE__EDITEDWRAP = 953;
301     public static final short GROUPSHAPE__BEHINDDOCUMENT = 954;
302     public static final short GROUPSHAPE__ONDBLCLICKNOTIFY = 955;
303     public static final short GROUPSHAPE__ISBUTTON = 956;
304     public static final short GROUPSHAPE__1DADJUSTMENT = 957;
305     public static final short GROUPSHAPE__HIDDEN = 958;
306     public static final short GROUPSHAPE__PRINT = 959;
307
308
309     private static Map JavaDoc properties;
310
311     private static void initProps()
312     {
313         if ( properties == null )
314         {
315             properties = new HashMap JavaDoc();
316             addProp( TRANSFORM__ROTATION, data( "transform.rotation" ) );
317             addProp( PROTECTION__LOCKROTATION , data( "protection.lockrotation" ) );
318             addProp( PROTECTION__LOCKASPECTRATIO , data( "protection.lockaspectratio" ) );
319             addProp( PROTECTION__LOCKPOSITION , data( "protection.lockposition" ) );
320             addProp( PROTECTION__LOCKAGAINSTSELECT , data( "protection.lockagainstselect" ) );
321             addProp( PROTECTION__LOCKCROPPING , data( "protection.lockcropping" ) );
322             addProp( PROTECTION__LOCKVERTICES , data( "protection.lockvertices" ) );
323             addProp( PROTECTION__LOCKTEXT , data( "protection.locktext" ) );
324             addProp( PROTECTION__LOCKADJUSTHANDLES , data( "protection.lockadjusthandles" ) );
325             addProp( PROTECTION__LOCKAGAINSTGROUPING , data( "protection.lockagainstgrouping", EscherPropertyMetaData.TYPE_BOOLEAN ) );
326             addProp( TEXT__TEXTID , data( "text.textid" ) );
327             addProp( TEXT__TEXTLEFT , data( "text.textleft" ) );
328             addProp( TEXT__TEXTTOP , data( "text.texttop" ) );
329             addProp( TEXT__TEXTRIGHT , data( "text.textright" ) );
330             addProp( TEXT__TEXTBOTTOM , data( "text.textbottom" ) );
331             addProp( TEXT__WRAPTEXT , data( "text.wraptext" ) );
332             addProp( TEXT__SCALETEXT , data( "text.scaletext" ) );
333             addProp( TEXT__ANCHORTEXT , data( "text.anchortext" ) );
334             addProp( TEXT__TEXTFLOW , data( "text.textflow" ) );
335             addProp( TEXT__FONTROTATION , data( "text.fontrotation" ) );
336             addProp( TEXT__IDOFNEXTSHAPE , data( "text.idofnextshape" ) );
337             addProp( TEXT__BIDIR , data( "text.bidir" ) );
338             addProp( TEXT__SINGLECLICKSELECTS , data( "text.singleclickselects" ) );
339             addProp( TEXT__USEHOSTMARGINS , data( "text.usehostmargins" ) );
340             addProp( TEXT__ROTATETEXTWITHSHAPE , data( "text.rotatetextwithshape" ) );
341             addProp( TEXT__SIZESHAPETOFITTEXT , data( "text.sizeshapetofittext" ) );
342             addProp( TEXT__SIZE_TEXT_TO_FIT_SHAPE, data( "text.sizetexttofitshape", EscherPropertyMetaData.TYPE_BOOLEAN ) );
343             addProp( GEOTEXT__UNICODE , data( "geotext.unicode" ) );
344             addProp( GEOTEXT__RTFTEXT , data( "geotext.rtftext" ) );
345             addProp( GEOTEXT__ALIGNMENTONCURVE , data( "geotext.alignmentoncurve" ) );
346             addProp( GEOTEXT__DEFAULTPOINTSIZE , data( "geotext.defaultpointsize" ) );
347             addProp( GEOTEXT__TEXTSPACING , data( "geotext.textspacing" ) );
348             addProp( GEOTEXT__FONTFAMILYNAME , data( "geotext.fontfamilyname" ) );
349             addProp( GEOTEXT__REVERSEROWORDER , data( "geotext.reverseroworder" ) );
350             addProp( GEOTEXT__HASTEXTEFFECT , data( "geotext.hastexteffect" ) );
351             addProp( GEOTEXT__ROTATECHARACTERS , data( "geotext.rotatecharacters" ) );
352             addProp( GEOTEXT__KERNCHARACTERS , data( "geotext.kerncharacters" ) );
353             addProp( GEOTEXT__TIGHTORTRACK , data( "geotext.tightortrack" ) );
354             addProp( GEOTEXT__STRETCHTOFITSHAPE , data( "geotext.stretchtofitshape" ) );
355             addProp( GEOTEXT__CHARBOUNDINGBOX , data( "geotext.charboundingbox" ) );
356             addProp( GEOTEXT__SCALETEXTONPATH , data( "geotext.scaletextonpath" ) );
357             addProp( GEOTEXT__STRETCHCHARHEIGHT , data( "geotext.stretchcharheight" ) );
358             addProp( GEOTEXT__NOMEASUREALONGPATH , data( "geotext.nomeasurealongpath" ) );
359             addProp( GEOTEXT__BOLDFONT , data( "geotext.boldfont" ) );
360             addProp( GEOTEXT__ITALICFONT , data( "geotext.italicfont" ) );
361             addProp( GEOTEXT__UNDERLINEFONT , data( "geotext.underlinefont" ) );
362             addProp( GEOTEXT__SHADOWFONT , data( "geotext.shadowfont" ) );
363             addProp( GEOTEXT__SMALLCAPSFONT , data( "geotext.smallcapsfont" ) );
364             addProp( GEOTEXT__STRIKETHROUGHFONT , data( "geotext.strikethroughfont" ) );
365             addProp( BLIP__CROPFROMTOP , data( "blip.cropfromtop" ) );
366             addProp( BLIP__CROPFROMBOTTOM , data( "blip.cropfrombottom" ) );
367             addProp( BLIP__CROPFROMLEFT , data( "blip.cropfromleft" ) );
368             addProp( BLIP__CROPFROMRIGHT , data( "blip.cropfromright" ) );
369             addProp( BLIP__BLIPTODISPLAY , data( "blip.bliptodisplay" ) );
370             addProp( BLIP__BLIPFILENAME , data( "blip.blipfilename" ) );
371             addProp( BLIP__BLIPFLAGS , data( "blip.blipflags" ) );
372             addProp( BLIP__TRANSPARENTCOLOR , data( "blip.transparentcolor" ) );
373             addProp( BLIP__CONTRASTSETTING , data( "blip.contrastsetting" ) );
374             addProp( BLIP__BRIGHTNESSSETTING , data( "blip.brightnesssetting" ) );
375             addProp( BLIP__GAMMA , data( "blip.gamma" ) );
376             addProp( BLIP__PICTUREID , data( "blip.pictureid" ) );
377             addProp( BLIP__DOUBLEMOD , data( "blip.doublemod" ) );
378             addProp( BLIP__PICTUREFILLMOD , data( "blip.picturefillmod" ) );
379             addProp( BLIP__PICTURELINE , data( "blip.pictureline" ) );
380             addProp( BLIP__PRINTBLIP , data( "blip.printblip" ) );
381             addProp( BLIP__PRINTBLIPFILENAME , data( "blip.printblipfilename" ) );
382             addProp( BLIP__PRINTFLAGS , data( "blip.printflags" ) );
383             addProp( BLIP__NOHITTESTPICTURE , data( "blip.nohittestpicture" ) );
384             addProp( BLIP__PICTUREGRAY , data( "blip.picturegray" ) );
385             addProp( BLIP__PICTUREBILEVEL , data( "blip.picturebilevel" ) );
386             addProp( BLIP__PICTUREACTIVE , data( "blip.pictureactive" ) );
387             addProp( GEOMETRY__LEFT , data( "geometry.left" ) );
388             addProp( GEOMETRY__TOP , data( "geometry.top" ) );
389             addProp( GEOMETRY__RIGHT , data( "geometry.right" ) );
390             addProp( GEOMETRY__BOTTOM , data( "geometry.bottom" ) );
391             addProp( GEOMETRY__SHAPEPATH , data( "geometry.shapepath", EscherPropertyMetaData.TYPE_SHAPEPATH ) );
392             addProp( GEOMETRY__VERTICES , data( "geometry.vertices" , EscherPropertyMetaData.TYPE_ARRAY ) );
393             addProp( GEOMETRY__SEGMENTINFO , data( "geometry.segmentinfo", EscherPropertyMetaData.TYPE_ARRAY ) );
394             addProp( GEOMETRY__ADJUSTVALUE , data( "geometry.adjustvalue" ) );
395             addProp( GEOMETRY__ADJUST2VALUE , data( "geometry.adjust2value" ) );
396             addProp( GEOMETRY__ADJUST3VALUE , data( "geometry.adjust3value" ) );
397             addProp( GEOMETRY__ADJUST4VALUE , data( "geometry.adjust4value" ) );
398             addProp( GEOMETRY__ADJUST5VALUE , data( "geometry.adjust5value" ) );
399             addProp( GEOMETRY__ADJUST6VALUE , data( "geometry.adjust6value" ) );
400             addProp( GEOMETRY__ADJUST7VALUE , data( "geometry.adjust7value" ) );
401             addProp( GEOMETRY__ADJUST8VALUE , data( "geometry.adjust8value" ) );
402             addProp( GEOMETRY__ADJUST9VALUE , data( "geometry.adjust9value" ) );
403             addProp( GEOMETRY__ADJUST10VALUE , data( "geometry.adjust10value" ) );
404             addProp( GEOMETRY__SHADOWok , data( "geometry.shadowOK" ) );
405             addProp( GEOMETRY__3DOK , data( "geometry.3dok" ) );
406             addProp( GEOMETRY__LINEOK , data( "geometry.lineok" ) );
407             addProp( GEOMETRY__GEOTEXTOK , data( "geometry.geotextok" ) );
408             addProp( GEOMETRY__FILLSHADESHAPEOK , data( "geometry.fillshadeshapeok" ) );
409             addProp( GEOMETRY__FILLOK , data( "geometry.fillok", EscherPropertyMetaData.TYPE_BOOLEAN ) );
410             addProp( FILL__FILLTYPE , data( "fill.filltype" ) );
411             addProp( FILL__FILLCOLOR, data( "fill.fillcolor", EscherPropertyMetaData.TYPE_RGB ) );
412             addProp( FILL__FILLOPACITY , data( "fill.fillopacity" ) );
413             addProp( FILL__FILLBACKCOLOR , data( "fill.fillbackcolor", EscherPropertyMetaData.TYPE_RGB ) );
414             addProp( FILL__BACKOPACITY , data( "fill.backopacity" ) );
415             addProp( FILL__CRMOD , data( "fill.crmod" ) );
416             addProp( FILL__PATTERNTEXTURE , data( "fill.patterntexture" ) );
417             addProp( FILL__BLIPFILENAME , data( "fill.blipfilename" ) );
418             addProp( FILL__BLIPFLAGS, data( "fill.blipflags" ) );
419             addProp( FILL__WIDTH , data( "fill.width" ) );
420             addProp( FILL__HEIGHT , data( "fill.height" ) );
421             addProp( FILL__ANGLE , data( "fill.angle" ) );
422             addProp( FILL__FOCUS , data( "fill.focus" ) );
423             addProp( FILL__TOLEFT , data( "fill.toleft" ) );
424             addProp( FILL__TOTOP , data( "fill.totop" ) );
425             addProp( FILL__TORIGHT , data( "fill.toright" ) );
426             addProp( FILL__TOBOTTOM , data( "fill.tobottom" ) );
427             addProp( FILL__RECTLEFT , data( "fill.rectleft" ) );
428             addProp( FILL__RECTTOP , data( "fill.recttop" ) );
429             addProp( FILL__RECTRIGHT , data( "fill.rectright" ) );
430             addProp( FILL__RECTBOTTOM , data( "fill.rectbottom" ) );
431             addProp( FILL__DZTYPE , data( "fill.dztype" ) );
432             addProp( FILL__SHADEPRESET , data( "fill.shadepreset" ) );
433             addProp( FILL__SHADECOLORS , data( "fill.shadecolors", EscherPropertyMetaData.TYPE_ARRAY ) );
434             addProp( FILL__ORIGINX , data( "fill.originx" ) );
435             addProp( FILL__ORIGINY , data( "fill.originy" ) );
436             addProp( FILL__SHAPEORIGINX , data( "fill.shapeoriginx" ) );
437             addProp( FILL__SHAPEORIGINY , data( "fill.shapeoriginy" ) );
438             addProp( FILL__SHADETYPE , data( "fill.shadetype" ) );
439             addProp( FILL__FILLED , data( "fill.filled" ) );
440             addProp( FILL__HITTESTFILL , data( "fill.hittestfill" ) );
441             addProp( FILL__SHAPE , data( "fill.shape" ) );
442             addProp( FILL__USERECT , data( "fill.userect" ) );
443             addProp( FILL__NOFILLHITTEST , data( "fill.nofillhittest", EscherPropertyMetaData.TYPE_BOOLEAN ) );
444             addProp( LINESTYLE__COLOR, data( "linestyle.color", EscherPropertyMetaData.TYPE_RGB ) );
445             addProp( LINESTYLE__OPACITY , data( "linestyle.opacity" ) );
446             addProp( LINESTYLE__BACKCOLOR , data( "linestyle.backcolor", EscherPropertyMetaData.TYPE_RGB ) );
447             addProp( LINESTYLE__CRMOD , data( "linestyle.crmod" ) );
448             addProp( LINESTYLE__LINETYPE , data( "linestyle.linetype" ) );
449             addProp( LINESTYLE__FILLBLIP , data( "linestyle.fillblip" ) );
450             addProp( LINESTYLE__FILLBLIPNAME , data( "linestyle.fillblipname" ) );
451             addProp( LINESTYLE__FILLBLIPFLAGS , data( "linestyle.fillblipflags" ) );
452             addProp( LINESTYLE__FILLWIDTH , data( "linestyle.fillwidth" ) );
453             addProp( LINESTYLE__FILLHEIGHT , data( "linestyle.fillheight" ) );
454             addProp( LINESTYLE__FILLDZTYPE , data( "linestyle.filldztype" ) );
455             addProp( LINESTYLE__LINEWIDTH , data( "linestyle.linewidth" ) );
456             addProp( LINESTYLE__LINEMITERLIMIT , data( "linestyle.linemiterlimit" ) );
457             addProp( LINESTYLE__LINESTYLE , data( "linestyle.linestyle" ) );
458             addProp( LINESTYLE__LINEDASHING , data( "linestyle.linedashing" ) );
459             addProp( LINESTYLE__LINEDASHSTYLE , data( "linestyle.linedashstyle", EscherPropertyMetaData.TYPE_ARRAY ) );
460             addProp( LINESTYLE__LINESTARTARROWHEAD , data( "linestyle.linestartarrowhead" ) );
461             addProp( LINESTYLE__LINEENDARROWHEAD , data( "linestyle.lineendarrowhead" ) );
462             addProp( LINESTYLE__LINESTARTARROWWIDTH , data( "linestyle.linestartarrowwidth" ) );
463             addProp( LINESTYLE__LINEESTARTARROWLENGTH , data( "linestyle.lineestartarrowlength" ) );
464             addProp( LINESTYLE__LINEENDARROWWIDTH , data( "linestyle.lineendarrowwidth" ) );
465             addProp( LINESTYLE__LINEENDARROWLENGTH , data( "linestyle.lineendarrowlength" ) );
466             addProp( LINESTYLE__LINEJOINSTYLE , data( "linestyle.linejoinstyle" ) );
467             addProp( LINESTYLE__LINEENDCAPSTYLE , data( "linestyle.lineendcapstyle" ) );
468             addProp( LINESTYLE__ARROWHEADSOK , data( "linestyle.arrowheadsok" ) );
469             addProp( LINESTYLE__ANYLINE , data( "linestyle.anyline" ) );
470             addProp( LINESTYLE__HITLINETEST , data( "linestyle.hitlinetest" ) );
471             addProp( LINESTYLE__LINEFILLSHAPE , data( "linestyle.linefillshape" ) );
472             addProp( LINESTYLE__NOLINEDRAWDASH , data( "linestyle.nolinedrawdash", EscherPropertyMetaData.TYPE_BOOLEAN ) );
473             addProp( SHADOWSTYLE__TYPE , data( "shadowstyle.type" ) );
474             addProp( SHADOWSTYLE__COLOR , data( "shadowstyle.color", EscherPropertyMetaData.TYPE_RGB ) );
475             addProp( SHADOWSTYLE__HIGHLIGHT , data( "shadowstyle.highlight" ) );
476             addProp( SHADOWSTYLE__CRMOD , data( "shadowstyle.crmod" ) );
477             addProp( SHADOWSTYLE__OPACITY , data( "shadowstyle.opacity" ) );
478             addProp( SHADOWSTYLE__OFFSETX , data( "shadowstyle.offsetx" ) );
479             addProp( SHADOWSTYLE__OFFSETY , data( "shadowstyle.offsety" ) );
480             addProp( SHADOWSTYLE__SECONDOFFSETX , data( "shadowstyle.secondoffsetx" ) );
481             addProp( SHADOWSTYLE__SECONDOFFSETY , data( "shadowstyle.secondoffsety" ) );
482             addProp( SHADOWSTYLE__SCALEXTOX , data( "shadowstyle.scalextox" ) );
483             addProp( SHADOWSTYLE__SCALEYTOX , data( "shadowstyle.scaleytox" ) );
484             addProp( SHADOWSTYLE__SCALEXTOY , data( "shadowstyle.scalextoy" ) );
485             addProp( SHADOWSTYLE__SCALEYTOY , data( "shadowstyle.scaleytoy" ) );
486             addProp( SHADOWSTYLE__PERSPECTIVEX , data( "shadowstyle.perspectivex" ) );
487             addProp( SHADOWSTYLE__PERSPECTIVEY , data( "shadowstyle.perspectivey" ) );
488             addProp( SHADOWSTYLE__WEIGHT , data( "shadowstyle.weight" ) );
489             addProp( SHADOWSTYLE__ORIGINX , data( "shadowstyle.originx" ) );
490             addProp( SHADOWSTYLE__ORIGINY , data( "shadowstyle.originy" ) );
491             addProp( SHADOWSTYLE__SHADOW , data( "shadowstyle.shadow" ) );
492             addProp( SHADOWSTYLE__SHADOWOBSURED , data( "shadowstyle.shadowobsured" ) );
493             addProp( PERSPECTIVE__TYPE , data( "perspective.type" ) );
494             addProp( PERSPECTIVE__OFFSETX , data( "perspective.offsetx" ) );
495             addProp( PERSPECTIVE__OFFSETY , data( "perspective.offsety" ) );
496             addProp( PERSPECTIVE__SCALEXTOX , data( "perspective.scalextox" ) );
497             addProp( PERSPECTIVE__SCALEYTOX , data( "perspective.scaleytox" ) );
498             addProp( PERSPECTIVE__SCALEXTOY , data( "perspective.scalextoy" ) );
499             addProp( PERSPECTIVE__SCALEYTOY , data( "perspective.scaleytoy" ) );
500             addProp( PERSPECTIVE__PERSPECTIVEX , data( "perspective.perspectivex" ) );
501             addProp( PERSPECTIVE__PERSPECTIVEY , data( "perspective.perspectivey" ) );
502             addProp( PERSPECTIVE__WEIGHT , data( "perspective.weight" ) );
503             addProp( PERSPECTIVE__ORIGINX , data( "perspective.originx" ) );
504             addProp( PERSPECTIVE__ORIGINY , data( "perspective.originy" ) );
505             addProp( PERSPECTIVE__PERSPECTIVEON , data( "perspective.perspectiveon" ) );
506             addProp( THREED__SPECULARAMOUNT , data( "3d.specularamount" ) );
507             addProp( THREED__DIFFUSEAMOUNT , data( "3d.diffuseamount" ) );
508             addProp( THREED__SHININESS , data( "3d.shininess" ) );
509             addProp( THREED__EDGETHICKNESS , data( "3d.edgethickness" ) );
510             addProp( THREED__EXTRUDEFORWARD , data( "3d.extrudeforward" ) );
511             addProp( THREED__EXTRUDEBACKWARD , data( "3d.extrudebackward" ) );
512             addProp( THREED__EXTRUDEPLANE , data( "3d.extrudeplane" ) );
513             addProp( THREED__EXTRUSIONCOLOR , data( "3d.extrusioncolor", EscherPropertyMetaData.TYPE_RGB ) );
514             addProp( THREED__CRMOD , data( "3d.crmod" ) );
515             addProp( THREED__3DEFFECT , data( "3d.3deffect" ) );
516             addProp( THREED__METALLIC , data( "3d.metallic" ) );
517             addProp( THREED__USEEXTRUSIONCOLOR , data( "3d.useextrusioncolor", EscherPropertyMetaData.TYPE_RGB ) );
518             addProp( THREED__LIGHTFACE , data( "3d.lightface" ) );
519             addProp( THREEDSTYLE__YROTATIONANGLE , data( "3dstyle.yrotationangle" ) );
520             addProp( THREEDSTYLE__XROTATIONANGLE , data( "3dstyle.xrotationangle" ) );
521             addProp( THREEDSTYLE__ROTATIONAXISX , data( "3dstyle.rotationaxisx" ) );
522             addProp( THREEDSTYLE__ROTATIONAXISY , data( "3dstyle.rotationaxisy" ) );
523             addProp( THREEDSTYLE__ROTATIONAXISZ , data( "3dstyle.rotationaxisz" ) );
524             addProp( THREEDSTYLE__ROTATIONANGLE , data( "3dstyle.rotationangle" ) );
525             addProp( THREEDSTYLE__ROTATIONCENTERX , data( "3dstyle.rotationcenterx" ) );
526             addProp( THREEDSTYLE__ROTATIONCENTERY , data( "3dstyle.rotationcentery" ) );
527             addProp( THREEDSTYLE__ROTATIONCENTERZ , data( "3dstyle.rotationcenterz" ) );
528             addProp( THREEDSTYLE__RENDERMODE , data( "3dstyle.rendermode" ) );
529             addProp( THREEDSTYLE__TOLERANCE , data( "3dstyle.tolerance" ) );
530             addProp( THREEDSTYLE__XVIEWPOINT , data( "3dstyle.xviewpoint" ) );
531             addProp( THREEDSTYLE__YVIEWPOINT , data( "3dstyle.yviewpoint" ) );
532             addProp( THREEDSTYLE__ZVIEWPOINT , data( "3dstyle.zviewpoint" ) );
533             addProp( THREEDSTYLE__ORIGINX , data( "3dstyle.originx" ) );
534             addProp( THREEDSTYLE__ORIGINY , data( "3dstyle.originy" ) );
535             addProp( THREEDSTYLE__SKEWANGLE , data( "3dstyle.skewangle" ) );
536             addProp( THREEDSTYLE__SKEWAMOUNT , data( "3dstyle.skewamount" ) );
537             addProp( THREEDSTYLE__AMBIENTINTENSITY , data( "3dstyle.ambientintensity" ) );
538             addProp( THREEDSTYLE__KEYX , data( "3dstyle.keyx" ) );
539             addProp( THREEDSTYLE__KEYY , data( "3dstyle.keyy" ) );
540             addProp( THREEDSTYLE__KEYZ , data( "3dstyle.keyz" ) );
541             addProp( THREEDSTYLE__KEYINTENSITY , data( "3dstyle.keyintensity" ) );
542             addProp( THREEDSTYLE__FILLX , data( "3dstyle.fillx" ) );
543             addProp( THREEDSTYLE__FILLY , data( "3dstyle.filly" ) );
544             addProp( THREEDSTYLE__FILLZ , data( "3dstyle.fillz" ) );
545             addProp( THREEDSTYLE__FILLINTENSITY , data( "3dstyle.fillintensity" ) );
546             addProp( THREEDSTYLE__CONSTRAINROTATION , data( "3dstyle.constrainrotation" ) );
547             addProp( THREEDSTYLE__ROTATIONCENTERAUTO , data( "3dstyle.rotationcenterauto" ) );
548             addProp( THREEDSTYLE__PARALLEL , data( "3dstyle.parallel" ) );
549             addProp( THREEDSTYLE__KEYHARSH , data( "3dstyle.keyharsh" ) );
550             addProp( THREEDSTYLE__FILLHARSH , data( "3dstyle.fillharsh" ) );
551             addProp( SHAPE__MASTER , data( "shape.master" ) );
552             addProp( SHAPE__CONNECTORSTYLE , data( "shape.connectorstyle" ) );
553             addProp( SHAPE__BLACKANDWHITESETTINGS , data( "shape.blackandwhitesettings" ) );
554             addProp( SHAPE__WMODEPUREBW , data( "shape.wmodepurebw" ) );
555             addProp( SHAPE__WMODEBW , data( "shape.wmodebw" ) );
556             addProp( SHAPE__OLEICON , data( "shape.oleicon" ) );
557             addProp( SHAPE__PREFERRELATIVERESIZE , data( "shape.preferrelativeresize" ) );
558             addProp( SHAPE__LOCKSHAPETYPE , data( "shape.lockshapetype" ) );
559             addProp( SHAPE__DELETEATTACHEDOBJECT , data( "shape.deleteattachedobject" ) );
560             addProp( SHAPE__BACKGROUNDSHAPE , data( "shape.backgroundshape" ) );
561             addProp( CALLOUT__CALLOUTTYPE , data( "callout.callouttype" ) );
562             addProp( CALLOUT__XYCALLOUTGAP , data( "callout.xycalloutgap" ) );
563             addProp( CALLOUT__CALLOUTANGLE , data( "callout.calloutangle" ) );
564             addProp( CALLOUT__CALLOUTDROPTYPE , data( "callout.calloutdroptype" ) );
565             addProp( CALLOUT__CALLOUTDROPSPECIFIED , data( "callout.calloutdropspecified" ) );
566             addProp( CALLOUT__CALLOUTLENGTHSPECIFIED , data( "callout.calloutlengthspecified" ) );
567             addProp( CALLOUT__ISCALLOUT , data( "callout.iscallout" ) );
568             addProp( CALLOUT__CALLOUTACCENTBAR , data( "callout.calloutaccentbar" ) );
569             addProp( CALLOUT__CALLOUTTEXTBORDER , data( "callout.callouttextborder" ) );
570             addProp( CALLOUT__CALLOUTMINUSX , data( "callout.calloutminusx" ) );
571             addProp( CALLOUT__CALLOUTMINUSY , data( "callout.calloutminusy" ) );
572             addProp( CALLOUT__DROPAUTO , data( "callout.dropauto" ) );
573             addProp( CALLOUT__LENGTHSPECIFIED , data( "callout.lengthspecified" ) );
574             addProp( GROUPSHAPE__SHAPENAME , data( "groupshape.shapename" ) );
575             addProp( GROUPSHAPE__DESCRIPTION , data( "groupshape.description" ) );
576             addProp( GROUPSHAPE__HYPERLINK , data( "groupshape.hyperlink" ) );
577             addProp( GROUPSHAPE__WRAPPOLYGONVERTICES , data( "groupshape.wrappolygonvertices", EscherPropertyMetaData.TYPE_ARRAY ) );
578             addProp( GROUPSHAPE__WRAPDISTLEFT , data( "groupshape.wrapdistleft" ) );
579             addProp( GROUPSHAPE__WRAPDISTTOP , data( "groupshape.wrapdisttop" ) );
580             addProp( GROUPSHAPE__WRAPDISTRIGHT , data( "groupshape.wrapdistright" ) );
581             addProp( GROUPSHAPE__WRAPDISTBOTTOM , data( "groupshape.wrapdistbottom" ) );
582             addProp( GROUPSHAPE__REGROUPID , data( "groupshape.regroupid" ) );
583             addProp( GROUPSHAPE__EDITEDWRAP , data( "groupshape.editedwrap" ) );
584             addProp( GROUPSHAPE__BEHINDDOCUMENT , data( "groupshape.behinddocument" ) );
585             addProp( GROUPSHAPE__ONDBLCLICKNOTIFY , data( "groupshape.ondblclicknotify" ) );
586             addProp( GROUPSHAPE__ISBUTTON , data( "groupshape.isbutton" ) );
587             addProp( GROUPSHAPE__1DADJUSTMENT , data( "groupshape.1dadjustment" ) );
588             addProp( GROUPSHAPE__HIDDEN , data( "groupshape.hidden" ) );
589             addProp( GROUPSHAPE__PRINT , data( "groupshape.print", EscherPropertyMetaData.TYPE_BOOLEAN ) );
590         }
591     }
592
593     private static void addProp( int s, EscherPropertyMetaData data )
594     {
595         properties.put( new Short JavaDoc( (short) s ), data );
596     }
597
598     private static EscherPropertyMetaData data( String JavaDoc propName, byte type )
599     {
600         return new EscherPropertyMetaData( propName, type );
601     }
602
603     private static EscherPropertyMetaData data( String JavaDoc propName )
604     {
605         return new EscherPropertyMetaData( propName );
606     }
607
608     public static String JavaDoc getPropertyName( short propertyId )
609     {
610         initProps();
611         EscherPropertyMetaData o = (EscherPropertyMetaData) properties.get( new Short JavaDoc( propertyId ) );
612         return o == null ? "unknown" : o.getDescription();
613     }
614
615     public static byte getPropertyType( short propertyId )
616     {
617         initProps();
618         EscherPropertyMetaData escherPropertyMetaData = (EscherPropertyMetaData) properties.get( new Short JavaDoc( propertyId ) );
619         return escherPropertyMetaData == null ? 0 : escherPropertyMetaData.getType();
620     }
621 }
622
623
624
625
Popular Tags