SourceForge.net Logo
aXSL API 0.1

org.axsl.areaR
Interface LineArea

All Superinterfaces:
Area, AreaNode

public interface LineArea
extends Area

An Area containing a line of text or inline objects.


Method Summary
 void optimize()
          Gives the line an opportunity to make any final adjustments or resolve any unresolved values before it is rendered.
 short traitAlignmentBaseline()
          The "alignment-baseline" trait for this Area.
 int traitEndIndent()
          Returns the amount by which this line should be indented at its end.
 int traitLastLineEndIndent()
          Returns the amount by which the last line in a block should be indented at its end.
 int traitStartIndent()
          Returns the amount by which this line should be indented at its start.
 short traitTextAlign()
          The "text-align" trait for this Area.
 int traitTextIndent()
          Returns the amount by which the first line in a block should be indented at its start.
 
Methods inherited from interface org.axsl.areaR.Area
brBPD, brIPD, brOriginX, brOriginY, brPoints, crBPD, crIPD, crOriginX, crOriginY, destinationName, generatedByExists, generatedByName, getColor, getProgressionDimension, linkDestination, linkType, prOriginX, prOriginY, rrBPD, rrIPD, rrOriginX, rrOriginY, traitBorderAfterColor, traitBorderAfterWidth, traitBorderBeforeColor, traitBorderBeforeWidth, traitBorderEndColor, traitBorderEndWidth, traitBorderStartColor, traitBorderStartWidth, traitOverflow, traitScaling
 
Methods inherited from interface org.axsl.areaR.AreaNode
ancestorLineAreaOut, getAreaName, getChildren, getFontConsumer, getParentOut, render, traitColor, traitFontStyle, traitFontWeight, traitId, traitInternalDestination
 

Method Detail

optimize

public void optimize()
Gives the line an opportunity to make any final adjustments or resolve any unresolved values before it is rendered. Client applications should run this method right before rendering the line.


traitTextIndent

public int traitTextIndent()
Returns the amount by which the first line in a block should be indented at its start. This method does not check to see whether it is appropriate to use the text-indent value, that is, whether this is the first line in the block.

Returns:
The text-indent, in millipoints.

traitLastLineEndIndent

public int traitLastLineEndIndent()
Returns the amount by which the last line in a block should be indented at its end. This method does not check to see whether it is appropriate to use this value, that is, whether this is the last line in the block.

Returns:
The last-line-end-indent, in millipoints.

traitStartIndent

public int traitStartIndent()
Returns the amount by which this line should be indented at its start.

Returns:
The amount by which this line should be indented at its start.

traitEndIndent

public int traitEndIndent()
Returns the amount by which this line should be indented at its end.

Returns:
The amount by which this line should be indented at its end.

traitTextAlign

public short traitTextAlign()
The "text-align" trait for this Area.

Returns:
The "text-align" trait for this FO, one of Constants.FOVAL_START, Constants.FOVAL_CENTER, Constants.FOVAL_END, Constants.FOVAL_JUSTIFY, Constants.FOVAL_INSIDE, Constants.FOVAL_OUTSIDE, or Constants.FOVAL_NOT_A_KEYWORD. If Constants.FOVAL_NOT_A_KEYWORD is returned, this indicates that text should be aligned on a specific string.

traitAlignmentBaseline

public short traitAlignmentBaseline()
The "alignment-baseline" trait for this Area.

Returns:
The alignment-baseline-trait, one of Constants.FOVAL_AUTO, Constants.FOVAL_BASELINE, Constants.FOVAL_BEFORE_EDGE, Constants.FOVAL_TEXT_BEFORE_EDGE, Constants.FOVAL_MIDDLE, Constants.FOVAL_CENTRAL, Constants.FOVAL_AFTER_EDGE, Constants.FOVAL_TEXT_AFTER_EDGE, Constants.FOVAL_IDEOGRAPHIC, Constants.FOVAL_ALPHABETIC, Constants.FOVAL_HANGING, or Constants.FOVAL_MATHEMATICAL.

SourceForge.net Logo
aXSL API 0.1

This documentation was created September 6 2006 by The aXSL Group and may be freely copied. See license for details.