Java Doc for AbstractBreaker.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.AbstractBreaker

All known Subclasses:   org.apache.fop.layoutmgr.PageBreaker,
AbstractBreaker
abstract public class AbstractBreaker (Code)
Abstract base class for breakers (page breakers, static region handlers etc.).

Inner Class :public static class PageBreakPosition extends LeafPosition
Inner Class :public class BlockSequence extends BlockKnuthSequence

Field Summary
protected  intalignment
    
protected  MinOptMaxfootnoteSeparatorLength
    
protected static  Loglog
    


Method Summary
abstract protected  voidaddAreas(PositionIterator posIter, LayoutContext context)
    
protected  voidaddAreas(PageBreakingAlgorithm alg, int partCount, BlockSequence originalList, BlockSequence effectiveList)
    
protected  voidaddAreas(PageBreakingAlgorithm alg, int startPart, int partCount, BlockSequence originalList, BlockSequence effectiveList)
    
protected  LayoutContextcreateLayoutContext()
     Creates the top-level LayoutContext for the breaker operation.
public  voiddoLayout(int flowBPD)
     Starts the page breaking process.
public  voiddoLayout(int flowBPD, boolean autoHeight)
     Starts the page breaking process.
abstract protected  voiddoPhase3(PageBreakingAlgorithm alg, int partCount, BlockSequence originalList, BlockSequence effectiveList)
    
abstract protected  voidfinishPart(PageBreakingAlgorithm alg, PageBreakPosition pbp)
    
abstract protected  LayoutManagergetCurrentChildLM()
    
abstract protected  intgetCurrentDisplayAlign()
    
protected  PageBreakingAlgorithm.PageBreakingLayoutListenergetLayoutListener()
     Returns a PageBreakingLayoutListener for the PageBreakingAlgorithm to notify about layout problems.
protected  intgetNextBlockList(LayoutContext childLC, int nextSequenceStartsOn)
     Gets the next block list (sequence) and adds it to a list of block lists if it's not empty.
abstract protected  LinkedListgetNextKnuthElements(LayoutContext context, int alignment)
    
protected  PageProvidergetPageProvider()
     Returns the PageProvider if any.
abstract protected  LayoutManagergetTopLevelLM()
    
protected  voidhandleEmptyContent()
     This method is called when no content is available for a part.
protected  inthandleSpanChange(LayoutContext childLC, int nextSequenceStartsOn)
     Handles span changes reported through the LayoutContext.
abstract protected  booleanhasMoreContent()
    
public  booleanisEmpty()
     true if there's no content that could be handled.
protected  booleanisPartOverflowRecoveryActivated()
     Controls the behaviour of the algorithm in cases where the first element of a part overflows a line/page.
