Java Doc for BlockStackingLayoutManager.java in  » Graphic-Library » fop » org » apache » fop » layoutmgr » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Graphic Library » fop » org.apache.fop.layoutmgr 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.apache.fop.layoutmgr.AbstractBaseLayoutManager
      org.apache.fop.layoutmgr.AbstractLayoutManager
         org.apache.fop.layoutmgr.BlockStackingLayoutManager

All known Subclasses:   org.apache.fop.layoutmgr.table.TableCaptionLayoutManager,  org.apache.fop.layoutmgr.BlockContainerLayoutManager,  org.apache.fop.layoutmgr.table.TableLayoutManager,  org.apache.fop.layoutmgr.list.ListItemContentLayoutManager,  org.apache.fop.layoutmgr.FootnoteBodyLayoutManager,  org.apache.fop.layoutmgr.list.ListItemLayoutManager,  org.apache.fop.layoutmgr.table.TableAndCaptionLayoutManager,  org.apache.fop.layoutmgr.StaticContentLayoutManager,  org.apache.fop.layoutmgr.list.ListBlockLayoutManager,  org.apache.fop.layoutmgr.table.TableCellLayoutManager,  org.apache.fop.layoutmgr.FlowLayoutManager,  org.apache.fop.layoutmgr.BlockLayoutManager,
BlockStackingLayoutManager
abstract public class BlockStackingLayoutManager extends AbstractLayoutManager implements BlockLevelLayoutManager(Code)
Base LayoutManager class for all areas which stack their child areas in the block-progression direction, such as Flow, Block, ListBlock.

Inner Class :protected static class StackingIter extends PositionIterator
Inner Class :protected static class MappingPosition extends Position

Field Summary
protected  intadjustedSpaceAfter
    
protected  intadjustedSpaceBefore
    
protected  intbpUnit
    
protected  booleanbreakBeforeServed
    
protected  intendIndent
    
protected  booleanfirstVisibleMarkServed
    
protected  MinOptMaxfoSpaceAfter
    
protected  MinOptMaxfoSpaceBefore
     Holds the (one-time use) fo:block space-before and -after properties.
protected  BlockParentparentArea
     Reference to FO whose areas it's managing or to the traits of the FO.
protected  intreferenceIPD
    
protected  intstartIndent
    
protected  LinkedListstoredList
    

Constructor Summary
public  BlockStackingLayoutManager(FObj node)
    

Method Summary
public  voidaddBlockSpacing(double adjust, MinOptMax minoptmax)
     Add a block spacer for space before and space after a block.
public  voidaddChildArea(Area childArea)
     Add the childArea to the current area. Called by child LayoutManager when it has filled one of its areas. The LM should already have an Area in which to put the child. See if the area will fit in the current area. If so, add it.
protected  voidaddChildToArea(Area childArea, BlockParent parentArea)
     Add the childArea to the passed area. Called by child LayoutManager when it has filled one of its areas. The LM should already have an Area in which to put the child. See if the area will fit in the current area. If so, add it.
protected  voidaddKnuthElementsForBorderPaddingAfter(LinkedList returnList, boolean isLast)
     Creates Knuth elements for after border padding and adds them to the return list.
protected  voidaddKnuthElementsForBorderPaddingBefore(LinkedList returnList, boolean isFirst)
     Creates Knuth elements for before border padding and adds them to the return list.
protected  booleanaddKnuthElementsForBreakAfter(LinkedList returnList, LayoutContext context)
     Creates Knuth elements for break-after and adds them to the return list.
protected  booleanaddKnuthElementsForBreakBefore(LinkedList returnList, LayoutContext context)
     Creates Knuth elements for break-before and adds them to the return list.
protected  voidaddKnuthElementsForSpaceAfter(LinkedList returnList, int alignment)
     Creates Knuth elements for space-after and adds them to the return list.
protected  voidaddKnuthElementsForSpaceBefore(LinkedList returnList, int alignment)
     Creates Knuth elements for space-before and adds them to the return list.
protected  voidaddPendingMarks(LayoutContext context)
     Adds the unresolved elements for border and padding to a layout context so break possibilities can be properly constructed.
protected  LinkedListcreateUnitElements(LinkedList oldList)
    
public  voiddiscardSpace(KnuthGlue spaceGlue)
    
protected  voidflush()
     Force current area to be added to parent area.
protected  PositiongetAuxiliaryPosition()
     a cached auxiliary Position instance used for things like spaces.
public  LinkedListgetChangedKnuthElements(List oldList, int alignment)
    
