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

LayoutContext
public class LayoutContext (Code)
This class is used to pass information to the getNextKnuthElements() method. It is set up by higher level LM and used by lower level LM.


Field Summary
final public static  intCHECK_REF_AREA
     Signal to a Line LM that a higher level LM may provoke a change in the reference area, thus ref area IPD.
final public static  intFIRST_AREA
    
final public static  intIPD_UNKNOWN
    
final public static  intKEEP_WITH_NEXT_PENDING
     This flag indicates that there's a keep-with-next that hasn't been processed, yet.
final public static  intKEEP_WITH_PREVIOUS_PENDING
     This flag indicates that there's a keep-with-previous that hasn't been processed, yet.
final public static  intLAST_AREA
    
final public static  intLINEBREAK_AT_LF_ONLY
     Values for flags.
final public static  intNEW_AREA
    
final public static  intRESOLVE_LEADING_SPACE
    
final public static  intSUPPRESS_LEADING_SPACE
     If this flag is set, it indicates that any leading fo:character objects with suppress-at-line-break="suppress" should not generate areas.
final public static  intTRY_HYPHENATE
    

Constructor Summary
public  LayoutContext(LayoutContext parentLC)
     Copy constructor for creating child layout contexts.
public  LayoutContext(int flags)
     Main constructor.

Method Summary
public  voidaddPendingAfterMark(UnresolvedListElementWithLength element)
     Adds a border or padding element to the pending list which will be used to generate the right element list for break possibilities.
public  voidaddPendingBeforeMark(UnresolvedListElementWithLength element)
     Adds a border or padding element to the pending list which will be used to generate the right element list for break possibilities.
public  voidcopyPendingMarksFrom(LayoutContext source)
    
public  AlignmentContextgetAlignmentContext()
    
public  intgetBPAlignment()
    
public  HyphContextgetHyphContext()
    
public  doublegetIPDAdjust()
    
public  SpaceSpecifiergetLeadingSpace()
    
public  intgetLineEndBorderAndPaddingWidth()
     Get the width to be reserved for border and padding at the end of the line.
public  intgetLineStartBorderAndPaddingWidth()
     Get the width to be reserved for border and padding at the start of the line.
public  intgetNextSpan()
    
public  ListgetPendingAfterMarks()
    
public  ListgetPendingBeforeMarks()
    
public  intgetRefIPD()
     Returns the inline-progression-dimension of the nearest ancestor reference area.
public  doublegetSpaceAdjust()
    
public  intgetSpaceAfter()
    
public  intgetSpaceBefore()
    
public  MinOptMaxgetStackLimit()
    
public  SpaceSpecifiergetTrailingSpace()
    
public  intgetWritingMode()
     Get the writing mode of the relevant reference area.
public  booleanisFirstArea()
    
public  booleanisKeepWithNextPending()
    
public  booleanisKeepWithPreviousPending()
    
public  booleanisLastArea()
    
public  booleanisStart()
    
public  voidresetAlignmentContext()
    
public  booleanresolveLeadingSpace()
    
public  voidsetAlignmentContext(AlignmentContext alignmentContext)
    
public  voidsetBPAlignment(int alignment)
     Sets the currently applicable alignment in BP direction.
public  voidsetFlags(int flags)
    
public  voidsetFlags(int flags, boolean bSet)
    
public  voidsetHyphContext(HyphContext hyph)
    
public  voidsetIPDAdjust(double ipdA)
    
public  voidsetLeadingSpace(SpaceSpecifier space)
    
public  voidsetLineEndBorderAndPaddingWidth(int lineEndBorderAndPaddingWidth)
     Set the width to be reserved for border and padding at the end of the line.
public  voidsetLineStartBorderAndPaddingWidth(int lineStartBorderAndPaddingWidth)
     Set the width to be reserved for border and padding at the start of the line.
public  voidsetRefIPD(int ipd)
     Sets the inline-progression-dimension of the nearest ancestor reference area.
public  voidsetSpaceAdjust(double adjust)
    
public  voidsetSpaceAfter(int spaceAfter)
    
public  voidsetSpaceBefore(int spaceBefore)
    