protected  booleanisSinglePartFavored()
     true if one a single part should be produced if possible (ex.
protected  voidobserveElementList(List elementList)
     Used for debugging purposes.
protected  voidstartPart(BlockSequence list, int breakClass)
    
protected  voidupdateLayoutContext(LayoutContext context)
     Used to update the LayoutContext in subclasses prior to starting a new element list.

Field Detail
alignment
protected int alignment(Code)



footnoteSeparatorLength
protected MinOptMax footnoteSeparatorLength(Code)



log
protected static Log log(Code)
logging instance





Method Detail
addAreas
abstract protected void addAreas(PositionIterator posIter, LayoutContext context)(Code)



addAreas
protected void addAreas(PageBreakingAlgorithm alg, int partCount, BlockSequence originalList, BlockSequence effectiveList)(Code)
Phase 3 of Knuth algorithm: Adds the areas
Parameters:
  alg - PageBreakingAlgorithm instance which determined the breaks
Parameters:
  partCount - number of parts (pages) to be rendered
Parameters:
  originalList - original Knuth element list
Parameters:
  effectiveList - effective Knuth element list (after adjustments)



addAreas
protected void addAreas(PageBreakingAlgorithm alg, int startPart, int partCount, BlockSequence originalList, BlockSequence effectiveList)(Code)
Phase 3 of Knuth algorithm: Adds the areas
Parameters:
  alg - PageBreakingAlgorithm instance which determined the breaks
Parameters:
  startPart - index of the first part (page) to be rendered
Parameters:
  partCount - number of parts (pages) to be rendered
Parameters:
  originalList - original Knuth element list
Parameters:
  effectiveList - effective Knuth element list (after adjustments)



createLayoutContext
protected LayoutContext createLayoutContext()(Code)
Creates the top-level LayoutContext for the breaker operation. the top-level LayoutContext



doLayout
public void doLayout(int flowBPD)(Code)
Starts the page breaking process.
Parameters:
  flowBPD - the constant available block-progression-dimension (used for every part)



doLayout
public void doLayout(int flowBPD, boolean autoHeight)(Code)
Starts the page breaking process.
Parameters:
  flowBPD - the constant available block-progression-dimension (used for every part)
Parameters:
  autoHeight - true if warnings about overflows should be disabled because thethe BPD is really undefined (for footnote-separators, for example)



doPhase3
abstract protected void doPhase3(PageBreakingAlgorithm alg, int partCount, BlockSequence originalList, BlockSequence effectiveList)(Code)
Phase 3 of Knuth algorithm: Adds the areas
Parameters:
  alg - PageBreakingAlgorithm instance which determined the breaks
Parameters:
  partCount - number of parts (pages) to be rendered
Parameters:
  originalList - original Knuth element list
Parameters:
  effectiveList - effective Knuth element list (after adjustments)



finishPart
abstract protected void finishPart(PageBreakingAlgorithm alg, PageBreakPosition pbp)(Code)



getCurrentChildLM
abstract protected LayoutManager getCurrentChildLM()(Code)



getCurrentDisplayAlign
abstract protected int getCurrentDisplayAlign()(Code)



getLayoutListener
protected PageBreakingAlgorithm.PageBreakingLayoutListener getLayoutListener()(Code)
Returns a PageBreakingLayoutListener for the PageBreakingAlgorithm to notify about layout problems. the listener instance or null if no notifications are needed



getNextBlockList
protected int getNextBlockList(LayoutContext childLC, int nextSequenceStartsOn)(Code)
Gets the next block list (sequence) and adds it to a list of block lists if it's not empty.
Parameters:
  childLC - LayoutContext to use
Parameters:
  nextSequenceStartsOn - indicates on what page the next sequence should start the page on which the next content should appear after a hard break



getNextKnuthElements
abstract protected LinkedList getNextKnuthElements(LayoutContext context, int alignment)(Code)



getPageProvider
protected PageProvider getPageProvider()(Code)
Returns the PageProvider if any. PageBreaker overrides this method because each page may have a different available BPD which needs to be accessible to the breaking algorithm. the applicable PageProvider, or null if not applicable



getTopLevelLM
abstract protected LayoutManager getTopLevelLM()(Code)



handleEmptyContent
protected void handleEmptyContent()(Code)
This method is called when no content is available for a part. Used to force empty pages.



handleSpanChange
protected int handleSpanChange(LayoutContext childLC, int nextSequenceStartsOn)(Code)
Handles span changes reported through the LayoutContext. Only used by the PSLM and called by getNextBlockList().
Parameters:
  childLC - the LayoutContext
Parameters:
  nextSequenceStartsOn - previous value for break handling effective value for break handling



hasMoreContent
abstract protected boolean hasMoreContent()(Code)



isEmpty
public boolean isEmpty()(Code)
true if there's no content that could be handled.



isPartOverflowRecoveryActivated
protected boolean isPartOverflowRecoveryActivated()(Code)
Controls the behaviour of the algorithm in cases where the first element of a part overflows a line/page. true if the algorithm should try to send the element to the next line/page.



isSinglePartFavored
protected boolean isSinglePartFavored()(Code)
true if one a single part should be produced if possible (ex. for block-containers)



observeElementList
protected void observeElementList(List elementList)(Code)
Used for debugging purposes. Notifies all registered observers about the element list. Override to set different parameters.
Parameters:
  elementList - the Knuth element list



startPart
protected void startPart(BlockSequence list, int breakClass)(Code)



updateLayoutContext
protected void updateLayoutContext(LayoutContext context)(Code)
Used to update the LayoutContext in subclasses prior to starting a new element list.
Parameters:
  context - the LayoutContext to update



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.