Class BordedFillLayout
- java.lang.Object
-
- org.eclipse.draw2d.AbstractLayout
-
- org.eclipse.draw2d.AbstractHintLayout
-
- com._1c.g5.v8.dt.common.gef.layout.BordedFillLayout
-
- All Implemented Interfaces:
org.eclipse.draw2d.LayoutManager
public class BordedFillLayout extends org.eclipse.draw2d.AbstractHintLayout
BorderedFillLayout layout children in the parents bounds with specific margins in percents (from 0 to 50)
-
-
Field Summary
Fields Modifier and Type Field Description protected Map
constraints
-
Constructor Summary
Constructors Constructor Description BordedFillLayout()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected org.eclipse.draw2d.geometry.Dimension
calculatePreferredSize(org.eclipse.draw2d.IFigure container, int wHint, int hHint)
org.eclipse.draw2d.geometry.Insets
getConstraint(org.eclipse.draw2d.IFigure child)
void
layout(org.eclipse.draw2d.IFigure container)
void
setConstraint(org.eclipse.draw2d.IFigure figure, Object newConstraint)
-
Methods inherited from class org.eclipse.draw2d.AbstractHintLayout
calculateMinimumSize, getMinimumSize, getPreferredSize, invalidate, isSensitiveHorizontally, isSensitiveVertically
-
-
-
-
Field Detail
-
constraints
protected Map constraints
-
-
Method Detail
-
layout
public void layout(org.eclipse.draw2d.IFigure container)
-
calculatePreferredSize
protected org.eclipse.draw2d.geometry.Dimension calculatePreferredSize(org.eclipse.draw2d.IFigure container, int wHint, int hHint)
- Specified by:
calculatePreferredSize
in classorg.eclipse.draw2d.AbstractLayout
-
setConstraint
public void setConstraint(org.eclipse.draw2d.IFigure figure, Object newConstraint)
- Specified by:
setConstraint
in interfaceorg.eclipse.draw2d.LayoutManager
- Overrides:
setConstraint
in classorg.eclipse.draw2d.AbstractLayout
-
getConstraint
public org.eclipse.draw2d.geometry.Insets getConstraint(org.eclipse.draw2d.IFigure child)
- Specified by:
getConstraint
in interfaceorg.eclipse.draw2d.LayoutManager
- Overrides:
getConstraint
in classorg.eclipse.draw2d.AbstractLayout
-
-