[aXSL-commit] SF.net SVN: axsl: [581] trunk/axsl/axsl-layout
An API for XSL-FO.
Status: Alpha
Brought to you by:
victormote
|
From: <vic...@us...> - 2006-05-24 18:44:10
|
Revision: 581 Author: victormote Date: 2006-05-24 11:43:55 -0700 (Wed, 24 May 2006) ViewCVS: http://svn.sourceforge.net/axsl/?rev=581&view=rev Log Message: ----------- 1. Add exception class. 2. Add method for laying out content. Modified Paths: -------------- trunk/axsl/axsl-layout/.classpath trunk/axsl/axsl-layout/src/java/org/axsl/layout/Layout.java Added Paths: ----------- trunk/axsl/axsl-layout/src/java/org/axsl/layout/LayoutException.java Modified: trunk/axsl/axsl-layout/.classpath =================================================================== --- trunk/axsl/axsl-layout/.classpath 2006-05-24 18:26:33 UTC (rev 580) +++ trunk/axsl/axsl-layout/.classpath 2006-05-24 18:43:55 UTC (rev 581) @@ -2,5 +2,6 @@ <classpath> <classpathentry kind="src" path="src/java"/> <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/> + <classpathentry combineaccessrules="false" kind="src" path="/axslArea-W"/> <classpathentry kind="output" path="build/eclipse"/> </classpath> Modified: trunk/axsl/axsl-layout/src/java/org/axsl/layout/Layout.java =================================================================== --- trunk/axsl/axsl-layout/src/java/org/axsl/layout/Layout.java 2006-05-24 18:26:33 UTC (rev 580) +++ trunk/axsl/axsl-layout/src/java/org/axsl/layout/Layout.java 2006-05-24 18:43:55 UTC (rev 581) @@ -20,6 +20,19 @@ package org.axsl.layout; +import org.axsl.areaW.AreaWException; +import org.axsl.areaW.PageCollection; + public interface Layout { + /** + * Lays out content by creating the needed content in the given + * PageCollection to satisfy the PageCollection's cousin PageSequence in the + * FOTree. + * @param pageCollection A PageCollection instance from the AreaTree. + * @throws AreaWException For errors during layout. + */ + public void formatPageSequence(PageCollection pageCollection) + throws LayoutException, AreaWException ; + } Added: trunk/axsl/axsl-layout/src/java/org/axsl/layout/LayoutException.java =================================================================== --- trunk/axsl/axsl-layout/src/java/org/axsl/layout/LayoutException.java (rev 0) +++ trunk/axsl/axsl-layout/src/java/org/axsl/layout/LayoutException.java 2006-05-24 18:43:55 UTC (rev 581) @@ -0,0 +1,58 @@ +/* + * Copyright 2006 The aXSL Project. + * http://www.axsl.org + * + * 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 + * + * 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. + * + */ + +/* $Id$ */ + +package org.axsl.layout; + +/** + * Exception thrown when an axslLayout implementation has a problem. + */ +public class LayoutException extends Exception { + + static final long serialVersionUID = 400382216933178535L; + + /** + * Create a new LayoutException. + * Identical to {@link Exception#Exception(java.lang.String)} + * @see Exception#Exception(java.lang.String) + */ + public LayoutException(String message) { + super(message); + } + + /** + * Create a new LayoutException. + * Identical to {@link Exception#Exception(java.lang.Throwable)} + * @see Exception#Exception(java.lang.Throwable) + */ + public LayoutException(Throwable cause) { + super(cause); + } + + /** + * Create a new LayoutException. + * Identical to {@link Exception#Exception(java.lang.String, + * java.lang.Throwable)} + * @see Exception#Exception(java.lang.String, java.lang.Throwable) + */ + public LayoutException(String message, Throwable cause) { + super(message, cause); + } + +} Property changes on: trunk/axsl/axsl-layout/src/java/org/axsl/layout/LayoutException.java ___________________________________________________________________ Name: svn:keywords + "Author Id Rev Date URL" Name: svn:eol-style + native This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |