/[Apache-SVN]/incubator/tobago/trunk/tobago-theme/tobago-theme-standard/src/main/java/org/apache/myfaces/tobago/renderkit/fo/standard/standard/tag/FoUtils.java
ViewVC logotype

Diff of /incubator/tobago/trunk/tobago-theme/tobago-theme-standard/src/main/java/org/apache/myfaces/tobago/renderkit/fo/standard/standard/tag/FoUtils.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

--- incubator/tobago/trunk/tobago-theme/tobago-theme-standard/src/main/java/org/apache/myfaces/tobago/renderkit/fo/standard/standard/tag/FoUtils.java	2006/02/04 21:44:01	374935
+++ incubator/tobago/trunk/tobago-theme/tobago-theme-standard/src/main/java/org/apache/myfaces/tobago/renderkit/fo/standard/standard/tag/FoUtils.java	2006/02/04 21:47:46	374936
@@ -1,19 +1,20 @@
+package org.apache.myfaces.tobago.renderkit.fo.standard.standard.tag;
+
 /*
  * Copyright 2002-2005 The Apache Software Foundation.
  *
- *    Licensed under the Apache License, Version 2.0 (the "License");
- *    you may not use this file except in compliance with the License.
- *    You may obtain a copy of the License at
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
  *
- *        http://www.apache.org/licenses/LICENSE-2.0
+ *      http://www.apache.org/licenses/LICENSE-2.0
  *
- *    Unless required by applicable law or agreed to in writing, software
- *    distributed under the License is distributed on an "AS IS" BASIS,
- *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- *    See the License for the specific language governing permissions and
- *    limitations under the License.
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
  */
-package org.apache.myfaces.tobago.renderkit.fo.standard.standard.tag;
 
 import javax.faces.component.UIComponent;
 import javax.faces.context.ResponseWriter;
@@ -25,7 +26,7 @@ import java.io.IOException;
  * $Id$
  */
 public class FoUtils {
-  public static int DEFAULT_HEIGHT = 200;
+  public static final int DEFAULT_HEIGHT = 200;
 
   public static void endBlockContainer(ResponseWriter writer) throws IOException {
     writer.endElement("fo:block-container");
@@ -41,7 +42,8 @@ public class FoUtils {
     writer.writeAttribute("border-width", Layout.getMM(borderWidth), null);
   }
 
-  public static void layoutBlockContainer(ResponseWriter writer, int height, int width, int x, int y) throws IOException {
+  public static void layoutBlockContainer(ResponseWriter writer,
+      int height, int width, int x, int y) throws IOException {
     writer.writeAttribute("top", Layout.getMM(y), null);
     writer.writeAttribute("left", Layout.getMM(x), null);
     writer.writeAttribute("height", Layout.getMM(height), null);
@@ -50,18 +52,21 @@ public class FoUtils {
   }
 
 
-  public static void writeTextBlockAlignStart(ResponseWriter writer, UIComponent component, String text) throws IOException {
+  public static void writeTextBlockAlignStart(ResponseWriter writer,
+      UIComponent component, String text) throws IOException {
     writeStartTextBlock(writer, component);
     writer.writeAttribute("text-align", "start", null);
     writeEndTextBlock(writer, text);
   }
-  public static void writeTextBlockAlignLeft(ResponseWriter writer, UIComponent component, String text) throws IOException {
+  public static void writeTextBlockAlignLeft(ResponseWriter writer,
+      UIComponent component, String text) throws IOException {
     writeStartTextBlock(writer, component);
     writer.writeAttribute("text-align", "left", null);
     writeEndTextBlock(writer, text);
   }
 
-  private static void writeStartTextBlock(ResponseWriter writer, UIComponent component) throws IOException {
+  private static void writeStartTextBlock(ResponseWriter writer,
+      UIComponent component) throws IOException {
     writer.startElement("fo:block", component);
     writer.writeAttribute("line-height", "14pt", null);
     writer.writeAttribute("font-family", "sans-serif", null);
@@ -69,7 +74,8 @@ public class FoUtils {
 
 
   }
-  private static void writeEndTextBlock(ResponseWriter writer, String text) throws IOException {
+  private static void writeEndTextBlock(ResponseWriter writer,
+      String text) throws IOException {
     writer.writeText(text, null);
     writer.endElement("fo:block");
   }

 

infrastructure at apache.org
ViewVC Help
Powered by ViewVC 1.1.26