Java Doc for FormatContext.java in  » IDE-Netbeans » visualweb.api.designer » org » netbeans » modules » visualweb » css2 » 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 » IDE Netbeans » visualweb.api.designer » org.netbeans.modules.visualweb.css2 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.netbeans.modules.visualweb.css2.FormatContext

FormatContext
public class FormatContext (Code)
FormatContext used during layout/formatting of CSS2 boxes
author:
   Tor Norbye


Field Summary
public  booleanfloating
    
public  List<FloatingBoxInfo>floats
    
public  ViewportBoxinitialCB
    
public  intinitialHeight
    
public  intinitialWidth
    
public  LineBoxlineBox
    


Method Summary
public  voidaddFloat(int x, int y, CssBox box, boolean leftSide)
    
 intadjustY(int y, CssBox yBox, CssBox floatParent)
     Given a coordinate in yBox, convert it to a coordinate in floatParent.
public  intclear(CssValue cssSide, CssBox ignoreChildren)
     Compute the clearance for a particular y position (compute how much we have to add to it to clear all the floating boxes on the given side(s)), as well as removing floats from the list.
Parameters:
  side - The side to be cleared
Parameters:
  ignoreChildren - If not null, ignore any floats that are children of thisgiven box the absolute y position of the cleared area.
 intgetLeftEdge(CssBox cssBox, CssBox parent, int y, int height)
     Return the minimum x coordinate available - this is the left edge of the containing block, plus the widths of any floats overlapping this line.
 CssBoxgetLowestFloatingForFloat(CssBox box)
    
 intgetMaxWidth(CssBox parent, int y)
     Return the maximum x coordinate available - this is the right edge of the containing block, minus the widths of any floats overlapping this line.
 intgetMaxWidth(CssBox cssBox, CssBox parent, int y, int height)
     Return the maximum x coordinate available - this is the right edge of the containing block, minus the widths of any floats overlapping this line.
 CssBoxgetPrevFloatingForClear(CssBox box)
     Depending on "clear" property of the box, looks for a previous floating box on either or both sides of the containing block. left The top margin of the generated box is increased enough that the top border edge is below the bottom outer edge of any left-floating boxes that resulted from elements earlier in the source document.
 CssBoxgetPrevFloatingForFloat(CssBox box)
    
 intgetRightEdge(CssBox cssBox, CssBox parent, int y, int height)
     Return the maximum x coordinate available - this is the right edge of the containing block, minus the widths of any floats overlapping this line.

Field Detail
floating
public boolean floating(Code)



floats
public List<FloatingBoxInfo> floats(Code)



initialCB
public ViewportBox initialCB(Code)



initialHeight
public int initialHeight(Code)



initialWidth
public int initialWidth(Code)



lineBox
public LineBox lineBox(Code)





Method Detail
addFloat
public void addFloat(int x, int y, CssBox box, boolean leftSide)(Code)



adjustY
int adjustY(int y, CssBox yBox, CssBox floatParent)(Code)
Given a coordinate in yBox, convert it to a coordinate in floatParent. Remember that each coordinate is relative to its parent, so this method essentially finds the nearest common ancestor box, computes the y coordinate value relative to that ancestor, it also computes the y coordinate of the floatParent, and subtracts the yBox from the floatParent y to compute the y value relative to the floatParent. (It would be conceptually easier to just call getAbsoluteY() on both boxes, subtract the difference and add y. But we cannot call getAbsoluteY() on these boxes here because we are in the middle of the layout and beyond the float parent the boxes may not yet be positioned so we'll include UNINITIALIZED constants in the computation and get wrong results.



clear
public int clear(CssValue cssSide, CssBox ignoreChildren)(Code)
Compute the clearance for a particular y position (compute how much we have to add to it to clear all the floating boxes on the given side(s)), as well as removing floats from the list.
Parameters:
  side - The side to be cleared
Parameters:
  ignoreChildren - If not null, ignore any floats that are children of thisgiven box the absolute y position of the cleared area. Will return Integer.MIN_VALUEif nothing had to be cleared.



getLeftEdge
int getLeftEdge(CssBox cssBox, CssBox parent, int y, int height)(Code)
Return the minimum x coordinate available - this is the left edge of the containing block, plus the widths of any floats overlapping this line. (Actually, since floats could overlap, it returns the rightmost coordinate of any float overlapping this line that is floated to the left.



getLowestFloatingForFloat
CssBox getLowestFloatingForFloat(CssBox box)(Code)



getMaxWidth
int getMaxWidth(CssBox parent, int y)(Code)
Return the maximum x coordinate available - this is the right edge of the containing block, minus the widths of any floats overlapping this line. (Actually, since floats could overlap, it returns the leftmost coordinate of any float overlapping this line that is floated to the right, minus the rightmost coordinate of any float overlapping this line that is floated to the left...)



getMaxWidth
int getMaxWidth(CssBox cssBox, CssBox parent, int y, int height)(Code)
Return the maximum x coordinate available - this is the right edge of the containing block, minus the widths of any floats overlapping this line.
Parameters:
  y - - lineBox top.
Parameters:
  height - - linebox height



getPrevFloatingForClear
CssBox getPrevFloatingForClear(CssBox box)(Code)
Depending on "clear" property of the box, looks for a previous floating box on either or both sides of the containing block. left The top margin of the generated box is increased enough that the top border edge is below the bottom outer edge of any left-floating boxes that resulted from elements earlier in the source document. This is not the most efficient algorithm perhaps. We can instead look for a lowest line box containing a float and then took a longer float within it. However, this algorithm looks right.



getPrevFloatingForFloat
CssBox getPrevFloatingForFloat(CssBox box)(Code)
Looks for a previous floating box



getRightEdge
int getRightEdge(CssBox cssBox, CssBox parent, int y, int height)(Code)
Return the maximum x coordinate available - this is the right edge of the containing block, minus the widths of any floats overlapping this line. (Actually, since floats could overlap, it returns the leftmost coordinate of any float overlapping this line that is floated to the right.



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.