選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

classes-overview.html 14KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379
  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" >
  2. <html>
  3. <head>
  4. <META http-equiv= "Content-Type" content= "text/html; charset=ISO-8859-1" >
  5. <title>Property classes overview</title>
  6. <style type= "text/css" >
  7. body {
  8. font-family: Verdana, Helvetica, sans-serif;
  9. }
  10. .note { border: solid 1px #7099C5; background-color: #f0f0ff; }
  11. .note .label { background-color: #7099C5; color: #ffffff; }
  12. .content {
  13. padding: 5px 5px 5px 10px;
  14. font : Verdana, Helvetica, sans-serif; font-size : 90%;
  15. }
  16. </style>
  17. </head>
  18. <body marginheight= "0" marginwidth= "0" topmargin= "0" leftmargin= "0" text= "#000000" bgcolor= "#FFFFFF" >
  19. <div class= "content" >
  20. <h1>Property classes overview</h1>
  21. <p>
  22. <font size= "-2" >by&nbsp;Peter B. West</font>
  23. </p>
  24. <ul class= "minitoc" >
  25. <li>
  26. <a href = "#N10014" >Properties: packages</a>
  27. <ul class= "minitoc" >
  28. <li>
  29. <a href = "#N10019" >org.apache.fop.fo</a>
  30. </li>
  31. <li>
  32. <a href = "#N100AC" >org.apache.fop.fo.properties</a>
  33. </li>
  34. <li>
  35. <a href = "#N100EE" >org.apache.fop.fo.expr</a>
  36. </li>
  37. <li>
  38. <a href = "#N10134" >org.apache.fop.datatypes</a>
  39. </li>
  40. <li>
  41. <a href = "#N101A2"
  42. >org.apache.fop.datatypes.indirect</a>
  43. </li>
  44. </ul>
  45. </li>
  46. </ul>
  47. <a name= "N10014" ></a> <h3>Properties: packages</h3> <a name=
  48. "N10019" ></a> <h4>org.apache.fop.fo</h4>
  49. <dl>
  50. <dt>
  51. <a href = "javascript:parent.displayCode(
  52. 'PropNames.html#PropNamesClass'
  53. )" ><em>PropNames</em></a>
  54. </dt>
  55. <dd>
  56. This class maintains an array of <a href=
  57. "javascript:parent.displayCode(
  58. 'PropNames.html#propertyNames' )" >property names</a>,
  59. synchronized to a complete set of property name <a href =
  60. "javascript:parent.displayCode( 'PropNames.html#NO_PROPERTY'
  61. )" >constants</a> for indexing property-based arrays. It
  62. includes methods to <a href =
  63. "javascript:parent.displayCode(
  64. 'PropNames.html#getPropertyName' )" >convert an index to a
  65. name</a> and to <a href = "javascript:parent.displayCode(
  66. 'PropNames.html#getPropertyIndex' )" >convert a property
  67. name to an index</a>.
  68. </dd>
  69. <dt>
  70. <a href = "PropertyConsts-class.html" ><em>PropertyConsts</em></a>
  71. </dt>
  72. <dd>
  73. A singleton instance of <span class= "codefrag"
  74. >PropertyConsts</span> is created by the static initializer
  75. of the <a href = "javascript:parent.displayCode(
  76. 'PropertyConsts.html#pconsts' )" >pconsts</a> field.
  77. Working from the property indices defined in PropNames, the
  78. methods in this class collect and supply the values of
  79. fields defined in property objects into arrays.<br> The
  80. heart of this class in the method <a href =
  81. "javascript:parent.displayCode(
  82. 'PropertyConsts.html#setupProperty' )" >setupProperty</a>,
  83. which constructs the property name from the index,
  84. instantiates a singleton of the appropriate class, and
  85. extracts static fields by reflection from that instance into
  86. the arrays of field values.
  87. </dd>
  88. <dt>
  89. <a href = "javascript:parent.displayCode(
  90. 'PropertySets.html#PropertySetsClass' )" ><em>PropertySets</em></a>
  91. </dt>
  92. <dd>
  93. This class provides a number of <span class= "codefrag"
  94. >ROBitSet</span>s representing many of the sets of
  95. properties defined in <em>Section 7</em> of the
  96. specification. Note that the <a
  97. href="javascript:parent.displayCode(
  98. 'PropertySets.html#borderProps' )"><em>Border</em></a>, <a
  99. href="javascript:parent.displayCode(
  100. 'PropertySets.html#paddingProps' )"><em>Padding</em></a> and
  101. <a href="javascript:parent.displayCode(
  102. 'PropertySets.html#backgroundProps'
  103. )"><em>Background</em></a> sets are defined separately.
  104. </dd>
  105. <dt>
  106. <a href = "javascript:parent.displayCode(
  107. '../FOPropertySets.html#FOPropertySetsClass' )"
  108. ><em>FOPropertySets</em></a>
  109. </dt>
  110. <dd>
  111. This class provides a number of <span class= "codefrag"
  112. >ROBitSet</span>s representing sets of properties which are
  113. applicable in particular subtrees of the FO tree. These
  114. sets are provided so that other properties can be ignored
  115. during processing of the subtrees.
  116. </dd>
  117. <dt>
  118. <a href = "javascript:parent.displayCode(
  119. 'ShorthandPropSets.html#ShorthandPropSetsClass' )"
  120. ><em>ShorthandPropSets</em></a>
  121. </dt>
  122. <dd>
  123. This class contains arrays of <a href =
  124. "javascript:parent.displayCode(
  125. 'ShorthandPropSets.html#shorthands' )" >shorthand property
  126. indices</a> and <a href = "javascript:parent.displayCode(
  127. 'ShorthandPropSets.html#compounds' )" >compound property
  128. indices</a>, and <span class= "codefrag" >ROBitSet</span>s
  129. representing the expansion sets of these shorthands and
  130. compounds. Various methods useful in the expansion of these
  131. properties are also included.
  132. </dd>
  133. <dt>
  134. <a href = "javascript:parent.displayCode(
  135. 'FOAttributes.html#FOAttributesClass' )"
  136. ><em>FOAttributes</em></a>
  137. </dt>
  138. <dd>
  139. This class manages the attribute set that is associated with
  140. a SAX <span class= "codefrag" >startElement</span> event.
  141. <em>fo:</em> namespace attributes are entered into a <a href
  142. = "javascript:parent.displayCode(
  143. 'FOAttributes.html#foAttrMap' )"><span class= "codefrag"
  144. >HashMap</span></a>, indexed by the <em>fo:</em> property
  145. index. As other namespaces are encountered, the values are
  146. entered into namespace-specific <a href =
  147. "javascript:parent.displayCode(
  148. 'FOAttributes.html#nSpaceAttrMaps' )"><span class=
  149. "codefrag" >HashMap</span>s</a>, indexed by the <em>local
  150. name</em> of the attribute.
  151. </dd>
  152. </dl>
  153. <a name= "N100AC" ></a><a name= "property-classes" ></a>
  154. <h4>org.apache.fop.fo.properties</h4>
  155. <dl>
  156. <dt>
  157. <a href="javascript:parent.displayCode(
  158. 'Property.html#PropertyClass' )" ><em>Property</em></a>
  159. </dt>
  160. <dd>
  161. The base class for all individual property classes.
  162. There are 320 properties in all.
  163. </dd>
  164. <dt>
  165. <em>ColumnNumber</em>
  166. </dt>
  167. <dd>
  168. The actual property class with the lowest index
  169. number, followed in the index order by properties required
  170. for further processing, e.g. FontSize.
  171. </dd>
  172. <dt>
  173. <em>....</em>
  174. </dt>
  175. <dd>....</dd>
  176. <dt>
  177. <em>Background</em>
  178. </dt>
  179. <dd>
  180. First in index order of the remainining shorthand
  181. properties, followed in index order by all other remaining
  182. shorthands.
  183. </dd>
  184. <dt>
  185. <em>....</em>
  186. </dt>
  187. <dd>....</dd>
  188. <dt>
  189. <em>AbsolutePosition</em>
  190. </dt>
  191. <dd>
  192. First in index order of the remaining properties. Within
  193. this ordering, compound properties precede their expansion
  194. properties, and corresponding relative properties precede
  195. corresponding absolute properties.
  196. </dd>
  197. <dt>
  198. <em>....</em>
  199. </dt>
  200. <dd>....</dd>
  201. <dt>
  202. <em>ZIndex</em>
  203. </dt>
  204. <dd>
  205. The property class with the highest index
  206. number.
  207. </dd>
  208. </dl>
  209. <a name= "N100EE" ></a>
  210. <h4>org.apache.fop.fo.expr</h4>
  211. <dl>
  212. <dt>
  213. <a href = "javascript:parent.displayCode(
  214. 'PropertyTokenizer.html#PropertyTokenizerClass' )"
  215. ><em>PropertyTokenizer</em></a>
  216. </dt>
  217. <dd>
  218. The tokenizer for the property expression parser. Defines a
  219. set of <a href = "javascript:parent.displayCode(
  220. 'PropertyTokenizer.html#EOF' )" >token constants</a> and
  221. returns these with associated token values.
  222. </dd>
  223. <dt>
  224. <a href = "javascript:parent.displayCode(
  225. 'PropertyParser.html#PropertyParserClass' )"
  226. ><em>PropertyParser</em></a>
  227. </dt>
  228. <dd>
  229. This extends <span class= "codefrag"
  230. >PropertyTokenizer</span>. It parses property
  231. expressions on the basis of the tokens passed to it by its
  232. superclass, generating <span class= "codefrag"
  233. >PropertyValue</span>s, including <span class= "codefrag"
  234. >PropertyValueList</span>s.
  235. </dd>
  236. <dt>
  237. <em>PropertyException</em>
  238. </dt>
  239. <dd>
  240. The basic class for all property-related exceptions.
  241. It extends <span class= "codefrag" >FOPException</span>. It
  242. is housed in this package by historical accident.
  243. </dd>
  244. <dt>
  245. <em>DataTypeNotImplementedException</em>
  246. <br>
  247. <em>FunctionNotImplementedException</em>
  248. <br>
  249. <em>PropertyNotImplementedException</em>
  250. </dt>
  251. <dd>
  252. A set of particular exceptions extending <span class=
  253. "codefrag" >PropertyException</span>. Also in this package
  254. by accident.
  255. </dd>
  256. </dl>
  257. <a name= "N10134" ></a>
  258. <h4>org.apache.fop.datatypes</h4>
  259. <dl>
  260. <dt>
  261. <a href = "javascript:parent.displayCode(
  262. 'PropertyValue.html#PropertyValueInterface' )"
  263. ><em>PropertyValue</em></a>
  264. </dt>
  265. <dd>
  266. An <em>interface</em> which all <span class= "codefrag"
  267. >PropertyValue</span> classes must implement. In addition
  268. to a few methods, <span class= "codefrag"
  269. >PropertyValue</span> defines the set of <a href =
  270. "javascript:parent.displayCode( 'PropertyValue.html#NO_TYPE'
  271. )" >constants</a> which the <span class= "codefrag"
  272. >getType()</span> method may return; i.e. the valid set of
  273. <span class= "codefrag" >PropertyValue</span> types.
  274. </dd>
  275. <dt>
  276. <a href = "javascript:parent.displayCode(
  277. 'AbstractPropertyValue.html#AbstractPropertyValueClass' )"
  278. ><em>AbstractPropertyValue</em></a>
  279. </dt>
  280. <dd>
  281. An abstract implementation of the <span class= "codefrag"
  282. >PropertyValue</span> interface. Most actual property value
  283. classes extend <span class= "codefrag"
  284. >AbstractPropertyValue</span>.
  285. </dd>
  286. <dt>
  287. <a href = "javascript:parent.displayCode(
  288. 'PropertyValueList.html#PropertyValueListClass' )"
  289. ><em>PropertyValueList</em></a>
  290. </dt>
  291. <dd>
  292. This class extends <span class= "codefrag"
  293. >LinkedList</span> and implements <span class= "codefrag"
  294. >PropertyValue</span>. It is used whenever the process of
  295. resolving a property expression yields a list of <span
  296. class= "codefrag" >PropertyValue</span> elements; notably
  297. during the processing of shorthands and "compound"
  298. properties.
  299. </dd>
  300. <dt>
  301. <em>StringType</em>
  302. </dt>
  303. <dd>
  304. A basic type extending <span class= "codefrag"
  305. >AbstractPropertyValue</span>. Extended by <span class=
  306. "codefrag" >NCName</span>.
  307. </dd>
  308. <dt>
  309. <em>NCName</em>
  310. </dt>
  311. <dd>
  312. Extends <span class= "codefrag" >StringType</span> to represent
  313. NCName strings.
  314. </dd>
  315. <dt>
  316. <em>EnumType</em>
  317. </dt>
  318. <dd>
  319. Extends <span class= "codefrag"
  320. >AbstractPropertyValue</span> to represented enumerated
  321. types.
  322. </dd>
  323. <dt>
  324. <em>Other types</em>
  325. </dt>
  326. <dd>
  327. All other types extend one of the above classes.
  328. </dd>
  329. </dl>
  330. <a name= "N101A2" ></a>
  331. <h4>org.apache.fop.datatypes.indirect</h4>
  332. <dl>
  333. <dt>
  334. <em>IndirectValue</em>
  335. </dt>
  336. <dd>
  337. The base type for all indirect value types; extends
  338. <span class= "codefrag" >AbstractPropertyValue</span>.
  339. </dd>
  340. </dl>
  341. <p>
  342. <strong>Previous:</strong> <a href = "introduction.html"
  343. >Introduction</a>
  344. </p>
  345. <p>
  346. <strong>Next:</strong> <a href= "PropertyConsts-class.html"
  347. >The PropertyConsts class</a>
  348. </p>
  349. </div>
  350. <table summary= "footer" cellspacing= "0" cellpadding= "0" width= "100%" height= "20" border= "0" >
  351. <tr>
  352. <td colspan= "2" height= "1" bgcolor= "#4C6C8F" ><img
  353. height= "1" width= "1" alt= "" src=
  354. "../../skin/images/spacer.gif" ><a href =
  355. "../../skin/images/label.gif" ></a><a href =
  356. "../../skin/images/page.gif" ></a><a href =
  357. "../../skin/images/chapter.gif" ></a><a href =
  358. "../../skin/images/chapter_open.gif" ></a><a href =
  359. "../../skin/images/current.gif" ></a><a href =
  360. "../..//favicon.ico" ></a></td>
  361. </tr>
  362. <tr>
  363. <td colspan= "2" bgcolor= "#CFDCED" class= "copyright"
  364. align= "center" ><font size= "2" face= "Arial, Helvetica,
  365. Sans-Serif" >Copyright &copy; 1999-2002&nbsp;The Apache
  366. Software Foundation. All rights reserved.<script type=
  367. "text/javascript" language= "JavaScript" ><!--
  368. document.write(" - "+"Last Published: " +
  369. document.lastModified); // --></script></font></td>
  370. </tr>
  371. <tr>
  372. <td align= "left" bgcolor= "#CFDCED" class= "logos"
  373. ></td><td align= "right" bgcolor= "#CFDCED" class= "logos"
  374. ></td>
  375. </tr>
  376. </table>
  377. </body>
  378. </html>