/**
* Returns the position of the upper left corner of the popover winndow
*
* @param pos
* @return
*/
public static AnchorLocation getAnchorLocation() {
ConfigIO cfg = ConfigIO.getInstance();
cfg.getScreenPositionId();
int scrPosId = cfg.getScreenPositionId();
ScreenPosition screenPos = getScreenPosition(scrPosId);
Pos pos = screenPos.getPos();
switch (pos) {
case TOP_LEFT:
return AnchorLocation.CONTENT_TOP_LEFT;
case TOP_RIGHT:
return AnchorLocation.CONTENT_TOP_RIGHT;
case BOTTOM_LEFT:
return AnchorLocation.CONTENT_BOTTOM_LEFT;
case BOTTOM_RIGHT:
return AnchorLocation.CONTENT_BOTTOM_RIGHT;
default:
return AnchorLocation.CONTENT_TOP_LEFT;
}
}
Util.java 文件源码
java
阅读 24
收藏 0
点赞 0
评论 0
项目:dracoon-dropzone
作者:
评论列表
文章目录