public class FRAbsoluteLayoutAdapter extends FRBodyLayoutAdapter
actualVal, BORDER_PROPORTION, BOTTOM_HALF, COMP_BOTTOM, COMP_LEFT, COMP_RIGHT, COMP_TOP, DEFAULT_AREA_LENGTH, downComps, isFindRelatedComps, leftComps, margin, minHeight, minWidth, rightComps, TOP_HALF, trisectAreaDirect, upCompscontainer, layout| 构造器和说明 |
|---|
FRAbsoluteLayoutAdapter(XLayoutContainer container) |
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
accept(XCreator creator,
int x,
int y)
是否能在指定位置添加组件
|
boolean |
addBean(XCreator creator,
int x,
int y)
组件的ComponentAdapter在添加组件时,如果发现布局管理器不为空,会继而调用该布局管理器的
addComp方法来完成组件的具体添加。
|
protected void |
addComp(XCreator creator,
int x,
int y) |
void |
fix(XCreator creator)
组件拖拽后调整大小
|
void |
fix(XCreator creator,
int x,
int y)
调整组件大小到合适尺寸位置
|
ConstraintsGroupModel |
getLayoutConstraints(XCreator creator) |
GroupModel |
getLayoutProperties() |
HoverPainter |
getPainter()
返回该布局管理适配器的Painter,为容器提供放置位置的标识。
|
boolean |
isTrisectionArea(java.awt.Component parentComp,
int x,
int y)
判断是否鼠标在组件的三等分区域,如果组件在布局管理器中间,上下左右都可能会三等分
|
canAcceptWhileCrossPoint, canAcceptWhileTrisection, clearCompsList, fixCrossPointArea, fixHalve, fixTrisect, getChildPosition, getParaEditorYOffset, initCompsList, isCrossPointAreaaddAfter, addBefore, addNextComponent, canAcceptMoreComponent, delete, getContainer, removeBean, showComponent, supportBackupSize, whetherUseBackupSizepublic FRAbsoluteLayoutAdapter(XLayoutContainer container)
public HoverPainter getPainter()
LayoutAdaptergetPainter 在接口中 LayoutAdaptergetPainter 在类中 AbstractLayoutAdapterpublic boolean accept(XCreator creator, int x, int y)
accept 在接口中 LayoutAdapteraccept 在类中 FRBodyLayoutAdaptercreator - 组件x - 坐标xy - 坐标ypublic boolean isTrisectionArea(java.awt.Component parentComp,
int x,
int y)
isTrisectionArea 在类中 FRBodyLayoutAdapterparentComp - 鼠标所在区域的组件x - 坐标xy - 坐标ypublic boolean addBean(XCreator creator, int x, int y)
addBean 在接口中 LayoutAdapteraddBean 在类中 AbstractLayoutAdaptercreator - 被添加的新组件x - 添加的位置x,该位置是相对于container的y - 添加的位置y,该位置是相对于container的protected void addComp(XCreator creator, int x, int y)
addComp 在类中 FRBodyLayoutAdapterpublic void fix(XCreator creator)
fix 在接口中 LayoutAdapterfix 在类中 AbstractLayoutAdaptercreator - 组件public void fix(XCreator creator, int x, int y)
creator - 组件x - 坐标xy - 坐标ypublic ConstraintsGroupModel getLayoutConstraints(XCreator creator)
getLayoutConstraints 在接口中 LayoutAdaptergetLayoutConstraints 在类中 AbstractLayoutAdapterpublic GroupModel getLayoutProperties()
getLayoutProperties 在接口中 LayoutAdaptergetLayoutProperties 在类中 AbstractLayoutAdapter