fr.ove.openmath.jome.ctrlview.bidim
Class InfixOperatorLayout

java.lang.Object
  extended byfr.ove.openmath.jome.ctrlview.bidim.DisplayLayout
      extended byfr.ove.openmath.jome.ctrlview.bidim.HorizontalLayout
          extended byfr.ove.openmath.jome.ctrlview.bidim.InfixOperatorLayout
All Implemented Interfaces:
java.lang.Cloneable, java.awt.LayoutManager, java.awt.LayoutManager2, OperatorDisplayCreator, java.io.Serializable
Direct Known Subclasses:
BinaryInfixOperatorLayout, ImageInfixOperatorLayout, StringInfixOperatorLayout

public abstract class InfixOperatorLayout
extends HorizontalLayout
implements OperatorDisplayCreator

A layout manager that lays components horizontally and inserts between them, the display of the operator that the layout manager lays.

Version:
2.0 13/12/1999
Author:
© 1999 DIRAT Laurent
See Also:
Serialized Form

Field Summary
protected  boolean insertOperatorDisplay
          Do we need to insert an operator display ?
protected  int prevNbComponent
          The number of the components already present before an other insertion or removal.
 
Fields inherited from class fr.ove.openmath.jome.ctrlview.bidim.DisplayLayout
displayToLay
 
Constructor Summary
InfixOperatorLayout()
           
 
Method Summary
 java.awt.Dimension computeAttributes()
          Computes the size of the display according to its children size (if any), and its different attributes.
protected  void insertOperatorDisplay()
          Inserts a display of the operator symbol that the display laid by the instance represents.
 void rebuildDisplay()
          The display needs to be rebuilt.
 
Methods inherited from class fr.ove.openmath.jome.ctrlview.bidim.HorizontalLayout
layoutContainer
 
Methods inherited from class fr.ove.openmath.jome.ctrlview.bidim.DisplayLayout
addLayoutComponent, addLayoutComponent, deselectDisplay, getLayoutAlignmentX, getLayoutAlignmentY, initDisplay, invalidateLayout, maximumLayoutSize, minimumLayoutSize, preferredLayoutSize, removeLayoutComponent, selectDisplay, selectLeftDisplay, selectRightDisplay, updateLevel, validateDeselection, validateSelection
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface fr.ove.openmath.jome.ctrlview.bidim.OperatorDisplayCreator
createOperatorDisplay
 

Field Detail

insertOperatorDisplay

protected boolean insertOperatorDisplay
Do we need to insert an operator display ?


prevNbComponent

protected int prevNbComponent
The number of the components already present before an other insertion or removal. This is necessary to keep in mind this, in order to know if we must parse the list of components to check if we have to insert symbol display or not.

Constructor Detail

InfixOperatorLayout

public InfixOperatorLayout()
Method Detail

insertOperatorDisplay

protected void insertOperatorDisplay()
Inserts a display of the operator symbol that the display laid by the instance represents.


computeAttributes

public java.awt.Dimension computeAttributes()
Computes the size of the display according to its children size (if any), and its different attributes.

Overrides:
computeAttributes in class HorizontalLayout
Returns:
the size of the display.

rebuildDisplay

public void rebuildDisplay()
The display needs to be rebuilt. We do this.

Specified by:
rebuildDisplay in class DisplayLayout


Copyright © 1999-2007 Universit?© de Nice Sophia-Antipolis, I3S, Ove SARL, DFKI and Universit?§t des Saarlandes. All Rights Reserved.