pbwest      2002/12/26 23:34:54

  Added:       src/documentation/content/design/alt.design/properties
                        Direction.html
  Log:
  Code documentation
  
  Revision  Changes    Path
  1.1                  
xml-fop/src/documentation/content/design/alt.design/properties/Direction.html
  
  Index: Direction.html
  ===================================================================
  <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">
  <!-- Created by htmlize-0.67 in css mode. -->
  <html>
    <head>
      <title>Direction.java</title>
      <style type="text/css">
      <!--
        body {
          color: #000000;
          background-color: #faf0e6;
        } /* default */
        .variable-name {
          color: #8b008b;
          background-color: #faf0e6;
        } /* font-lock-variable-name-face */
        .jde-java-font-lock-package {
          color: #0000cd;
          background-color: #faf0e6;
        } /* jde-java-font-lock-package-face */
        .jde-java-font-lock-constant {
          color: #5f9ea0;
          background-color: #faf0e6;
        } /* jde-java-font-lock-constant-face */
        .keyword {
          color: #8b0000;
          background-color: #faf0e6;
        } /* font-lock-keyword-face */
        .string {
          color: #008b00;
          background-color: #faf0e6;
        } /* font-lock-string-face */
        .jde-java-font-lock-number {
          color: #bc8f8f;
          background-color: #faf0e6;
        } /* jde-java-font-lock-number-face */
        .type {
          color: #4682b4;
          background-color: #faf0e6;
        } /* font-lock-type-face */
        .jde-java-font-lock-modifier {
          color: #da70d6;
          background-color: #faf0e6;
        } /* jde-java-font-lock-modifier-face */
        .function-name {
          color: #8b2323;
          background-color: #faf0e6;
        } /* font-lock-function-name-face */
        a {
          color: inherit;
          background-color: inherit;
          font: inherit;
          text-decoration: inherit;
        }
        a:hover {
          text-decoration: underline;
        }
      -->
      </style>
    </head>
    <body>
      <pre>
  <span class="keyword">package</span> <span 
class="jde-java-font-lock-package">org</span>.<span 
class="jde-java-font-lock-package">apache</span>.<span 
class="jde-java-font-lock-package">fop</span>.<span 
class="jde-java-font-lock-package">fo</span>.<span 
class="jde-java-font-lock-package">properties</span>;
  
  <span class="keyword">import</span> <span 
class="jde-java-font-lock-package">org</span>.<span 
class="jde-java-font-lock-package">apache</span>.<span 
class="jde-java-font-lock-package">fop</span>.<span 
class="jde-java-font-lock-package">datastructs</span>.<span 
class="type">ROStringArray</span>;
  <span class="keyword">import</span> <span 
class="jde-java-font-lock-package">org</span>.<span 
class="jde-java-font-lock-package">apache</span>.<span 
class="jde-java-font-lock-package">fop</span>.<span 
class="jde-java-font-lock-package">fo</span>.<span 
class="jde-java-font-lock-package">expr</span>.<span 
class="type">PropertyException</span>;
  <span class="keyword">import</span> <span 
class="jde-java-font-lock-package">org</span>.<span 
class="jde-java-font-lock-package">apache</span>.<span 
class="jde-java-font-lock-package">fop</span>.<span 
class="jde-java-font-lock-package">datatypes</span>.<span 
class="type">PropertyValue</span>;
  <span class="keyword">import</span> <span 
class="jde-java-font-lock-package">org</span>.<span 
class="jde-java-font-lock-package">apache</span>.<span 
class="jde-java-font-lock-package">fop</span>.<span 
class="jde-java-font-lock-package">datatypes</span>.<span class="type">EnumType</span>;
  <span class="keyword">import</span> <span 
class="jde-java-font-lock-package">org</span>.<span 
class="jde-java-font-lock-package">apache</span>.<span 
class="jde-java-font-lock-package">fop</span>.<span 
class="jde-java-font-lock-package">fo</span>.<span class="type">PropNames</span>;
  <span class="keyword">import</span> <span 
class="jde-java-font-lock-package">org</span>.<span 
class="jde-java-font-lock-package">apache</span>.<span 
class="jde-java-font-lock-package">fop</span>.<span 
class="jde-java-font-lock-package">fo</span>.<span 
class="jde-java-font-lock-package">properties</span>.<span 
class="type">Property</span>;
  
  <span class="jde-java-font-lock-modifier">public</span> <span 