public  voidsetStackLimit(MinOptMax limit)
    
public  voidsetTrailingSpace(SpaceSpecifier space)
    
public  voidsetWritingMode(int writingMode)
     Set the writing mode.
public  voidsignalSpanChange(int span)
     Used to signal the PSLM that the element list ends early because of a span change in multi-column layout.
public  booleanstartsNewArea()
    
public  booleansuppressLeadingSpace()
    
public  StringtoString()
    
public  booleantryHyphenate()
    
public  voidunsetFlags(int flags)
    

Field Detail
CHECK_REF_AREA
final public static int CHECK_REF_AREA(Code)
Signal to a Line LM that a higher level LM may provoke a change in the reference area, thus ref area IPD. The LineLM should return without looking for a line break.



FIRST_AREA
final public static int FIRST_AREA(Code)



IPD_UNKNOWN
final public static int IPD_UNKNOWN(Code)



KEEP_WITH_NEXT_PENDING
final public static int KEEP_WITH_NEXT_PENDING(Code)
This flag indicates that there's a keep-with-next that hasn't been processed, yet.



KEEP_WITH_PREVIOUS_PENDING
final public static int KEEP_WITH_PREVIOUS_PENDING(Code)
This flag indicates that there's a keep-with-previous that hasn't been processed, yet.



LAST_AREA
final public static int LAST_AREA(Code)



LINEBREAK_AT_LF_ONLY
final public static int LINEBREAK_AT_LF_ONLY(Code)
Values for flags.



NEW_AREA
final public static int NEW_AREA(Code)
Generated break possibility is first in a new area



RESOLVE_LEADING_SPACE
final public static int RESOLVE_LEADING_SPACE(Code)



SUPPRESS_LEADING_SPACE
final public static int SUPPRESS_LEADING_SPACE(Code)
If this flag is set, it indicates that any leading fo:character objects with suppress-at-line-break="suppress" should not generate areas. This is the case at the beginning of each new LineArea except the first.



TRY_HYPHENATE
final public static int TRY_HYPHENATE(Code)




Constructor Detail
LayoutContext
public LayoutContext(LayoutContext parentLC)(Code)
Copy constructor for creating child layout contexts.
Parameters:
  parentLC - the parent layout context to copy from



LayoutContext
public LayoutContext(int flags)(Code)
Main constructor.
Parameters:
  flags - the initial flags




Method Detail
addPendingAfterMark
public void addPendingAfterMark(UnresolvedListElementWithLength element)(Code)
Adds a border or padding element to the pending list which will be used to generate the right element list for break possibilities. Conditionality resolution will be done elsewhere.
Parameters:
  element - the border, padding or space element



addPendingBeforeMark
public void addPendingBeforeMark(UnresolvedListElementWithLength element)(Code)
Adds a border or padding element to the pending list which will be used to generate the right element list for break possibilities. Conditionality resolution will be done elsewhere.
Parameters:
  element - the border, padding or space element



copyPendingMarksFrom
public void copyPendingMarksFrom(LayoutContext source)(Code)



getAlignmentContext
public AlignmentContext getAlignmentContext()(Code)



getBPAlignment
public int getBPAlignment()(Code)
the currently applicable alignment in BP direction (EN_START, EN_JUSTIFY...)



getHyphContext
public HyphContext getHyphContext()(Code)



getIPDAdjust
public double getIPDAdjust()(Code)



getLeadingSpace
public SpaceSpecifier getLeadingSpace()(Code)



getLineEndBorderAndPaddingWidth
public int getLineEndBorderAndPaddingWidth()(Code)
Get the width to be reserved for border and padding at the end of the line. the width to be reserved



getLineStartBorderAndPaddingWidth
public int getLineStartBorderAndPaddingWidth()(Code)
Get the width to be reserved for border and padding at the start of the line. the width to be reserved



getNextSpan
public int getNextSpan()(Code)
true if the current element list ends early because of a span changein multi-column layout.



getPendingAfterMarks
public List getPendingAfterMarks()(Code)
the pending border and padding elements at the after edge
See Also:   LayoutContext.addPendingAfterMark(UnresolvedListElementWithLength)



