|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectfr.ove.openmath.jome.ctrlview.bidim.DisplayLayout
A layout manager.
| Field Summary | |
protected Display |
displayToLay
The display laid out by the instance. |
| Constructor Summary | |
DisplayLayout()
|
|
| Method Summary | |
void |
addLayoutComponent(java.awt.Component comp,
java.lang.Object constraints)
Adds the specified component to the layout, using the specified constraint object. |
void |
addLayoutComponent(java.lang.String name,
java.awt.Component comp)
Adds the specified component with the specified name to the layout. |
abstract java.awt.Dimension |
computeAttributes()
Computes the size of the display according to its children size (if any), and its different attributes. |
void |
deselectDisplay()
Deselects the display. |
float |
getLayoutAlignmentX(java.awt.Container target)
Returns the alignment along the x axis. |
float |
getLayoutAlignmentY(java.awt.Container target)
Returns the alignment along the y axis. |
void |
initDisplay(Display displayToLay)
According to the operator, the layout manager has to add some components (e.g. brackets, ...) |
void |
invalidateLayout(java.awt.Container target)
Invalidates the layout, indicating that if the layout manager has cached information it should be discarded. |
java.awt.Dimension |
maximumLayoutSize(java.awt.Container target)
Returns the maximum size of this component. |
java.awt.Dimension |
minimumLayoutSize(java.awt.Container parent)
Calculates the minimum size dimensions for the specified panel given the components in the specified parent container. |
java.awt.Dimension |
preferredLayoutSize(java.awt.Container parent)
Calculates the preferred size dimensions for the specified panel given the components in the specified parent container. |
abstract void |
rebuildDisplay()
The display needs to be rebuilt. |
void |
removeLayoutComponent(java.awt.Component comp)
Removes the specified component from the layout. |
void |
selectDisplay()
Selects the display (and its children if any) |
boolean |
selectLeftDisplay()
Returns true if during the selection, the display which is located
to the left of the display that the instance lays, must be selected too.
|
boolean |
selectRightDisplay()
Returns true if during the selection, the display which is located
to the right of the display that the instance lays, must be selected too.
|
void |
updateLevel(int level)
Updates the level of the display laid out. |
abstract void |
validateDeselection(Display display)
Checks the validity of the deselection. |
abstract void |
validateSelection()
Checks the validity of the selection. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface java.awt.LayoutManager |
layoutContainer |
| Field Detail |
protected Display displayToLay
| Constructor Detail |
public DisplayLayout()
| Method Detail |
public void initDisplay(Display displayToLay)
displayToLay - the display laid by the instancepublic boolean selectLeftDisplay()
true if during the selection, the display which is located
to the left of the display that the instance lays, must be selected too.
false otherwise.
public boolean selectRightDisplay()
true if during the selection, the display which is located
to the right of the display that the instance lays, must be selected too.
false otherwise.
public void selectDisplay()
public void deselectDisplay()
public void updateLevel(int level)
level - the level put to the display.public abstract void validateSelection()
public abstract void validateDeselection(Display display)
display - the display which just has been deselected.public abstract void rebuildDisplay()
public abstract java.awt.Dimension computeAttributes()
public void addLayoutComponent(java.lang.String name,
java.awt.Component comp)
addLayoutComponent in interface java.awt.LayoutManagername - the component namecomp - the component to be addedpublic void removeLayoutComponent(java.awt.Component comp)
removeLayoutComponent in interface java.awt.LayoutManagercomp - the component ot be removedpublic java.awt.Dimension minimumLayoutSize(java.awt.Container parent)
minimumLayoutSize in interface java.awt.LayoutManagerparent - the component to be laid outpreferredLayoutSize(java.awt.Container)public java.awt.Dimension preferredLayoutSize(java.awt.Container parent)
preferredLayoutSize in interface java.awt.LayoutManagerparent - the component to be laid outminimumLayoutSize(java.awt.Container)
public void addLayoutComponent(java.awt.Component comp,
java.lang.Object constraints)
addLayoutComponent in interface java.awt.LayoutManager2comp - the component to be addedconstraints - where/how the component is added to the layout.public java.awt.Dimension maximumLayoutSize(java.awt.Container target)
maximumLayoutSize in interface java.awt.LayoutManager2Component.getMinimumSize(),
Component.getPreferredSize(),
LayoutManagerpublic float getLayoutAlignmentX(java.awt.Container target)
getLayoutAlignmentX in interface java.awt.LayoutManager2public float getLayoutAlignmentY(java.awt.Container target)
getLayoutAlignmentY in interface java.awt.LayoutManager2public void invalidateLayout(java.awt.Container target)
invalidateLayout in interface java.awt.LayoutManager2
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||