[FOray-commit] SF.net SVN: foray: [8091] trunk/foray
Modular XSL-FO Implementation for Java.
Status: Alpha
Brought to you by:
victormote
|
From: <vic...@us...> - 2006-09-14 00:45:48
|
Revision: 8091
http://svn.sourceforge.net/foray/?rev=8091&view=rev
Author: victormote
Date: 2006-09-13 17:45:36 -0700 (Wed, 13 Sep 2006)
Log Message:
-----------
Make bounding box constants more widely available, and make provision to unify them in the future.
Modified Paths:
--------------
trunk/foray/foray-graphic/src/java/org/foray/graphic/EPSGraphic.java
Added Paths:
-----------
trunk/foray/foray-ps/src/java/org/foray/ps/BoundingBox.java
Modified: trunk/foray/foray-graphic/src/java/org/foray/graphic/EPSGraphic.java
===================================================================
--- trunk/foray/foray-graphic/src/java/org/foray/graphic/EPSGraphic.java 2006-09-14 00:44:55 UTC (rev 8090)
+++ trunk/foray/foray-graphic/src/java/org/foray/graphic/EPSGraphic.java 2006-09-14 00:45:36 UTC (rev 8091)
@@ -44,10 +44,29 @@
public class EPSGraphic extends Graphic
implements org.axsl.graphicR.EPSGraphic {
+ /** Index to the array item for the lower-left X value in a PostScript
+ * bounding box. */
public static final byte BBOX_LOWER_LEFT_X_INDEX = 0;
+ /* TODO: Use aXSL version of this constant after org.foray.ps.BoundingBox
+ * is moved to aXSL. */
+
+ /** Index to the array item for the lower-left Y value in a PostScript
+ * bounding box. */
public static final byte BBOX_LOWER_LEFT_Y_INDEX = 1;
+ /* TODO: Use aXSL version of this constant after org.foray.ps.BoundingBox
+ * is moved to aXSL. */
+
+ /** Index to the array item for the upper-right X value in a PostScript
+ * bounding box. */
public static final byte BBOX_UPPER_RIGHT_X_INDEX = 2;
+ /* TODO: Use aXSL version of this constant after org.foray.ps.BoundingBox
+ * is moved to aXSL. */
+
+ /** Index to the array item for the upper-right X value in a PostScript
+ * bounding box. */
public static final byte BBOX_UPPER_RIGHT_Y_INDEX = 3;
+ /* TODO: Use aXSL version of this constant after org.foray.ps.BoundingBox
+ * is moved to aXSL. */
private static final int EPS_LOAD_SIZE = 20480;
Added: trunk/foray/foray-ps/src/java/org/foray/ps/BoundingBox.java
===================================================================
--- trunk/foray/foray-ps/src/java/org/foray/ps/BoundingBox.java (rev 0)
+++ trunk/foray/foray-ps/src/java/org/foray/ps/BoundingBox.java 2006-09-14 00:45:36 UTC (rev 8091)
@@ -0,0 +1,53 @@
+/*
+ * Copyright 2006 The FOray Project.
+ * http://www.foray.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.
+ *
+ * This work is in part derived from the following work(s), used with the
+ * permission of the licensor:
+ * Apache FOP, licensed by the Apache Software Foundation
+ *
+ */
+
+/*
+ * $LastChangedRevision$
+ * $LastChangedDate$
+ * $LastChangedBy$
+ */
+
+package org.foray.ps;
+
+/**
+ * PostScript constants.
+ */
+public interface BoundingBox {
+ /* TODO: Move this to aXSL. */
+
+ /** Index to the array item for the lower-left X value in a PostScript
+ * bounding box. */
+ byte BBOX_LOWER_LEFT_X_INDEX = 0;
+
+ /** Index to the array item for the lower-left Y value in a PostScript
+ * bounding box. */
+ byte BBOX_LOWER_LEFT_Y_INDEX = 1;
+
+ /** Index to the array item for the upper-right X value in a PostScript
+ * bounding box. */
+ byte BBOX_UPPER_RIGHT_X_INDEX = 2;
+
+ /** Index to the array item for the upper-right X value in a PostScript
+ * bounding box. */
+ byte BBOX_UPPER_RIGHT_Y_INDEX = 3;
+
+}
Property changes on: trunk/foray/foray-ps/src/java/org/foray/ps/BoundingBox.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.
|