Java 类com.intellij.uiDesigner.designSurface.FirstComponentInsertLocation 实例源码

项目:intellij-ce-playground    文件:RadGridBagLayoutManager.java   
@NotNull
@Override
public ComponentDropLocation getDropLocation(@NotNull RadContainer container, @Nullable final Point location) {
  if (getGridRowCount(container) == 0 && getGridColumnCount(container) == 0) {
    return new FirstComponentInsertLocation(container, new Rectangle(0, 0, container.getWidth(), container.getHeight()), 0, 0);
  }
  return super.getDropLocation(container, location);
}
项目:tools-idea    文件:RadGridBagLayoutManager.java   
@NotNull
@Override
public ComponentDropLocation getDropLocation(@NotNull RadContainer container, @Nullable final Point location) {
  if (getGridRowCount(container) == 0 && getGridColumnCount(container) == 0) {
    return new FirstComponentInsertLocation(container, new Rectangle(0, 0, container.getWidth(), container.getHeight()), 0, 0);
  }
  return super.getDropLocation(container, location);
}
项目:consulo-ui-designer    文件:RadGridBagLayoutManager.java   
@NotNull
@Override
public ComponentDropLocation getDropLocation(@NotNull RadContainer container, @Nullable final Point location) {
  if (getGridRowCount(container) == 0 && getGridColumnCount(container) == 0) {
    return new FirstComponentInsertLocation(container, new Rectangle(0, 0, container.getWidth(), container.getHeight()), 0, 0);
  }
  return super.getDropLocation(container, location);
}