Revision: 7328
Author: victormote
Date: 2006-05-30 15:30:09 -0700 (Tue, 30 May 2006)
ViewCVS: http://svn.sourceforge.net/foray/?rev=7328&view=rev
Log Message:
-----------
Conform to axsl changes: Remove layout-related items from interface.
Modified Paths:
--------------
trunk/foray/foray-areatree/src/java/org/foray/area/NormalBlockArea.java
Modified: trunk/foray/foray-areatree/src/java/org/foray/area/NormalBlockArea.java
===================================================================
--- trunk/foray/foray-areatree/src/java/org/foray/area/NormalBlockArea.java 2006-05-30 22:29:58 UTC (rev 7327)
+++ trunk/foray/foray-areatree/src/java/org/foray/area/NormalBlockArea.java 2006-05-30 22:30:09 UTC (rev 7328)
@@ -45,34 +45,11 @@
implements org.axsl.areaR.NormalBlockArea,
org.axsl.areaW.NormalBlockArea {
- /* TODO: This is a layout concept and should not be in AreaTree? */
- private LineArea currentLineArea;
-
public NormalBlockArea(FObj parentFObj, Area parentArea) {
super(parentFObj, parentArea);
}
/**
- * Get the current line area in this block area.
- * This is used to get the current line area for adding
- * inline objects.
- * This will return null if there is not enough room left
- * in the block area to accomodate the line area.
- *
- * @return the line area to be used to add inline objects
- */
- public LineArea getCurrentLineArea() {
- if (this.currentLineArea == null) {
- return (LineArea) createNextLineArea();
- }
- return this.currentLineArea;
- }
-
- public org.axsl.areaW.LineArea getWritableCurrentLineArea() {
- return getCurrentLineArea();
- }
-
- /**
* Create a new line area to add inline objects.
* This should be called after getting the current line area
* and discovering that the inline object will not fit inside the current
@@ -93,23 +70,9 @@
> this.progressionDimensionAvailable()) {
return null;
}
- this.currentLineArea = new LineArea(traitGeneratedBy(), this);
- return this.currentLineArea;
+ return new LineArea(traitGeneratedBy(), this);
}
- /**
- * Notify this block that the area has completed layout.
- * Indicates the the block has been fully laid out, this will
- * add (if any) the current line area.
- */
- public void completeCurrentLine() {
- if (this.currentLineArea == null) {
- return;
- }
- this.currentLineArea.verticalAlign();
- this.currentLineArea = null;
- }
-
public byte getAreaType() {
return AreaNode.AREATYPE_BLOCK;
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|