Revision: 12286
http://sourceforge.net/p/foray/code/12286
Author: victormote
Date: 2021-12-28 14:22:19 +0000 (Tue, 28 Dec 2021)
Log Message:
-----------
Conform to aXSL change: Expose text-modification traits in the Area interface.
Modified Paths:
--------------
trunk/foray/foray-areatree/src/main/java/org/foray/area/Area4a.java
Modified: trunk/foray/foray-areatree/src/main/java/org/foray/area/Area4a.java
===================================================================
--- trunk/foray/foray-areatree/src/main/java/org/foray/area/Area4a.java 2021-12-28 12:47:06 UTC (rev 12285)
+++ trunk/foray/foray-areatree/src/main/java/org/foray/area/Area4a.java 2021-12-28 14:22:19 UTC (rev 12286)
@@ -724,10 +724,7 @@
// return (short) (cumulative % WellKnownConstants.DEGREES_PER_CIRCLE);
}
- /**
- * Returns the whitespace-treatment trait for this area.
- * @return The whitespace-treatment trait for this area.
- */
+ @Override
public WhiteSpaceTreatment traitWhiteSpaceTreatment() {
final NormalBlockArea4a nearestBlockArea = this.nearestNormalBlockArea();
final Block block = nearestBlockArea.traitGeneratedBy();
@@ -734,10 +731,7 @@
return block.traitWhiteSpaceTreatment(nearestBlockArea);
}
- /**
- * Returns the linefeed-treatment trait for this area.
- * @return The linefeed-treatment trait for this area.
- */
+ @Override
public LinefeedTreatment traitLinefeedTreatment() {
final NormalBlockArea4a nearestBlockArea = this.nearestNormalBlockArea();
final Block block = nearestBlockArea.traitGeneratedBy();
@@ -744,20 +738,15 @@
return block.traitLinefeedTreatment(nearestBlockArea);
}
- /**
- * Returns the text-transform trait for this area.
- * @return The text-transform trait for this area.
- */
+ @Override
public TextTransform traitTextTransform() {
+ /* TODO: This isn't quite right: text-transform is applicable to more areas than normal-block-area. */
final NormalBlockArea4a nearestBlockArea = this.nearestNormalBlockArea();
final Block block = nearestBlockArea.traitGeneratedBy();
return block.traitTextTransform(nearestBlockArea);
}
- /**
- * Returns the white-space-collapse trait for this area.
- * @return The white-space-collapse trait for this area.
- */
+ @Override
public boolean traitWhiteSpaceCollapse() {
final NormalBlockArea4a nearestBlockArea = this.nearestNormalBlockArea();
final Block block = nearestBlockArea.traitGeneratedBy();
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|