|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectde.uni_paderborn.fujaba.fsa.swing.OvalLayout.TempLayout
Container for a layout that has been calculated but not yet applied to the components.
| Field Summary | |
private OvalLayout.ComponentInfo[] |
componentInfos
The calculated layout for the components |
private java.awt.Dimension |
ovalDim
The calculated dimensions of the oval |
private int |
yDiff
The differences between the current and the optimal y coordinates are stored here by isComponentInsideOval() |
private int |
yDiffNumber
The number of yDiffs counted |
| Constructor Summary | |
(package private) |
OvalLayout.TempLayout(java.awt.Container container)
Layouts the components in the given container and returns the layout result in form of a ComponentInfo array. |
private |
OvalLayout.TempLayout(java.awt.Container container,
boolean secondTry,
int shift)
Layouts the components in the given container and returns the layout result in form of a ComponentInfo array. |
| Method Summary | |
(package private) OvalLayout.ComponentInfo[] |
getComponentInfos()
Returns the calculated layout for the components |
(package private) java.awt.Dimension |
getOvalDim()
Returns the calculated dimensions of the oval |
int |
getYDiff()
Returns the average yDiff (the differences between the current and the optimal y coordinates) calculated by isComponentInsideOval(). |
private int |
isComponentInsideOval(OvalLayout.ComponentInfo componentInfo,
java.awt.Dimension ovalSize)
Checks whether the given componentInfo is completely contained in the oval specified by ovalSize. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private java.awt.Dimension ovalDim
private OvalLayout.ComponentInfo[] componentInfos
private int yDiff
isComponentInsideOval()
private int yDiffNumber
| Constructor Detail |
OvalLayout.TempLayout(java.awt.Container container)
getOvalDim()
. The treeLock of the container must already be obtained by the calling method.
container - container to create layout for
private OvalLayout.TempLayout(java.awt.Container container,
boolean secondTry,
int shift)
getOvalDim()
. The treeLock of the container must already be obtained by the calling method.
container - container to create layout forsecondTry - is the algorithm alreagy recursing?shift - number of pixels to shift all components either up or down in the
layout. This may increase the component size.| Method Detail |
java.awt.Dimension getOvalDim()
OvalLayout.ComponentInfo[] getComponentInfos()
public int getYDiff()
isComponentInsideOval().
private int isComponentInsideOval(OvalLayout.ComponentInfo componentInfo,
java.awt.Dimension ovalSize)
componentInfo - No description providedovalSize - No description provided
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||