public  intgetContentAreaBPD()
    
public  intgetContentAreaIPD()
    
protected  BlockParentgetCurrentArea()
    
protected  intgetIPIndents()
    
public  LinkedListgetNextKnuthElements(LayoutContext context, int alignment)
    
public  booleanmustKeepTogether()
    
public  booleanmustKeepWithNext()
    
public  booleanmustKeepWithPrevious()
    
protected  intneededUnits(int len)
    
public  intnegotiateBPDAdjustment(int adj, KnuthElement lastElement)
    
protected  voidsetContentAreaIPD(int contentAreaIPD)
    
protected  voidsetCurrentArea(BlockParent parentArea)
     Set the current area being filled.
protected  intupdateContentAreaIPDwithOverconstrainedAdjust()
     Determines and sets the content area IPD based on available reference area IPD, start- and end-indent properties.
protected  intupdateContentAreaIPDwithOverconstrainedAdjust(int contentIPD)
     Sets the content area IPD by directly supplying the value.
protected  voidwrapPositionElements(List sourceList, List targetList)
    
protected  voidwrapPositionElements(List sourceList, List targetList, boolean force)
    

Field Detail
adjustedSpaceAfter
protected int adjustedSpaceAfter(Code)
space-after value adjusted for block-progression-unit handling



adjustedSpaceBefore
protected int adjustedSpaceBefore(Code)
space-before value adjusted for block-progression-unit handling



bpUnit
protected int bpUnit(Code)
Value of the block-progression-unit (non-standard property)



breakBeforeServed
protected boolean breakBeforeServed(Code)
Indicates whether break before has been served or not



endIndent
protected int endIndent(Code)
the effective end-indent value



firstVisibleMarkServed
protected boolean firstVisibleMarkServed(Code)
Indicates whether the first visible mark has been returned by this LM, yet



foSpaceAfter
protected MinOptMax foSpaceAfter(Code)
see foSpaceBefore



foSpaceBefore
protected MinOptMax foSpaceBefore(Code)
Holds the (one-time use) fo:block space-before and -after properties. Large fo:blocks are split into multiple Area. Blocks to accomodate the subsequent regions (pages) they are placed on. space-before is applied at the beginning of the first Block and space-after at the end of the last Block used in rendering the fo:block.



parentArea
protected BlockParent parentArea(Code)
Reference to FO whose areas it's managing or to the traits of the FO.



referenceIPD
protected int referenceIPD(Code)
Reference IPD available



startIndent
protected int startIndent(Code)
the effective start-indent value



storedList
protected LinkedList storedList(Code)
Only used to store the original list when createUnitElements is called




Constructor Detail
BlockStackingLayoutManager
public BlockStackingLayoutManager(FObj node)(Code)

Parameters:
  node - the fo this LM deals with




Method Detail
addBlockSpacing
public void addBlockSpacing(double adjust, MinOptMax minoptmax)(Code)
Add a block spacer for space before and space after a block. This adds an empty Block area that acts as a block space.
Parameters:
  adjust - the adjustment value
Parameters:
  minoptmax - the min/opt/max value of the spacing



addChildArea
public void addChildArea(Area childArea)(Code)
Add the childArea to the current area. Called by child LayoutManager when it has filled one of its areas. The LM should already have an Area in which to put the child. See if the area will fit in the current area. If so, add it. Otherwise initiate breaking.
Parameters:
  childArea - the area to add: will be some block-stacked Area.



addChildToArea
protected void addChildToArea(Area childArea, BlockParent parentArea)(Code)
Add the childArea to the passed area. Called by child LayoutManager when it has filled one of its areas. The LM should already have an Area in which to put the child. See if the area will fit in the current area. If so, add it. Otherwise initiate breaking.
Parameters:
  childArea - the area to add: will be some block-stacked Area.
Parameters:
  parentArea - the area in which to add the childArea



addKnuthElementsForBorderPaddingAfter
protected void addKnuthElementsForBorderPaddingAfter(LinkedList returnList, boolean isLast)(Code)
Creates Knuth elements for after border padding and adds them to the return list.
Parameters:
  returnList - return list to add the additional elements to
Parameters:
  isLast - true if this is the last time a layout manager instance needs to generate border and padding



addKnuthElementsForBorderPaddingBefore
protected void addKnuthElementsForBorderPaddingBefore(LinkedList returnList, boolean isFirst)(Code)
Creates Knuth elements for before border padding and adds them to the return list.
Parameters:
  returnList - return list to add the additional elements to
Parameters:
  isFirst - true if this is the first time a layout manager instance needs to generate border and padding