getPendingBeforeMarks
public List getPendingBeforeMarks()(Code)
the pending border and padding elements at the before edge
See Also:   LayoutContext.addPendingBeforeMark(UnresolvedListElementWithLength)



getRefIPD
public int getRefIPD()(Code)
Returns the inline-progression-dimension of the nearest ancestor reference area. the inline-progression-dimension of the nearest ancestor reference area



getSpaceAdjust
public double getSpaceAdjust()(Code)



getSpaceAfter
public int getSpaceAfter()(Code)
Get the current amount of space after / end the space after / end amount



getSpaceBefore
public int getSpaceBefore()(Code)
Get the current amount of space before / start the space before / start amount



getStackLimit
public MinOptMax getStackLimit()(Code)



getTrailingSpace
public SpaceSpecifier getTrailingSpace()(Code)



getWritingMode
public int getWritingMode()(Code)
Get the writing mode of the relevant reference area. the applicable writing mode



isFirstArea
public boolean isFirstArea()(Code)



isKeepWithNextPending
public boolean isKeepWithNextPending()(Code)



isKeepWithPreviousPending
public boolean isKeepWithPreviousPending()(Code)



isLastArea
public boolean isLastArea()(Code)



isStart
public boolean isStart()(Code)



resetAlignmentContext
public void resetAlignmentContext()(Code)



resolveLeadingSpace
public boolean resolveLeadingSpace()(Code)



setAlignmentContext
public void setAlignmentContext(AlignmentContext alignmentContext)(Code)



setBPAlignment
public void setBPAlignment(int alignment)(Code)
Sets the currently applicable alignment in BP direction.
Parameters:
  alignment - one of EN_START, EN_JUSTIFY etc.



setFlags
public void setFlags(int flags)(Code)



setFlags
public void setFlags(int flags, boolean bSet)(Code)



setHyphContext
public void setHyphContext(HyphContext hyph)(Code)



setIPDAdjust
public void setIPDAdjust(double ipdA)(Code)



setLeadingSpace
public void setLeadingSpace(SpaceSpecifier space)(Code)



setLineEndBorderAndPaddingWidth
public void setLineEndBorderAndPaddingWidth(int lineEndBorderAndPaddingWidth)(Code)
Set the width to be reserved for border and padding at the end of the line.
Parameters:
  lineEndBorderAndPaddingWidth - the width to be reserved



setLineStartBorderAndPaddingWidth
public void setLineStartBorderAndPaddingWidth(int lineStartBorderAndPaddingWidth)(Code)
Set the width to be reserved for border and padding at the start of the line.
Parameters:
  lineStartBorderAndPaddingWidth - the width to be reserved



setRefIPD
public void setRefIPD(int ipd)(Code)
Sets the inline-progression-dimension of the nearest ancestor reference area.



setSpaceAdjust
public void setSpaceAdjust(double adjust)(Code)



setSpaceAfter
public void setSpaceAfter(int spaceAfter)(Code)
Set the amount of space after / end
Parameters:
  spaceAfter - the amount of space after / end



setSpaceBefore
public void setSpaceBefore(int spaceBefore)(Code)
Set the amount of space before / start
Parameters:
  spaceBefore - the amount of space before / start



setStackLimit
public void setStackLimit(MinOptMax limit)(Code)



setTrailingSpace
public void setTrailingSpace(SpaceSpecifier space)(Code)



setWritingMode
public void setWritingMode(int writingMode)(Code)
Set the writing mode.
Parameters:
  writingMode - the writing mode



signalSpanChange
public void signalSpanChange(int span)(Code)
Used to signal the PSLM that the element list ends early because of a span change in multi-column layout.
Parameters:
  span - the new span value (legal values: NOT_SET, EN_NONE, EN_ALL)



startsNewArea
public boolean startsNewArea()(Code)



suppressLeadingSpace
public boolean suppressLeadingSpace()(Code)



toString
public String toString()(Code)

See Also:   java.lang.Object.toString
See Also:   



tryHyphenate
public boolean tryHyphenate()(Code)



unsetFlags
public void unsetFlags(int flags)(Code)



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.