class="keyword">class</span> <span class="function-name" 
id="DirectionClass">Direction</span> <span class="keyword">extends</span> <span 
class="type">Property</span>  {
      <span class="jde-java-font-lock-modifier">public</span> <span 
class="jde-java-font-lock-modifier">static</span> <span 
class="jde-java-font-lock-modifier">final</span> <span class="type">int</span> <span 
class="variable-name" id="dataTypes">dataTypes</span> = <span 
class="jde-java-font-lock-constant" id="ENUM">ENUM</span> | <span 
class="jde-java-font-lock-constant">INHERIT</span>;
      <span class="jde-java-font-lock-modifier">public</span> <span 
class="jde-java-font-lock-modifier">static</span> <span 
class="jde-java-font-lock-modifier">final</span> <span class="type">int</span> <span 
class="variable-name" id="traitMapping">traitMapping</span> = <span 
class="jde-java-font-lock-constant" id="NEW_TRAIT">NEW_TRAIT</span>;
      <span class="jde-java-font-lock-modifier">public</span> <span 
class="jde-java-font-lock-modifier">static</span> <span 
class="jde-java-font-lock-modifier">final</span> <span class="type">int</span> <span 
class="variable-name" id="initialValueType">initialValueType</span> = <span 
class="jde-java-font-lock-constant" id="ENUM_IT">ENUM_IT</span>;
      <span class="jde-java-font-lock-modifier">public</span> <span 
class="jde-java-font-lock-modifier">static</span> <span 
class="jde-java-font-lock-modifier">final</span> <span class="type">int</span> <span 
class="variable-name" id="LTR">LTR</span> = <span 
class="jde-java-font-lock-number">1</span>;
      <span class="jde-java-font-lock-modifier">public</span> <span 
class="jde-java-font-lock-modifier">static</span> <span 
class="jde-java-font-lock-modifier">final</span> <span class="type">int</span> <span 
class="variable-name" id="RTL">RTL</span> = <span 
class="jde-java-font-lock-number">2</span>;
      <span class="jde-java-font-lock-modifier">public</span> <span 
class="type">PropertyValue</span> <span class="function-name" 
id="getInitialValue">getInitialValue</span>(<span class="type">int</span> <span 
class="variable-name" id="property">property</span>)
          <span class="keyword">throws</span> <span 
class="type">PropertyException</span>
      {
          <span class="keyword">return</span> <span class="keyword">new</span> <span 
class="type">EnumType</span>(PropNames.<span class="jde-java-font-lock-constant" 
id="DIRECTION">DIRECTION</span>, <span class="jde-java-font-lock-constant">LTR</span>);
      }
      <span class="jde-java-font-lock-modifier">public</span> <span 
class="jde-java-font-lock-modifier">static</span> <span 
class="jde-java-font-lock-modifier">final</span> <span class="type">int</span> <span 
class="variable-name" id="inherited">inherited</span> = <span 
class="jde-java-font-lock-constant" id="COMPUTED">COMPUTED</span>;
  
      <span class="jde-java-font-lock-modifier">private</span> <span 
class="jde-java-font-lock-modifier">static</span> <span 
class="jde-java-font-lock-modifier">final</span> <span class="type">String</span>[] 
<span class="variable-name" id="rwEnums">rwEnums</span> = {
          <span class="jde-java-font-lock-constant" id="null">null</span>
          ,&quot;<span class="string">ltr</span>&quot;
          ,&quot;<span class="string">rtl</span>&quot;
      };
      <span class="jde-java-font-lock-modifier">public</span> <span 
class="type">int</span> <span class="function-name" 
id="getEnumIndex">getEnumIndex</span>(<span class="type">String</span> <span 
class="variable-name" id="enum">enum</span>) <span class="keyword">throws</span> <span 
class="type">PropertyException</span> {
          <span class="keyword">return</span> enumValueToIndex(enum, rwEnums);
      }
      <span class="jde-java-font-lock-modifier">public</span> <span 
class="type">String</span> <span class="function-name" 
id="getEnumText">getEnumText</span>(<span class="type">int</span> <span 
class="variable-name" id="index">index</span>) {
          <span class="keyword">return</span> rwEnums[index];
      }
  }
  
  </pre>
    </body>
  </html>
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to