Java Doc for LayoutTreeNode.java in  » IDE-Eclipse » ui-workbench » org » eclipse » ui » internal » 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 Eclipse » ui workbench » org.eclipse.ui.internal 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.eclipse.ui.internal.LayoutTree
      org.eclipse.ui.internal.LayoutTreeNode

LayoutTreeNode
public class LayoutTreeNode extends LayoutTree (Code)
Implementation of a tree node. The node represents a sash and it allways has two children.

Inner Class :static class ChildSizes

Field Summary
final static  intSASH_WIDTH
    

Constructor Summary
public  LayoutTreeNode(LayoutPartSash sash)
     Initialize this tree with its sash.

Method Summary
 ChildSizescomputeChildSizes(int width, int height, int left, int right, int preferredWidth)
     Computes the pixel sizes of this node's children, given the available space for this node.
public  LayoutPartcomputeRelation(ArrayList relations)
     Add the relation ship between the children in the list and returns the left children.
public  voidcreateControl(Composite parent)
    
public  voiddescribeLayout(StringBuffer buf)
     Writes a description of the layout to the given string buffer. This is used for drag-drop test suites to determine if two layouts are the same.
public  voiddisposeSashes()
    
public  intdoComputePreferredSize(boolean width, int availableParallel, int availablePerpendicular, int preferredParallel)
    
protected  intdoGetSizeFlags(boolean width)
    
public  voiddoSetBounds(Rectangle bounds)
     Resize the parts on this tree to fit in bounds.
public  LayoutTreefind(LayoutPart child)
     Find a LayoutPart in the tree and return its sub-tree.
public  LayoutPartfindBottomRight()
     Find the part that is in the bottom right position.
public  LayoutTreeNodefindCommonParent(LayoutPart child1, LayoutPart child2)
     Go up in the tree finding a parent that is common of both children.
 LayoutTreeNodefindCommonParent(LayoutPart child1, LayoutPart child2, boolean foundChild1, boolean foundChild2)
     Go up in the tree finding a parent that is common of both children.
public  LayoutPartfindPart(Point toFind)
    
public  LayoutTreeNodefindSash(LayoutPartSash sash)
     Find a sash in the tree and return its sub-tree.
 voidfindSashes(LayoutTree child, PartPane.Sashes sashes)
     Sets the elements in the array of sashes with the Left,Rigth,Top and Botton sashes.
public  voidflushChildren()
    
 LayoutTreegetChild(boolean left)
    
public  intgetCompressionBias()
     Returns 0 if there is no bias.
public  LayoutPartSashgetSash()
     Returns the sash of this node.
public  booleanisCompressible()
    
 booleanisLeftChild(LayoutTree toTest)
    
public  booleanisVisible()
     Returns true if this tree has visible parts otherwise returns false.
 LayoutTreeremove(LayoutTree child)
    
 voidreplaceChild(LayoutTree oldChild, LayoutTree newChild)
     Replace a child with a new child and sets the new child's parent.
public  booleansameDirection(boolean isVertical, LayoutTreeNode subTree)
    
 voidsetChild(boolean left, LayoutPart part)
    
 voidsetChild(boolean left, LayoutTree child)
    
public  StringtoString()
     Returns a string representation of this object.

Field Detail
SASH_WIDTH
final static int SASH_WIDTH(Code)




Constructor Detail
LayoutTreeNode
public LayoutTreeNode(LayoutPartSash sash)(Code)
Initialize this tree with its sash.




Method Detail
computeChildSizes
ChildSizes computeChildSizes(int width, int height, int left, int right, int preferredWidth)(Code)
Computes the pixel sizes of this node's children, given the available space for this node. Note that "width" and "height" actually refer to the distance perpendicular and parallel to the sash respectively. That is, their meaning is reversed when computing a horizontal sash.
Parameters:
  width - the pixel width of a vertical node, or the pixel heightof a horizontal node (INFINITE if unbounded)
Parameters:
  height - the pixel height of a vertical node, or the pixel widthof a horizontal node (INFINITE if unbounded) a struct describing the pixel sizes of the left and right children(this is a width for horizontal nodes and a height for vertical nodes)



computeRelation
public LayoutPart computeRelation(ArrayList relations)(Code)
Add the relation ship between the children in the list and returns the left children.



createControl
public void createControl(Composite parent)(Code)



describeLayout
public void describeLayout(StringBuffer buf)(Code)
Writes a description of the layout to the given string buffer. This is used for drag-drop test suites to determine if two layouts are the same. Like a hash code, the description should compare as equal iff the layouts are the same. However, it should be user-readable in order to help debug failed tests. Although these are english readable strings, they should not be translated or equality tests will fail.
Parameters:
  buf -



disposeSashes
public void disposeSashes()(Code)
Dispose all Sashs in this tree



doComputePreferredSize
public int doComputePreferredSize(boolean width, int availableParallel, int availablePerpendicular, int preferredParallel)(Code)



doGetSizeFlags
protected int doGetSizeFlags(boolean width)(Code)



doSetBounds
public void doSetBounds(Rectangle bounds)(Code)
Resize the parts on this tree to fit in bounds.



find
public LayoutTree find(LayoutPart child)(Code)
Find a LayoutPart in the tree and return its sub-tree. Returns null if the child is not found.



findBottomRight
public LayoutPart findBottomRight()(Code)
Find the part that is in the bottom right position.



