diff options
author | Peter Bernard West <pbwest@apache.org> | 2002-12-27 07:35:38 +0000 |
---|---|---|
committer | Peter Bernard West <pbwest@apache.org> | 2002-12-27 07:35:38 +0000 |
commit | baa967ea81c373a17e99deec2cd58a355211bd79 (patch) | |
tree | f2c230a0e08cf88fad1aa363c9f53018e7f7db61 /src/documentation/content/design/alt.design/properties/RenderingIntent.html | |
parent | d05d08b5ed43ba8359a40231cb00297cbc1fd436 (diff) | |
download | xmlgraphics-fop-baa967ea81c373a17e99deec2cd58a355211bd79.tar.gz xmlgraphics-fop-baa967ea81c373a17e99deec2cd58a355211bd79.zip |
Code documentation
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@195800 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/documentation/content/design/alt.design/properties/RenderingIntent.html')
-rw-r--r-- | src/documentation/content/design/alt.design/properties/RenderingIntent.html | 117 |
1 files changed, 117 insertions, 0 deletions
diff --git a/src/documentation/content/design/alt.design/properties/RenderingIntent.html b/src/documentation/content/design/alt.design/properties/RenderingIntent.html new file mode 100644 index 000000000..d0198acd8 --- /dev/null +++ b/src/documentation/content/design/alt.design/properties/RenderingIntent.html @@ -0,0 +1,117 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"> +<!-- Created by htmlize-0.67 in css mode. --> +<html> + <head> + <title>RenderingIntent.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">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">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">datatypes</span>.<span class="type">Ints</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="keyword">import</span> <span class="jde-java-font-lock-package">java</span>.<span class="jde-java-font-lock-package">util</span>.<span class="type">Map</span>; +<span class="keyword">import</span> <span class="jde-java-font-lock-package">java</span>.<span class="jde-java-font-lock-package">util</span>.<span class="type">HashMap</span>; +<span class="keyword">import</span> <span class="jde-java-font-lock-package">java</span>.<span class="jde-java-font-lock-package">util</span>.<span class="type">Collections</span>; + +<span class="jde-java-font-lock-modifier">public</span> <span class="keyword">class</span> <span class="function-name" id="RenderingIntentClass">RenderingIntent</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="AUTO">AUTO</span> | <span class="jde-java-font-lock-constant">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="FORMATTING">FORMATTING</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="AUTO_IT">AUTO_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="PERCEPTUAL">PERCEPTUAL</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="RELATIVE_COLORIMETRIC">RELATIVE_COLORIMETRIC</span> = <span class="jde-java-font-lock-number">2</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="SATURATION">SATURATION</span> = <span class="jde-java-font-lock-number">3</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="ABSOLUTE_COLORIMETRIC">ABSOLUTE_COLORIMETRIC</span> = <span class="jde-java-font-lock-number">4</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="NO">NO</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> + ,"<span class="string">perceptual</span>" + ,"<span class="string">relative-colorimetric</span>" + ,"<span class="string">saturation</span>" + ,"<span class="string">absolute-colorimetric</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">HashMap</span> <span class="variable-name" id="rwEnumHash">rwEnumHash</span>; + <span class="jde-java-font-lock-modifier">static</span> { + rwEnumHash = <span class="keyword">new</span> <span class="type">HashMap</span>(rwEnums.length); + <span class="keyword">for</span> (<span class="type">int</span> <span class="variable-name" id="i">i</span> = <span class="jde-java-font-lock-number">1</span>; i < rwEnums.length; i++ ) { + rwEnumHash.put((<span class="type">Object</span>)rwEnums[i], + (<span class="type">Object</span>) Ints.consts.get(i)); + } + } + <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="type">Integer</span> <span class="variable-name" id="ii">ii</span> = (<span class="type">Integer</span>)(rwEnumHash.get(enum)); + <span class="keyword">if</span> (ii == <span class="jde-java-font-lock-constant">null</span>) + <span class="keyword">throw</span> <span class="keyword">new</span> <span class="type">PropertyException</span>("<span class="string">Unknown enum value: </span>" + enum); + <span class="keyword">return</span> ii.intValue(); + } + <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">throws</span> <span class="type">PropertyException</span> + { + <span class="keyword">if</span> (index < <span class="jde-java-font-lock-number">1</span> || index >= rwEnums.length) + <span class="keyword">throw</span> <span class="keyword">new</span> <span class="type">PropertyException</span>("<span class="string">index out of range: </span>" + index); + <span class="keyword">return</span> rwEnums[index]; + } +} + +</pre> + </body> +</html> |