本文整理了Java中java.awt.Rectangle.reshape
方法的一些代码示例,展示了Rectangle.reshape
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Rectangle.reshape
方法的具体详情如下:
包路径:java.awt.Rectangle
类名称:Rectangle
方法名:reshape
暂无
代码示例来源:origin: AliView/AliView
/**
* update the geometry of the autoscroll region
*/
private void updateRegion() {
Insets i = autoScroll.getAutoscrollInsets();
Dimension size = component.getSize();
if (size.width != outer.width || size.height != outer.height)
outer.reshape(0, 0, size.width, size.height);
if (inner.x != i.left || inner.y != i.top)
inner.setLocation(i.left, i.top);
int newWidth = size.width - (i.left + i.right);
int newHeight = size.height - (i.top + i.bottom);
if (newWidth != inner.width || newHeight != inner.height)
inner.setSize(newWidth, newHeight);
}
代码示例来源:origin: AliView/AliView
/**
* update the geometry of the autoscroll region
*/
private void updateRegion() {
Insets i = autoScroll.getAutoscrollInsets();
Dimension size = component.getSize();
if (size.width != outer.width || size.height !=
outer.height)
outer.reshape(0, 0, size.width, size.height);
if (inner.x != i.left || inner.y != i.top)
inner.setLocation(i.left, i.top);
int newWidth = size.width - (i.left + i.right);
int newHeight = size.height - (i.top + i.bottom);
if (newWidth != inner.width || newHeight !=
inner.height)
inner.setSize(newWidth, newHeight);
}
代码示例来源:origin: org.netbeans.modules/org-netbeans-modules-visualweb-extension-openide
outer.reshape(visible.x, visible.y, visible.width, visible.height);
inner.reshape(visible.x + i.left,
visible.y + i.top,
visible.width - (i.left + i.right),
代码示例来源:origin: net.sf.squirrel-sql.thirdparty-non-maven/toniclf
outer.reshape(visible.x, visible.y, visible.width, visible.height);
inner.reshape(
visible.x + i.left,
visible.y + i.top,
内容来源于网络,如有侵权,请联系作者删除!