public class FRBorderLayoutAdapter extends AbstractLayoutAdapter
container, layout| 构造器和说明 |
|---|
FRBorderLayoutAdapter(XLayoutContainer container) |
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
accept(XCreator creator,
int x,
int y)
在添加组件状态时,当鼠标移动到某个容器上方时,如果该容器有布局管理器,则会调用该布局
管理适配器的accept来决定当前位置是否可以放置,并提供特殊的标识,比如红色区域标识。
|
void |
addAfter(XCreator target,
XCreator added)
插在目标组件后面
|
void |
addBefore(XCreator target,
XCreator added)
目标控件位置插入组件
|
void |
addComp(XCreator child,
int x,
int y)
增加组件
|
void |
addNextComponent(XCreator dragged)
增加下一个组件
|
boolean |
canAcceptMoreComponent()
是否能接收更多的组件
|
void |
fix(XCreator creator)
有的控件在拖拽调整大小后需要根据自身内容重新计算下当前的尺寸是否合适,如果不合适,就需要重新fix一下
|
ConstraintsGroupModel |
getLayoutConstraints(XCreator creator) |
HoverPainter |
getPainter()
返回该布局管理适配器的Painter,为容器提供放置位置的标识。
|
java.awt.Dimension |
getPreferredSize(XCreator creator) |
addBean, delete, getContainer, getLayoutProperties, removeBean, showComponent, supportBackupSize, whetherUseBackupSizepublic FRBorderLayoutAdapter(XLayoutContainer container)
public HoverPainter getPainter()
LayoutAdaptergetPainter 在接口中 LayoutAdaptergetPainter 在类中 AbstractLayoutAdapterpublic void fix(XCreator creator)
fix 在接口中 LayoutAdapterfix 在类中 AbstractLayoutAdaptercreator - 组件public void addComp(XCreator child, int x, int y)
addComp 在类中 AbstractLayoutAdapterchild - 组件x - 横坐标y - 纵坐标public boolean accept(XCreator creator, int x, int y)
creator - 组件x - 添加的位置x,该位置是相对于container的y - 添加的位置y,该位置是相对于container的public java.awt.Dimension getPreferredSize(XCreator creator)
public void addNextComponent(XCreator dragged)
addNextComponent 在接口中 LayoutAdapteraddNextComponent 在类中 AbstractLayoutAdapterdragged - 组件public void addBefore(XCreator target, XCreator added)
addBefore 在接口中 LayoutAdapteraddBefore 在类中 AbstractLayoutAdaptertarget - 目标added - 增加组件public void addAfter(XCreator target, XCreator added)
addAfter 在接口中 LayoutAdapteraddAfter 在类中 AbstractLayoutAdaptertarget - 目标added - 增加组件public boolean canAcceptMoreComponent()
canAcceptMoreComponent 在接口中 LayoutAdaptercanAcceptMoreComponent 在类中 AbstractLayoutAdapterpublic ConstraintsGroupModel getLayoutConstraints(XCreator creator)
getLayoutConstraints 在接口中 LayoutAdaptergetLayoutConstraints 在类中 AbstractLayoutAdapter