作者热门文章
- 使用 Spring Initializr 创建 Spring Boot 应用程序
- 在Spring Boot中配置Cassandra
- 在 Spring Boot 上配置 Tomcat 连接池
- 将Camel消息路由到嵌入WildFly的Artemis上
本文整理了Java中org.weasis.core.ui.editor.image.ZoomWin.setLocation()
方法的一些代码示例,展示了ZoomWin.setLocation()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ZoomWin.setLocation()
方法的具体详情如下:
包路径:org.weasis.core.ui.editor.image.ZoomWin
类名称:ZoomWin
方法名:setLocation
暂无
代码示例来源:origin: nroduit/Weasis
public void centerZoomWin() {
int magPosx = (view2d.getWidth() / 2) - (getWidth() / 2);
int magPosy = (view2d.getHeight() / 2) - (getHeight() / 2);
setLocation(magPosx, magPosy);
}
代码示例来源:origin: nroduit/Weasis
bound.x = (bound.x + centerx) * w / oldSize.width - centerx;
bound.y = (bound.y + centery) * h / oldSize.height - centery;
lens.setLocation(bound.x, bound.y);
代码示例来源:origin: nroduit/Weasis
bound.x = (bound.x + centerx) * w / oldSize.width - centerx;
bound.y = (bound.y + centery) * h / oldSize.height - centery;
lens.setLocation(bound.x, bound.y);
代码示例来源:origin: nroduit/Weasis
public ZoomWin(DefaultView2d<E> view2d) {
super(null);
this.view2d = view2d;
this.setOpaque(false);
ImageViewerEventManager<E> manager = view2d.getEventManager();
this.imageLayer = new RenderedImageLayer<>();
SimpleOpManager operations = imageLayer.getDisplayOpManager();
operations.addImageOperationAction(new AffineTransformOp());
ActionState zoomAction = manager.getAction(ActionW.LENSZOOM);
if (zoomAction instanceof SliderChangeListener) {
actionsInView.put(ActionW.ZOOM.cmd(), ((SliderChangeListener) zoomAction).getRealValue());
}
this.popup = new PopUpMenuOnZoom(this);
this.popup.setInvoker(this);
this.setCursor(DefaultView2d.MOVE_CURSOR);
ZoomSetting z = manager.getZoomSetting();
OpManager disOp = getDisplayOpManager();
disOp.setParamValue(AffineTransformOp.OP_NAME, AffineTransformOp.P_INTERPOLATION, z.getInterpolation());
disOp.setParamValue(AffineTransformOp.OP_NAME, AffineTransformOp.P_AFFINE_MATRIX, null);
actionsInView.put(SYNCH_CMD, z.isLensSynchronize());
actionsInView.put(ActionW.DRAWINGS.cmd(), z.isLensShowDrawings());
actionsInView.put(FREEZE_CMD, SyncType.NONE);
Color bckColor = UIManager.getColor("Panel.background"); //$NON-NLS-1$
this.setLensDecoration(z.getLensLineWidth(), z.getLensLineColor(), bckColor, z.isLensRound());
this.setSize(z.getLensWidth(), z.getLensHeight());
this.setLocation(-1, -1);
this.imageLayer.addLayerChangeListener(this);
this.mouseHandler = new MouseHandler();
}
我以前用过ZoomWin:https://github.com/vim-scripts/ZoomWin用于在 Vim 中的一个和多个窗口之间切换。但这个插件有一个大问题。当我尝试恢复多个窗口(垂直分割
本文整理了Java中org.weasis.core.ui.editor.image.ZoomWin.getBounds()方法的一些代码示例,展示了ZoomWin.getBounds()的具体用法。这
本文整理了Java中org.weasis.core.ui.editor.image.ZoomWin.setLocation()方法的一些代码示例,展示了ZoomWin.setLocation()的具体
我是一名优秀的程序员,十分优秀!