|
JHotDraw 7.5.1 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jhotdraw.draw.layouter.AbstractLayouter
org.jhotdraw.draw.layouter.HorizontalLayouter
public class HorizontalLayouter
A Layouter which lays out all children of a CompositeFigure
in horizontal direction.
The preferred size of the figures is used to determine the layout. This may cause some figures to resize.
The HorizontalLayouter honors the LAYOUT_INSETS and the COMPOSITE_ALIGNMENT AttributeKey when laying out a CompositeFigure.
If COMPOSITE_ALIGNMENT is not set on the composite figure, the layout assigns the same height to all figures.
| Constructor Summary | |
|---|---|
HorizontalLayouter()
|
|
| Method Summary | |
|---|---|
java.awt.geom.Rectangle2D.Double |
calculateLayout(CompositeFigure compositeFigure,
java.awt.geom.Point2D.Double anchor,
java.awt.geom.Point2D.Double lead)
Calculate the layout for the figure and all its subelements. |
java.awt.geom.Rectangle2D.Double |
layout(CompositeFigure compositeFigure,
java.awt.geom.Point2D.Double anchor,
java.awt.geom.Point2D.Double lead)
Method which lays out a figure. |
| Methods inherited from class org.jhotdraw.draw.layouter.AbstractLayouter |
|---|
getInsets |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public HorizontalLayouter()
| Method Detail |
|---|
public java.awt.geom.Rectangle2D.Double calculateLayout(CompositeFigure compositeFigure,
java.awt.geom.Point2D.Double anchor,
java.awt.geom.Point2D.Double lead)
Layouter
anchor - start point for the layoutlead - minimum lead point for the layout
public java.awt.geom.Rectangle2D.Double layout(CompositeFigure compositeFigure,
java.awt.geom.Point2D.Double anchor,
java.awt.geom.Point2D.Double lead)
Layouter
anchor - start point for the layoutlead - minimum lead point for the layout
|
Copyright 1996-2010 (c) by the authors and contributors of the JHotDraw project. Some rights reserved. |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||