addKnuthElementsForBreakAfter
protected boolean addKnuthElementsForBreakAfter(LinkedList returnList, LayoutContext context)(Code)
Creates Knuth elements for break-after and adds them to the return list.
Parameters:
  returnList - return list to add the additional elements to
Parameters:
  context - the layout context true if an element has been added due to a break-after.



addKnuthElementsForBreakBefore
protected boolean addKnuthElementsForBreakBefore(LinkedList returnList, LayoutContext context)(Code)
Creates Knuth elements for break-before and adds them to the return list.
Parameters:
  returnList - return list to add the additional elements to
Parameters:
  context - the layout context true if an element has been added due to a break-before.



addKnuthElementsForSpaceAfter
protected void addKnuthElementsForSpaceAfter(LinkedList returnList, int alignment)(Code)
Creates Knuth elements for space-after and adds them to the return list.
Parameters:
  returnList - return list to add the additional elements to
Parameters:
  alignment - vertical alignment



addKnuthElementsForSpaceBefore
protected void addKnuthElementsForSpaceBefore(LinkedList returnList, int alignment)(Code)
Creates Knuth elements for space-before and adds them to the return list.
Parameters:
  returnList - return list to add the additional elements to
Parameters:
  alignment - vertical alignment



addPendingMarks
protected void addPendingMarks(LayoutContext context)(Code)
Adds the unresolved elements for border and padding to a layout context so break possibilities can be properly constructed.
Parameters:
  context - the layout context



createUnitElements
protected LinkedList createUnitElements(LinkedList oldList)(Code)



discardSpace
public void discardSpace(KnuthGlue spaceGlue)(Code)

See Also:   BlockLevelLayoutManager.discardSpace(KnuthGlue)



flush
protected void flush()(Code)
Force current area to be added to parent area.



getAuxiliaryPosition
protected Position getAuxiliaryPosition()(Code)
a cached auxiliary Position instance used for things like spaces.



getChangedKnuthElements
public LinkedList getChangedKnuthElements(List oldList, int alignment)(Code)

See Also:   LayoutManager.getChangedKnuthElements(Listint)



getContentAreaBPD
public int getContentAreaBPD()(Code)
Returns the BPD of the content area the BPD of the content area



getContentAreaIPD
public int getContentAreaIPD()(Code)
Returns the IPD of the content area the IPD of the content area



getCurrentArea
protected BlockParent getCurrentArea()(Code)
current area being filled



getIPIndents
protected int getIPIndents()(Code)
the sum of start-indent and end-indent



getNextKnuthElements
public LinkedList getNextKnuthElements(LayoutContext context, int alignment)(Code)

See Also:   LayoutManager.getNextKnuthElements(LayoutContextint)



mustKeepTogether
public boolean mustKeepTogether()(Code)

See Also:   org.apache.fop.layoutmgr.BlockLevelLayoutManager.mustKeepTogether



mustKeepWithNext
public boolean mustKeepWithNext()(Code)

See Also:   org.apache.fop.layoutmgr.BlockLevelLayoutManager.mustKeepWithNext



mustKeepWithPrevious
public boolean mustKeepWithPrevious()(Code)

See Also:   org.apache.fop.layoutmgr.BlockLevelLayoutManager.mustKeepWithPrevious



neededUnits
protected int neededUnits(int len)(Code)

Parameters:
  len - length in millipoints to span with bp units the minimum integer n such that n * bpUnit >= len



negotiateBPDAdjustment
public int negotiateBPDAdjustment(int adj, KnuthElement lastElement)(Code)

See Also:   org.apache.fop.layoutmgr.BlockLevelLayoutManager.negotiateBPDAdjustment(intorg.apache.fop.layoutmgr.KnuthElement)



setContentAreaIPD
protected void setContentAreaIPD(int contentAreaIPD)(Code)
Sets the IPD of the content area
Parameters:
  contentAreaIPD - the IPD of the content area



setCurrentArea
protected void setCurrentArea(BlockParent parentArea)(Code)
Set the current area being filled.
Parameters:
  parentArea - the current area to be filled



updateContentAreaIPDwithOverconstrainedAdjust
protected int updateContentAreaIPDwithOverconstrainedAdjust()(Code)
Determines and sets the content area IPD based on available reference area IPD, start- and end-indent properties. end-indent is adjusted based on overconstrained geometry rules, if necessary. the resulting content area IPD