findCommonParent
public LayoutTreeNode findCommonParent(LayoutPart child1, LayoutPart child2)(Code)
Go up in the tree finding a parent that is common of both children. Return the subtree.



findCommonParent
LayoutTreeNode findCommonParent(LayoutPart child1, LayoutPart child2, boolean foundChild1, boolean foundChild2)(Code)
Go up in the tree finding a parent that is common of both children. Return the subtree.



findPart
public LayoutPart findPart(Point toFind)(Code)
Traverses the tree to find the part that intersects the given point
Parameters:
  toFind - the part that intersects the given point



findSash
public LayoutTreeNode findSash(LayoutPartSash sash)(Code)
Find a sash in the tree and return its sub-tree. Returns null if the sash is not found.



findSashes
void findSashes(LayoutTree child, PartPane.Sashes sashes)(Code)
Sets the elements in the array of sashes with the Left,Rigth,Top and Botton sashes. The elements may be null depending whether there is a shash beside the part



flushChildren
public void flushChildren()(Code)



getChild
LayoutTree getChild(boolean left)(Code)



getCompressionBias
public int getCompressionBias()(Code)
Returns 0 if there is no bias. Returns -1 if the first child should be of fixed size, and the second child should be compressed. Returns 1 if the second child should be of fixed size. the bias



getSash
public LayoutPartSash getSash()(Code)
Returns the sash of this node.



isCompressible
public boolean isCompressible()(Code)



isLeftChild
boolean isLeftChild(LayoutTree toTest)(Code)



isVisible
public boolean isVisible()(Code)
Returns true if this tree has visible parts otherwise returns false.



remove
LayoutTree remove(LayoutTree child)(Code)
Remove the child and this node from the tree



replaceChild
void replaceChild(LayoutTree oldChild, LayoutTree newChild)(Code)
Replace a child with a new child and sets the new child's parent.



sameDirection
public boolean sameDirection(boolean isVertical, LayoutTreeNode subTree)(Code)
Go up from the subtree and return true if all the sash are in the direction specified by isVertical



setChild
void setChild(boolean left, LayoutPart part)(Code)
Sets a child in this node



setChild
void setChild(boolean left, LayoutTree child)(Code)
Sets a child in this node



toString
public String toString()(Code)
Returns a string representation of this object.



Fields inherited from org.eclipse.ui.internal.LayoutTree
public static int maxCacheHits(Code)(Java Doc)
public static int maxCacheMisses(Code)(Java Doc)
public static int minCacheHits(Code)(Java Doc)
public static int minCacheMisses(Code)(Java Doc)
LayoutTreeNode parent(Code)(Java Doc)
LayoutPart part(Code)(Java Doc)

Methods inherited from org.eclipse.ui.internal.LayoutTree
public static int add(int a, int b)(Code)(Java Doc)
public static void assertValidSize(int toCheck)(Code)(Java Doc)
final public int computeMaximumSize(boolean width, int availablePerpendicular)(Code)(Java Doc)
final public int computeMinimumSize(boolean width, int availablePerpendicular)(Code)(Java Doc)
final public int computePreferredSize(boolean width, int availableParallel, int availablePerpendicular, int preferredParallel)(Code)(Java Doc)
public LayoutPart computeRelation(ArrayList relations)(Code)(Java Doc)
public void createControl(Composite parent)(Code)(Java Doc)
public void describeLayout(StringBuffer buf)(Code)(Java Doc)
public void disposeSashes()(Code)(Java Doc)
protected int doComputeMaximumSize(boolean width, int availablePerpendicular)(Code)(Java Doc)
public int doComputeMinimumSize(boolean width, int availablePerpendicular)(Code)(Java Doc)
protected int doComputePreferredSize(boolean width, int availableParallel, int availablePerpendicular, int preferredParallel)(Code)(Java Doc)
protected int doGetSizeFlags(boolean width)(Code)(Java Doc)
protected void doSetBounds(Rectangle bounds)(Code)(Java Doc)
public LayoutTree find(LayoutPart child)(Code)(Java Doc)
public LayoutPart findBottomRight()(Code)(Java Doc)
public LayoutPart findPart(Point toFind)(Code)(Java Doc)
public LayoutTreeNode findSash(LayoutPartSash sash)(Code)(Java Doc)
public void findSashes(PartPane.Sashes sashes)(Code)(Java Doc)
final public void flushCache()(Code)(Java Doc)
public void flushChildren()(Code)(Java Doc)
public void flushNode()(Code)(Java Doc)
final public Rectangle getBounds()(Code)(Java Doc)
public LayoutTreeNode getParent()(Code)(Java Doc)
final public int getSizeFlags(boolean width)(Code)(Java Doc)
final public boolean hasSizeFlag(boolean width, int flag)(Code)(Java Doc)
public LayoutTree insert(LayoutPart child, boolean left, LayoutPartSash sash, LayoutPart relative)(Code)(Java Doc)
public boolean isCompressible()(Code)(Java Doc)
public boolean isVisible()(Code)(Java Doc)
public static void printCacheStatistics()(Code)(Java Doc)
public void recomputeRatio()(Code)(Java Doc)
public LayoutTree remove(LayoutPart child)(Code)(Java Doc)
final public void setBounds(Rectangle bounds)(Code)(Java Doc)
void setParent(LayoutTreeNode parent)(Code)(Java Doc)
void setPart(LayoutPart part)(Code)(Java Doc)
public static int subtract(int a, int b)(Code)(Java Doc)
public String toString()(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.