All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class CH.ifa.draw.standard.CenteringHolder

java.lang.Object
   |
   +----CH.ifa.draw.standard.AbstractFigure
           |
           +----CH.ifa.draw.standard.CompositeFigure
                   |
                   +----CH.ifa.draw.standard.FigureHolder
                           |
                           +----CH.ifa.draw.standard.CenteringHolder

public class CenteringHolder
extends FigureHolder
A transient development class. To be removed.


Constructor Index

 o CenteringHolder()
 o CenteringHolder(Point, Point)
 o CenteringHolder(Point, Point, Margins)

Method Index

 o arrange()
Fill the arrangement vector with Aligner objects for the contained subfigures.
 o beginDrag(Figure)
Tell this that a child is about to be dragged.
 o findPos(Figure)
Find the position of figure among the subfigures according to the current layout strategy.
 o setChildAligner(Figure)
Reassigns aligners for all figures because the ordering of the figures might have changed.
 o setChildAligners()
Set the aligners of the contained figures.

Constructors

 o CenteringHolder
 public CenteringHolder()
 o CenteringHolder
 public CenteringHolder(Point origin,
                        Point corner)
 o CenteringHolder
 public CenteringHolder(Point origin,
                        Point corner,
                        Margins margins)

Methods

 o findPos
 protected int findPos(Figure figure)
Find the position of figure among the subfigures according to the current layout strategy.

Overrides:
findPos in class FigureHolder
 o arrange
 protected void arrange()
Fill the arrangement vector with Aligner objects for the contained subfigures. Call setChildAligners to make sure that the children have correct aligner objects (ordering may have changed when this method is called).

Overrides:
arrange in class FigureHolder
 o setChildAligner
 protected void setChildAligner(Figure child)
Reassigns aligners for all figures because the ordering of the figures might have changed.

Overrides:
setChildAligner in class FigureHolder
 o setChildAligners
 protected void setChildAligners()
Set the aligners of the contained figures. The topmost child gets a TopCenteringAligner and the rest a MiddleCenteringAligner.

 o beginDrag
 public void beginDrag(Figure child)
Tell this that a child is about to be dragged. ??

Overrides:
beginDrag in class FigureHolder

All Packages  Class Hierarchy  This Package  Previous  Next  Index