updateContentAreaIPDwithOverconstrainedAdjust
protected int updateContentAreaIPDwithOverconstrainedAdjust(int contentIPD)(Code)
Sets the content area IPD by directly supplying the value. end-indent is adjusted based on overconstrained geometry rules, if necessary. the resulting content area IPD



wrapPositionElements
protected void wrapPositionElements(List sourceList, List targetList)(Code)
"wrap" the Position inside each element moving the elements from SourceList to targetList
Parameters:
  sourceList - source list
Parameters:
  targetList - target list receiving the wrapped position elements



wrapPositionElements
protected void wrapPositionElements(List sourceList, List targetList, boolean force)(Code)
"wrap" the Position inside each element moving the elements from SourceList to targetList
Parameters:
  sourceList - source list
Parameters:
  targetList - target list receiving the wrapped position elements
Parameters:
  force - if true, every Position is wrapped regardless of its LM of origin



Fields inherited from org.apache.fop.layoutmgr.AbstractLayoutManager
protected ListIterator childLMiter(Code)(Java Doc)
protected List childLMs(Code)(Java Doc)
protected LayoutManager curChildLM(Code)(Java Doc)
protected ListIterator fobjIter(Code)(Java Doc)
protected Map markers(Code)(Java Doc)
protected LayoutManager parentLM(Code)(Java Doc)

Methods inherited from org.apache.fop.layoutmgr.AbstractLayoutManager
public void addAreas(PositionIterator posIter, LayoutContext context)(Code)(Java Doc)
public void addChildArea(Area childArea)(Code)(Java Doc)
public void addChildLM(LayoutManager lm)(Code)(Java Doc)
public void addChildLMs(List newLMs)(Code)(Java Doc)
protected List createChildLMs(int size)(Code)(Java Doc)
public boolean createNextChildLMs(int pos)(Code)(Java Doc)
public LinkedList getChangedKnuthElements(List oldList, int alignment)(Code)(Java Doc)
protected LayoutManager getChildLM()(Code)(Java Doc)
public List getChildLMs()(Code)(Java Doc)
public PageViewport getCurrentPV()(Code)(Java Doc)
public Page getCurrentPage()(Code)(Java Doc)
public LinkedList getNextKnuthElements(LayoutContext context, int alignment)(Code)(Java Doc)
public PageSequenceLayoutManager getPSLM()(Code)(Java Doc)
public LayoutManager getParent()(Code)(Java Doc)
public Area getParentArea(Area childArea)(Code)(Java Doc)
protected boolean hasNextChildLM()(Code)(Java Doc)
public void initialize()(Code)(Java Doc)
public boolean isFinished()(Code)(Java Doc)
public boolean isFirst(Position pos)(Code)(Java Doc)
public boolean isLast(Position pos)(Code)(Java Doc)
public Position notifyPos(Position pos)(Code)(Java Doc)
protected void reset(org.apache.fop.layoutmgr.Position pos)(Code)(Java Doc)
public void resetPosition(Position resetPos)(Code)(Java Doc)
public void setFinished(boolean fin)(Code)(Java Doc)
public void setParent(LayoutManager lm)(Code)(Java Doc)
protected void transferForeignAttributes(Area targetArea)(Code)(Java Doc)

Fields inherited from org.apache.fop.layoutmgr.AbstractBaseLayoutManager
protected FObj fobj(Code)(Java Doc)
protected boolean generatesBlockArea(Code)(Java Doc)
protected boolean generatesReferenceArea(Code)(Java Doc)

Methods inherited from org.apache.fop.layoutmgr.AbstractBaseLayoutManager
protected int getAncestorBlockAreaBPD()(Code)(Java Doc)
protected int getAncestorBlockAreaIPD()(Code)(Java Doc)
public int getBaseLength(int lengthBase, FObj fobj)(Code)(Java Doc)
public int getContentAreaBPD()(Code)(Java Doc)
public int getContentAreaIPD()(Code)(Java Doc)
public FObj getFObj()(Code)(Java Doc)
public boolean getGeneratesBlockArea()(Code)(Java Doc)
public boolean getGeneratesLineArea()(Code)(Java Doc)
public boolean getGeneratesReferenceArea()(Code)(Java Doc)
protected int getParentAreaBPD()(Code)(Java Doc)
protected int getParentAreaIPD()(Code)(Java Doc)
protected int getReferenceAreaBPD()(Code)(Java Doc)
public int getReferenceAreaIPD()(Code)(Java Doc)
protected void setGeneratesBlockArea(boolean generatesBlockArea)(Code)(Java Doc)
protected void setGeneratesReferenceArea(boolean generatesReferenceArea)(Code)(Java Doc)

Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.