[aXSL-commit] SF.net SVN: axsl: [499] trunk/axsl/axsl-fotree/src/java/org/axsl/fotree
An API for XSL-FO.
Status: Alpha
Brought to you by:
victormote
|
From: <vic...@us...> - 2006-05-03 19:41:57
|
Revision: 499 Author: victormote Date: 2006-05-03 12:41:49 -0700 (Wed, 03 May 2006) ViewCVS: http://svn.sourceforge.net/axsl/?rev=499&view=rev Log Message: ----------- 1. Move some FOTreeControl methods to FOTreeBuilder setters. 2. Remove now-empty FOTreeControl interface. Modified Paths: -------------- trunk/axsl/axsl-fotree/src/java/org/axsl/fotree/FOTreeBuilder.java trunk/axsl/axsl-fotree/src/java/org/axsl/fotree/FOTreeServer.java Removed Paths: ------------- trunk/axsl/axsl-fotree/src/java/org/axsl/fotree/FOTreeControl.java Modified: trunk/axsl/axsl-fotree/src/java/org/axsl/fotree/FOTreeBuilder.java =================================================================== --- trunk/axsl/axsl-fotree/src/java/org/axsl/fotree/FOTreeBuilder.java 2006-05-03 19:12:45 UTC (rev 498) +++ trunk/axsl/axsl-fotree/src/java/org/axsl/fotree/FOTreeBuilder.java 2006-05-03 19:41:49 UTC (rev 499) @@ -27,6 +27,8 @@ import org.xml.sax.ContentHandler; +import java.net.URL; + /** * An FOTreeBuilder is created for each document that is processed. * It is conceptually directly under the FOTreeServer (which can be used for @@ -86,4 +88,8 @@ public void setFontConsumer(FontConsumer consumer) ; + public void setGraphicSearchPath(URL[] graphicSearchPath); + + public void setCachingGraphics(boolean cachingGraphics); + } Deleted: trunk/axsl/axsl-fotree/src/java/org/axsl/fotree/FOTreeControl.java =================================================================== --- trunk/axsl/axsl-fotree/src/java/org/axsl/fotree/FOTreeControl.java 2006-05-03 19:12:45 UTC (rev 498) +++ trunk/axsl/axsl-fotree/src/java/org/axsl/fotree/FOTreeControl.java 2006-05-03 19:41:49 UTC (rev 499) @@ -1,47 +0,0 @@ -/* - * Copyright 2005 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.fotree; - -import java.net.URL; - -/** - * An interface for classes that are conceptually the parent class of the - * fo.pagination.Root object. The purpose of the interface is to maintain - * encapsulation of the FO Tree classes, but to acknowledge that a higher-level - * object is needed to control the building of the FO Tree, to provide it - * with information about the environment, to keep track of meta-type - * information, and to use its results. - */ -public interface FOTreeControl { - - /** - * @return The ordered list of URLs that should be searched when looking - * for a graphical image with a relative path. - */ - URL[] getGraphicSearchPath(); - - /** - * @return True if graphics should be cached in memory, false if the memory - * should be released. - */ - boolean getCachingGraphics(); - -} Modified: trunk/axsl/axsl-fotree/src/java/org/axsl/fotree/FOTreeServer.java =================================================================== --- trunk/axsl/axsl-fotree/src/java/org/axsl/fotree/FOTreeServer.java 2006-05-03 19:12:45 UTC (rev 498) +++ trunk/axsl/axsl-fotree/src/java/org/axsl/fotree/FOTreeServer.java 2006-05-03 19:41:49 UTC (rev 499) @@ -29,11 +29,9 @@ /** * Create a an FOTreeBuilder instance to process a document. - * @param control An FOTreeControl implementation, which will act as the - * "parent" or controller for the FOTreeBuilder that is created. * @return An implementation of FOTreeBuilder that is in conformity with * this server's processing. */ - public FOTreeBuilder makeTreeBuilder(FOTreeControl control); + public FOTreeBuilder makeTreeBuilder(); } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |